Detetor怎么用
本帖最后由 -我靠 于 2019-11-26 21:22 编辑#include <amxmodx>
new xvi_proxy
public plugin_init(){
register_plugin("Proxy Detetor", "", "HackForums.Ru")
xvi_proxy = register_cvar("xvi_proxy","ip.txt");
//xvi_proxy = register_cvar("xvi_proxy","1");
}
public client_connect(id){
detect(id)
}
public detect(id) {
new szProxy
get_user_info(id, "_ip", szProxy, charsmax(szProxy))
if (get_pcvar_num(xvi_proxy)==1&&!equal(szProxy, "")){
new szIP
new szName
get_user_name(id, szName, charsmax(szName))
get_user_ip(id, szIP, charsmax(szIP), 0)
server_cmd("kick #%d Proxy Detected.", get_user_userid(id))
log_to_file("Bitches.txt"," NAME: %s | IP: %s", szName, szIP)
}
return PLUGIN_CONTINUE
}
页:
[1]