Kod: #include <amxmod> // AMX Mod #include <cstrike> // AMX Mod X 1.0 CS Module #include <fun> // AMX Mod X 1.0 Fun Module #include <amxmisc> // AMX/AMXX Misc #define MAX_WORD_NUM 256 new wordfile[] = "addons/amxmodx/configs/wordlist.txt" new words[MAX_WORD_NUM][32] new wlen[MAX_WORD_NUM] new wnum new swearflag[33] public handlesay(id,level,cid) { new msg[192] new i, b, s read_args(msg,191) for (i=0;i<wnum;++i) if ((b=containi(msg,words[i]))!=-1) { s = 1 } if (!s) return PLUGIN_CONTINUE new name[32] get_user_name(id,name,31) if (++swearflag[id]>= 3) { client_print(0,print_chat,"[AMX Przeklinanie] %s zostal zbanowany za przeklinanie na 15min.",name) new bantag[32] get_user_ip( id, bantag, 31 ) server_cmd( "addip 15 ^"%s^";wait;writeip", bantag ) server_cmd("kick #%d",id) } else if(swearflag[id]< 3){ client_print(0,print_chat,"[AMX Przeklinanie] %s SLAP + GOTOWKA + -FRAG.",name) client_print(0,print_chat,"[AMX] Flagi: %i/3 = BAN 15 MIN",swearflag[id]) set_user_frags(id,get_user_frags(id) - 1) cs_set_user_money(id,cs_get_user_money(id)-1000) user_slap(id, 25) } return PLUGIN_HANDLED } public read_wordfile() { new line, filename[64] build_path(filename,63,wordfile) if (!file_exists(filename)) return 0 while (wnum<MAX_WORD_NUM && read_file(filename,line++,words[wnum],31,wlen[wnum])) if (words[wnum][0] != ';') wnum++ return wnum } public client_putinserver(id) swearflag[id]=0 public plugin_init() { register_plugin("auto *cenzura*","0.9.x","dra mod gracz") register_clcmd("say","handlesay") register_clcmd("say_team","handlesay") read_wordfile() return PLUGIN_CONTINUE }
siema
czy może ktoś mi przerobić ten plugin zeby Banował na IP
czekam