19.12.2010, 11:37
You could run it in OnPlayerUpdate() tho it will be ran very often.
Edit: This will fuck up your script..
Remember health is a Float. Also this will set your health to 100 like all the time, should probably add a zero(0) at the SetPlayerHealth().
Edit: This will fuck up your script..
Код:
new Float:health; GetPlayerHealth(playerid,health); if (health < 1000) { SetPlayerHealth(playerid, 100); } } return 1; }