Health-protection bug -.- onplayerdeath
#1

Ok ,well i made a protection if the player have more than 95 HP + to get kicked.


but i have a problem... the cheat is checking the hp of player with OnPlayerUpdate , i tried with a variable


Код:
 if(AntiHealthbug[playerid] != 1)
 {

   //kick
 }
and on onplayerdeath antihealthbug = 1; ... but it still doesen't work , the player get kicked on death...


how can i fix it ?
Reply
#2

Try something like this.

pawn Код:
public OnPlayerUpdate(playerid)
{
     if(health == 100.0 && AntiHealthBug[playerid] == 1)
     {
            return 1;
     }
     return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)