Tekil Mesaj gösterimi
Alt 16 Nisan 2011, 18:47   #4
Çevrimiçi
toXic
Kullanıcıların profil bilgileri misafirlere kapatılmıştır.
IF Ticaret Sayısı: (0)
IF Ticaret Yüzdesi:(%)
Cevap: Ops Kanalı..




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 DLLFUNC int m_opsrules(aClient *, aChannel *); ModuleHeader MOD_HEADER(m_opsrules) = { "m_opsrules", "ops rules (toXic", "Global Operator Kurallari (toXic", "3.2-b8-1", NULL }; DLLFUNC int MOD_INIT(m_opsrules)(ModuleInfo *modinfo) { HookAddEx(modinfo->handle, HOOKTYPE_PRE_LOCAL_JOIN, m_opsrules); return MOD_SUCCESS; } DLLFUNC int MOD_LOAD(m_opsrules)(int module_load) { return MOD_SUCCESS; } DLLFUNC int MOD_UNLOAD(m_opsrules)(int module_unload) { return MOD_SUCCESS; } DLLFUNC int m_opsrules(aClient *sptr, aChannel *chptr) { if (!stricmp(chptr->chname,"#Ops") && !IsAnOper(sptr)) { sendto_one(sptr, ":IRC NOTICE %s :\2%s\2 Bilgi Metni ozelinize geliyor..", sptr->name, chptr->chname); #define OKU "opsrules.txt" int i; FILE *dosya; char buf[BUFSIZE]; dosya = fopen(OKU, "r"); if (dosya != NULL) { while (fgets(buf, sizeof(buf), dosya)) { buf[strlen(buf)-1] = 0; sendto_one(sptr, ":RULES PRIVMSG %s :%s", sptr->name, buf); } } } }


Modulu kurun.
Kurallari notepad'da yazarak opsrules.txt olarak Unreal3.2 icine atin.
Ops kanalina girenin özeline opsrules.txt deki yazilari yazar.

 
Alıntı ile Cevapla

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