16.12.2015, 21:36
I set player's HP to 99 when they spawn and added this under OnPlayerUpdate
but when the player spawn it says Example(0) is health hacking and then health become 99 and it says nothing and work how can i prevent that 100 HP that i got before SetPlayerHealth(playerid,99) or to prevent that detect before i get 99 HP ?
Код:
new Float:Hp; GetPlayerHealth( playerid, Hp ); if(IsSpawned[playerid] != 0 && Hp >= 100) { new string[128]; format(string,sizeof(string),"%s(%d) is health hacking.",PlayerName(playerid),playerid); SendClientMessageToAll(1,string); }