07.03.2014, 07:57
pawn Code:
public OnPlayerUpdate(playerid)
{
new Float:health;
GetPlayerHealth(playerid, health);
if(health <= 20)
{
ApplyAnimation(playerid, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0);
}
if(health >= 30)
{
ClearAnimations(playerid);
SetPlayerSpecialAction(i, SPECIAL_ACTION_NONE);
}
return 1;
}