•  
     

Anti-HLProxy - AMXX

Não testei esse plugin

Código: Selecionar todos

#include <amxmodx>
public plugin_init(){
register_plugin("Anti-HLProxy","based on Zefir plugin","1.0");
}
public client_connect(id){
client_check(id);
}
public client_putinserver(id){
client_check(id);
}
public client_check(id){
new ip_proxy[32],cmd_proxy[32];
new ip[32];
new name[32];
get_user_name(id,name,31);
get_user_info(id,"_ip",ip_proxy,31);
get_user_info(id,"_cmd",cmd_proxy,31);
get_user_info(id,"-cmd",cmd2_proxy,31);
get_user_ip(id,ip,31,0);
if(!equal(ip_proxy,"") || !equal(cmd_proxy,"") || !equal(cmd2_proxy,"")){
server_cmd("kick #%d Proxy!",get_user_userid(id));
log_amx("[Anti-HLProxy] User: %s IP: %s",name,ip);
// client_cmd(id,"Setinfo ^"_ip^" ^"^";Disconnect;Connect %s;Clear",ip);
}
return PLUGIN_CONTINUE
}