11.03.2011, 21:06
So I need help with one command... how to set player in crack animation when he has 1/4 of health?
forward Health();
public Health()
{
for(new i; i<MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
new Float:health;
GetPlayerHealth(i, health);
if(health < 25)
{
ApplyAnimation(i, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0);
}
}
}
return 1;
}
It works 100 %