[pawn]
- #include <amxmodx>
- #include <colorchat>
- #define PLUGIN "Anti KzH"
- #define VERSION "5.0"
- #define AUTHOR "xxx"
- new reason[23][128]
- new g_szLog[128]
- public plugin_init() {
- register_plugin(PLUGIN, VERSION, AUTHOR)
- get_localinfo("amxx_datadir", g_szLog, charsmax(g_szLog))
- add(g_szLog, charsmax(g_szLog), "/KZHackers.txt")
- }
- public client_putinserver(id) {
- remove_task(id)
- set_task(0.1, "kzh_check", id)
- }
- public kzh_check(id) {
- if(is_user_connected(id))
- {
- query_client_cvar(id, "kzh_bhop", "kzh")
- query_client_cvar(id, "kyk_bhop", "kyk")
- query_client_cvar(id, "m4c_bhop", "trk")
- query_client_cvar(id, "zhy_bhop", "zhyk")
- query_client_cvar(id, "zhe_hope", "zhyk")
- query_client_cvar(id, "zhykz_bhop", "zhyk")
- query_client_cvar(id, "^^_^^<bhop", "nkz")
- query_client_cvar(id, "n1k<bhop", "nkz")
- query_client_cvar(id, "nkz_bhop", "nkz")
- query_client_cvar(id, "nik_bhop", "nkz")
- query_client_cvar(id, "fpt_bhop", "kzc")
- query_client_cvar(id, "str_bhop", "kzc")
- query_client_cvar(id, "fuh_hope", "kzc")
- query_client_cvar(id, "vip_hope", "kzc")
- query_client_cvar(id, "kid_bhop", "kzc")
- query_client_cvar(id, "tvx_bhop", "kzc")
- query_client_cvar(id, "1337_bhop", "kzc")
- query_client_cvar(id, "LoveFpteam_bhop", "kzc")
- query_client_cvar(id, "xhack_bhop", "xhz")
- query_client_cvar(id, "speed_bhop", "xhz")
- query_client_cvar(id, "xn1ko_bhop", "xhz")
- query_client_cvar(id, "xPr9n_bhop", "xhz")
- query_client_cvar(id, "fptch_bhop", "xhz")
- query_client_cvar(id, "xhz_bhop", "xhz")
- query_client_cvar(id, "xkz_bhop", "xhz")
- query_client_cvar(id, "xcfgbhop", "xhz")
- }
- }
- public kzh(id, const cvar[ ], const value[ ] ) {
- if( value[0] != 'B' ) {
- reason[id] = "KZHack"
- punish(id)
- }
- return PLUGIN_HANDLED
- }
- public kyk(id, const cvar[ ], const value[ ] ) {
- if( value[0] != 'B' ) {
- reason[id] = "KykHack"
- punish(id)
- }
- return PLUGIN_HANDLED
- }
- public trk(id, const cvar[ ], const value[ ] ) {
- if( value[0] != 'B' ) {
- reason[id] = "TrawkaHack"
- punish(id)
- }
- return PLUGIN_HANDLED
- }
- public zhyk(id, const cvar[ ], const value[ ] ) {
- if( value[0] != 'B' ) {
- reason[id] = "ZhykHack"
- punish(id)
- }
- return PLUGIN_HANDLED
- }
- public nkz(id, const cvar[ ], const value[ ] ) {
- if( value[0] != 'B' ) {
- reason[id] = "N1kZHack"
- punish(id)
- }
- return PLUGIN_HANDLED
- }
- public kzc(id, const cvar[ ], const value[ ] ) {
- if( value[0] != 'B' ) {
- reason[id] = "KZHack."
- punish(id)
- }
- return PLUGIN_HANDLED
- }
- public xhz(id, const cvar[ ], const value[ ] ) {
- if( value[0] != 'B' ) {
- reason[id] = "xHack"
- punish(id)
- }
- return PLUGIN_HANDLED
- }
- public punish(id)
- {
- if(is_user_connected(id))
- {
- new szDate[20], szName[32], szAuthid[32], szIP[16]
- get_time("%m/%d/%y %H:%M:%S", szDate, charsmax(szDate))
- get_user_name(id, szName, charsmax(szName))
- get_user_authid(id, szAuthid, charsmax(szAuthid))
- get_user_ip(id, szIP, charsmax(szIP), 1)
- new szText[128]
- formatex(szText, charsmax(szText), "%s |%-34s|%-24s|%-15s| ^"%s^"", szDate, szName, szAuthid, szIP, reason[id])
- write_file(g_szLog, szText, -1)
- ColorChat(0, BLUE,"%s использует %s!!!", szName, reason[id])
- server_cmd("amx_ban 10 %s ^"%s Detected^"", szAuthid, reason[id])
- }
- }