ForumTEK.Net - IRC Forumu

ForumTEK.Net - IRC Forumu (http://www.forumtek.net/index.php)
-   Unreal - Parça Kodlar (http://www.forumtek.net/forumdisplay.php?f=62)
-   -   Tempshunda NICK filtreleme (http://www.forumtek.net/showthread.php?t=552)

Entrance 29 Ocak 2015 22:44

Tempshunda NICK filtreleme
 
• X, forumundan x kişinin isteği üzerine yapmış olduğum bir düzenleme olduğu gibi buraya kopyalıyorum umarım işine yarayan olur.

Alıntı:

Arkadaşlar bazı özel nicklerin tempshundan etkilenmemesini istiyorum bunu nasıl sağlayabilirim. Yardımlarınızı bekliyorum. Teşekkürler....
• Klasör: Unreal3.2/src/modules
•
Dosya: <m_tkl.c>

BULUN:
Kod:

if (IsShunned(acptr))
            {
                sendnotice(sptr, "User '%s' already shunned", acptr->name);
            } else if (IsAnOper(acptr))
            {
                sendnotice(sptr, "You cannot tempshun '%s' because (s)he is an oper", acptr->name);
            } else
            {

DEGISTIRIN:
Kod:

if (IsShunned(acptr))
            {
                sendnotice(sptr, "User '%s' already shunned", acptr->name);
            } else if (IsAnOper(acptr))
            {
                sendnotice(sptr, "You cannot tempshun '%s' because (s)he is an oper", acptr->name);

            } else if (!stricmp(acptr->name, "OzelNICK"))
            {
              sendnotice(sptr, "Tempshun komutunu  \2%s\2 nick'ine kullanamazsınız.", acptr->name);
            } else       
            {

Ardından make ve rehash..

İlave olarak, özel nick olarak tanımladığınız herhangi bir * NICK'e Tempshun komutu uygulandığınızda karşı tarafa şöyle bir uyarı gidecektir..

Alıntı:

[23:17] Tempshun komutunu Entrance nick'ine kullanamazsınız.


NOT: Test edilen versiyon Unreal3.2.10.2

İyi forumlar.
.


All times are GMT +3. The time now is 08:34.

Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.