// By: u2fat4me (Abraheem Omari) // Helped greatly by: 101satoon101 and SuperDave!!! // //********************************* //******** Anti-Hax Script ******** //******** U2fat4me ******** //********************************* block config { anti-hax 1 } block load { es_xlog Loading Anti-Hax... //Set to # of headshots in a row before ban es_xset hacktrack 6 } event round_start { es_msg #multi #green **Anti-Hax** #lightgreen This server is protected by Anti-Hax, enabling any hacks WILL result in a ban. #green By: u2fat4me } // Set to "event player_spawn" and headshot count will reset each time they spawn. event player_activate { es playervar set event_var(userid) headshottrack 0 } event player_hurt { if (event_var(hitgroup) == 1) do { es_xset headshots 0 es playervar get headshots event_var(attacker) headshottrack es_xmath headshots + 1 es playervar set event_var(attacker) headshottrack server_var(headshots) if (server_var(headshots) > server_var(hacktrack)) do { // Code to ban or kick player es_msg #multi #green **Anti-Hax** #lightgreen [HACKER FOUND]: Player is now banned. //If you don't wnat to ban them just erase the first line. You may also ban by ip by changing "writeid" to "writeip". If you want keep the 0 at the end of the banid line it will be a permanent line. To make temorary change 0 to the number in minutes you want to ban the player. es banid 0 event_var(attacker) writeid //This does work and is used to kick player after banning or to just kick player. es kickid event_var(attacker) } } else do { es playervar set event_var(attacker) headshottrack 0 } }