frozen health detector
#4

Check if the player is not an admin

Код:
public OnPlayerUpdate(playerid)
{
    if(!IsPlayerAdmin(playerid)) //or player variable if you have an admin system
    {
        new Float:hp;
        GetPlayerHealth(playerid, hp);
        if(hp >= 101) //do shit
    }
    return 1;
}
But if player using godmode in s0be1t, it doesn't change the player health amount. It's blocking health taking and OnPlayerTakeDamage won't be called.
Reply


Messages In This Thread
frozen health detector - by Trynda - 11.05.2014, 12:02
Re: frozen health detector - by TheSimpleGuy - 11.05.2014, 12:54
Re: frozen health detector - by Trynda - 11.05.2014, 15:04
Re: frozen health detector - by ball - 11.05.2014, 18:03

Forum Jump:


Users browsing this thread: 1 Guest(s)