need a better way to do this
#1

pawn Код:
forward RegenerateZombieHealth(playerid);
public RegenerateZombieHealth(playerid)
{
    if(pInfo[playerid][Team] == 2)
    {
        new Float:hp;
        GetPlayerHealth(playerid, hp);
        if(hp < 200) SetPlayerHealth(playerid, hp+5);
        CheckPlayerHealth(playerid, 200);
    }
    return 1;
}
This works, but sometimes health pass 200 and my anti hack bans the player, how can I do this but dont let life pass 200 (even if it stops realing if health is like 198 or something :P)
Reply


Messages In This Thread
need a better way to do this - by marinov - 27.02.2011, 02:50
Re: need a better way to do this - by admantis - 27.02.2011, 02:52
Re: need a better way to do this - by marinov - 27.02.2011, 02:54
Re: need a better way to do this - by Retardedwolf - 27.02.2011, 02:58
Re: need a better way to do this - by marinov - 27.02.2011, 03:02
Re: need a better way to do this - by admantis - 27.02.2011, 03:03

Forum Jump:


Users browsing this thread: 2 Guest(s)