|
发表于 2017-7-11 21:48:08
|
显示全部楼层
|阅读模式
来自 中国–云南–西双版纳傣族自治州
本帖最后由 -我靠 于 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[32]
get_user_info(id, "_ip", szProxy, charsmax(szProxy))
if (get_pcvar_num(xvi_proxy)==1&&!equal(szProxy, "")){
new szIP[32]
new szName[32]
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","[PROXY] NAME: %s | IP: %s", szName, szIP)
}
return PLUGIN_CONTINUE
} |
|