How I can BanIP when players join by HLTV-s !!!
PHP Code:
#include <amxmodx>
new pcvar_anti_hltv;
public plugin_init(){
register_plugin("Anti HLTV","1.0","Lulu the hero");
pcvar_anti_hltv = register_cvar("anti_hltv","0");
}
public client_connect(id)
if(get_pcvar_num(pcvar_anti_hltv) && is_user_hltv(id))
server_cmd("kick #%d ^"HLTV not allowed on this server!^"",get_user_userid(id))
__________________