Quote:
Originally Posted by Tee
Wait i'll fix this post :S
EDIT: Ok try this:
pawn Код:
forward JustACheck(playerid);
public OnPlayerSpawn(playerid) { SetTimerEx("JustACheck", 1000, true, "i", playerid); return 1; }
public JustACheck(playerid) { new Float:health; GetPlayerHealth(playerid,health); if(health < 30.0) { ApplyAnimation(playerid,"PED","crckdeth2",2.1,1,1,1,1,1,1); } return 1; }
|
You forgot to edit PED --> CRACK...
Though, when my player gets healed, I want him to be controlable again.
pawn Код:
public HealthCheck(playerid)
{
new Float:health;
GetPlayerHealth(playerid,health);
if (health > 30.0)
TogglePlayerControllable(playerid, 1);
return 1;
}
But it's resetting his animations always...