29.08.2016, 02:52
hi i created a health hack detector it checks players health every 2 seconds if its above 98 and below 101 the player is using if its not then the player is clean here is my 2 sec timer:
and this is my player on spawn
the problem is when player enable godmode and set hes health to 99999 and then the player types /kill to disable godmode which is
script calls
Код:
if(health > 98 && health < 101 || armour > 98) { Kick(playerid); print("Player HH"); }
Код:
SetPlayerHealth(playerid, 98); SetPlayerArmour(playerid, 98);
Код:
CMD:kill(playerid, params[]) { SetPlayerHealth(playerid, 0); return 1; }
Код:
if(health > 98 && health < 101 || armour > 98) { Kick(playerid); print("Player HH"); }