Tekil Mesaj gösterimi
Alt 15 Kasım 2014, 18:55   #2
Çevrimdışı
SeckiN
Kullanıcıların profil bilgileri misafirlere kapatılmıştır.
IF Ticaret Sayısı: (0)
IF Ticaret Yüzdesi:(%)
Cevap: bind join İle Bir Sorum Vardı...




@[Üye Olmadan Linkleri Göremezsiniz. Üye Olmak için TIKLAYIN...] ben bunu modül olarak yapmıştım. @[Üye Olmadan Linkleri Göremezsiniz. Üye Olmak için TIKLAYIN...]'in yapmış olduğu operhelp modülünü kendime göre düzenlemiştim. İşine yarar belki. Düzenleme yapılacak yerleri koyu siyah olarak belirttim.

Kod:   Kodu kopyalamak için üzerine çift tıklayın!
#include "config.h" #include "struct.h" #include "common.h" #include "sys.h" #include "numeric.h" #include "msg.h" #include "channel.h" #include <time.h> #include <sys/stat.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #ifdef _WIN32 #include <io.h> #endif #include <fcntl.h> #include "h.h" #ifdef _WIN32 #include "version.h" #endif #define ibo "#Opers" #define iboh "#Karantina" #define tox "BirAsk.Net" int z=0; int i=0; DLLFUNC int m_operhelp(aClient *, aChannel *); DLLFUNC int m_helps(aClient *, aChannel *); static int m_cikis(aClient *, aClient *, aChannel *, char *); static int m_cikis2(aClient *, aClient *, aChannel *, char *); static Hook *IBO_Part=NULL; static Hook *IBO_Part2=NULL; ModuleHeader MOD_HEADER(m_operhelp) = { "m_helps", "HELPS (toXic", "HELP Kanallari Sistem Modulu (toXic", "3.2-b8-1", NULL }; DLLFUNC int MOD_INIT(m_operhelp)(ModuleInfo *modinfo) { HookAddEx(modinfo->handle, HOOKTYPE_PRE_LOCAL_JOIN, m_operhelp); HookAddEx(modinfo->handle, HOOKTYPE_PRE_LOCAL_JOIN, m_helps); IBO_Part = HookAddEx(modinfo->handle, HOOKTYPE_LOCAL_PART, m_cikis); IBO_Part2 = HookAddEx(modinfo->handle, HOOKTYPE_LOCAL_PART, m_cikis2); return MOD_SUCCESS; } DLLFUNC int MOD_LOAD(m_operhelp)(int module_load) { return MOD_SUCCESS; } DLLFUNC int MOD_UNLOAD(m_operhelp)(int module_unload) { return MOD_SUCCESS; } /********************************************* OPERHELP *********************************************/ DLLFUNC int m_operhelp(aClient *sptr, aChannel *chptr) { if (!stricmp(chptr->chname,"#OperHelp") && !IsAnOper(sptr)) { sendto_one(sptr, ":%s NOTICE %s :\2%s\2 OPERHELP Kanalina girdiniz. Operatorlere haber veriliyor..", tox, sptr->name, sptr->name); sendto_one(sptr, ":%s PRIVMSG %s :Merhaba \2%s\2 OPERHELP Kanalina hos geldiniz.", tox, sptr->name, sptr->name); sendto_one(sptr, ":%s PRIVMSG %s :Operatorlere haber veriliyor. Lutfen bekleyin.", tox, sptr->name); sendto_one(sptr, ":%s PRIVMSG %s :Operatorlere haber verildi.", tox, sptr->name); if ((chptr = find_channel(ibo, NullChn)) != NullChn) { sendto_channel_butone(&me, &me, chptr, ":Operhelp PRIVMSG %s \2%s\2 Kullanicisi \2OPERHELP\2 Kanalina girdi ve yardim bekliyor.", ibo, sptr->name); return 0; } } } static int m_cikis(aClient *cptr, aClient *sptr, aChannel *chptr, char *comment) { if (!stricmp(chptr->chname,"#OperHelp") && !IsAnOper(sptr)) { z++; sendto_one(sptr, ":%s PRIVMSG %s :\2-", tox, sptr->name); sendto_one(sptr, ":%s PRIVMSG %s :Operhelp Sunucu \2OPER Yardimi\2 kanalindan ayrildiniz.", tox, sptr->name); sendto_one(sptr, ":%s NOTICE %s :Operhelp Sunucu \2OPER Yardimi\2 kanalindan ayrildiniz.", tox, sptr->name); sendto_one(sptr, ":%s PRIVMSG %s :Baska bir sikayetinizde tekrar \2#Operhelp\2 Kanalina gelebilirsiniz.", tox, sptr->name); sendto_one(sptr, ":%s PRIVMSG %s :Hos sohbetler dileriz.", tox, sptr->name); sendto_one(sptr, ":%s PRIVMSG %s :\2Operhelp\2 kanalindan [\2%s\2] yardim alan \2%d\2 . Kullanicisiniz.", tox, sptr->name, me.name, z); return 0; } } /********************************************* HELP *********************************************/ DLLFUNC int m_helps(aClient *sptr, aChannel *chptr) { if (!stricmp(chptr->chname,"#Karantina") && !IsAnOper(sptr)) { sendto_one(sptr, ":%s NOTICE %s :Merhaba \2%s\2 Sohbet Sunucumuza Hoş Geldiniz.", tox, sptr->name, sptr->name); sendto_one(sptr, ":%s NOTICE %s :Güvenlik Kontrolünden Geçiyorsunuz Lütfen Bekleyiniz..", tox, sptr->name); sendto_one(sptr, ":%s NOTICE %s :Not:Network uzerinde kayitli bulunan tum nick ve kanallar, yonetime aittir.", tox, sptr->name); sendto_one(sptr, ":%s NOTICE %s :Sunucuya giren tum kullanicilar bunu kabul etmis olmaktadir.", tox, sptr->name); if ((chptr = find_channel(ibo, NullChn)) != NullChn) { return 0; } } } static int m_cikis2(aClient *cptr, aClient *sptr, aChannel *chptr, char *comment) { if (!stricmp(chptr->chname,"#Karantina") && !IsAnOper(sptr)) { i++; sendto_one(sptr, ":%s PRIVMSG %s :\2-", tox, sptr->name); sendto_one(sptr, ":%s PRIVMSG %s :Sunucu \2#Karantina\2 Taramasindan başariyla geçmiş bulunmaktasiniz", tox, sptr->name); sendto_one(sptr, ":%s PRIVMSG %s :BirAsk.Net Yönetimi Hoş Sohbetler Diler.", tox, sptr->name); return 0; } } /*********************************************************************************************/


 
Alıntı ile Cevapla

IRCForumlari.NET Reklamlar
sohbet odaları reklam ver Benimmekan Mobil Sohbet