03.06.2015, 09:14
Where are you actually using SetTimerEx to call 'FuncaoHospital(id)'
You don't need a timer for the animation either... ApplyAnimation has a 'loop' parameter which will make the animation run continuously until stopped with ClearAnimations or another animation is played.
You don't need a timer for the animation either... ApplyAnimation has a 'loop' parameter which will make the animation run continuously until stopped with ClearAnimations or another animation is played.
pawn Код:
ApplyAnimation(playerid, "CRACK", "crckdeth2", 4.1, 1, 1, 1, 0, 0, 1); // Call this when a player is meant to get the animation
forward FuncaoHospital(id);
public FuncaoHospital(id) // When the player is discharged
{
SetPlayerSpecialAction(id, 0);
ClearAnimations(id);
return 1;
}