19.01.2012, 18:22
pawn Code:
forward CheckHealth();
public CheckHealth()
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
new Float:health;
GetPlayerHealth(i,health);
if(health <= 20)
{
ApplyAnimation(i, "ped", "KO_spin_L", 4.1, 1, 1, 1, 1, 1, 1);
TogglePlayerControllable(i,0);
}
}
return 1;
}