frozen health detector
#1

Anyone can give a link with anti-infinite health detector? like ******??

thanks
Reply
#2

You mean Sobe1t?
pawn Код:
public OnPlayerUpdate(playerid)
{
    new Float:hp;
    GetPlayerHealth(playerid, hp);
    if(hp >= 101) //do shit
    return 1;
}
Something like this?
Reply
#3

Quote:
Originally Posted by TheSimpleGuy
Посмотреть сообщение
You mean Sobe1t?
pawn Код:
public OnPlayerUpdate(playerid)
{
    new Float:hp;
    GetPlayerHealth(playerid, hp);
    if(hp >= 101) //do shit
    return 1;
}
Something like this?
Dafaq? are you stupid?

If admin /god it wont work. if admin set hp 101+ it wont work too
Reply
#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


Forum Jump:


Users browsing this thread: 1 Guest(s)