mam problem z wyświetleniem infa w konsoli po otrzymaniu kicka z serwera,
próbowałem już wiele opcji jednak nadal nic,
dlatego prosiłbym was o drobną pomoc.
#include <amxmodx> #include <amxmisc> #include <netdb> #define PLUGIN "Konta IP" #define VERSION "2.0" #define AUTHOR "Sn!ff3r" public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR) register_cvar("amx_konto_msg", "Zablokowane IP - sprawdz konsole! ") } public client_authorized(id) { if(get_user_flags(id) & ADMIN_RESERVATION) return PLUGIN_CONTINUE if(access(id,ADMIN_LEVEL_H) && access(id,ADMIN_USER)) { remove_user_flags(id,ADMIN_LEVEL_H) return PLUGIN_CONTINUE } new authid[32] get_user_authid(id, authid, 35) if(have_user_nonsteam(authid)) { new ip[16], host[50] get_user_ip(id,ip , 15 , 1) netdb_gethostbyaddr(ip,host,49) if( ( contain(host,"adsl") != -1 || contain(host,"dynamic") != -1 && contain(host,"dynamic.chello") == -1 ) { new kickmsg[512] get_cvar_string("amx_konto_msg", kickmsg, 512) client_print(id, print_console, "* * * Masz zmienne IP !") server_cmd("wait;wait;wait;wait;wait;kick #%d ^"%s^"", get_user_userid(id), kickmsg) } } return PLUGIN_CONTINUE } stock have_user_nonsteam(authid[]) { if(containi(authid, "VALVE_ID") != -1 || containi(authid, "STEAM_ID") != -1 || containi(authid, "STEAM_0:3") != -1 || containi(authid, "STEAM_0:4") != -1 || containi(authid, "VALVE_0:") != -1) return 1; return 0; }
Chodzi o to że nie ukazuję się w konsoli napis "* * * Masz zmienne IP !"
Reszta działa jak należy.
Z góry dziękuje za okazaną pomoc