05.05.2015, 03:31
You need to set the animation to 'looping', so it won't stop after it's done playback. All you need to do is change the '0' to a '1' for the loop parameter in ApplyAnimation.
Then, once they do /acceptdeath or the FD arrives, you can ClearAnimations or apply another 'standing up' animation.
References:
https://sampwiki.blast.hk/wiki/ApplyAnimation
https://sampwiki.blast.hk/wiki/ClearAnimations
pawn Код:
forward DeadAnim(playerid);
public DeadAnim(playerid)
{
OnAnim{playerid} = true;
ApplyAnimation(playerid,"PARACHUTE","FALL_skyDive_DIE",3.5,1,0,0,1,0);
return 1;
}
References:
https://sampwiki.blast.hk/wiki/ApplyAnimation
https://sampwiki.blast.hk/wiki/ClearAnimations