amx ss + ban + wpis do bazy danych
sebartus89
03.11.2009
witam all znalazlem w sieci pewien fajny plugin ja go lekko zmodernizowalem pod swoj serwer ale mam jeden problem jak ja np daje bana graczowi to wyswietla sie inna nazwa admina czy moglby mi ktos pomoc z tym ??
jak bym mogl poprosic o poprawienie tego bledu
#include <amxmodx> #include <amxmisc> #define PLUGIN "screeny + ban" #define VERSION "1.0.4" #define AUTHOR "GoldClub" static const banurl[] = "www.tralalala.waw.pl" //new Bantype public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR) register_concmd("amx_ss","banwithproof",ADMIN_BAN,"<name> <time> <reason>") register_cvar("amx_banurl",banurl) //Bantype = register_cvar("amx_banshot_type", "2") } public banwithproof(id,level,cid){ if(!cmd_access(id,level,cid,2)) return PLUGIN_HANDLED; new authid[32], ipadd[32], name[32], admin_name[32], reason[32], CurrentTime[9], hostname[64] ,banurl[64] new arg[32], arg2[32], temp[3] read_argv(1,arg,31) read_argv(2,arg2,31) new target = cmd_target(id,arg,1) if (!target) return PLUGIN_HANDLED; get_user_ip(target,ipadd,31) get_cvar_string("hostname",hostname,63) get_user_name(target,name,31) get_user_authid(target,authid,31) get_cvar_string("amx_banurl", banurl,63) get_user_name(id, admin_name, 31) read_argv(3, reason, 31) log_to_file("BannedwithSS.txt"," %s | IP: %s | STEAMid: %s | ADMIN: %s | REASON: %s^n",name,ipadd,authid,admin_name,reason) client_print(target,print_chat, "[Server] %s",hostname) client_print(target,print_chat, "[Name] %s [STEAMid] %s [IP] %s",name,authid,ipadd) client_print(target,print_chat, "[Admin] %s [Reason] %s",admin_name,reason) get_time("%m/%d/%Y - %H:%M:%S",CurrentTime,31) client_print(target,print_chat, "[Date/Hour] %s",CurrentTime) client_print(target,print_chat, "[Website] Wejdz %s w celu uzyskania unbanu",banurl) console_print(target,"[Server] %s",hostname) console_print(target,"[Name] %s [STEAMid] %s [IP] %s",name,authid,ipadd) console_print(target,"[Admin] %s [Reason] %s",admin_name,reason) console_print(target,"[Date/Hour] %s",CurrentTime) console_print(target,"[Website] Wejdz %s w celu uzyskania unbanu",banurl) client_cmd(target,"wait;wait;screenshot;wait;screenshot;wait;screenshot;wait;screenshot;wait;screenshot") user_silentkill(target); temp[0] = target temp[1] = str_to_num(arg2) temp[2] = id set_task(0.5,"persontoban", target, temp, 2) return PLUGIN_HANDLED } public persontoban(arg[]){ new target = arg[0] //new bantime = arg[1] new id = arg[2] client_cmd(id, "amx_ban 0 #%d Pokaz screeny na forum",get_user_userid(target)) } /* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE *{ rtf1 ansi deff0{ fonttbl{ f0 fnil Tahoma;}}n viewkind4 uc1 pard lang1045 f0 fs16 n par } */
jak bym mogl poprosic o poprawienie tego bledu