12.10.2015, 07:04
You can use ApplyAnimation. It has a 'loop' parameter, so you can alternatively freeze the player in an 'idle' animation. (They appear to be standing still, but they cannot move around and can still rotate the camera)
Something like this:
Note, any form of ClearAnimations or any other animations may override this animation and allow the player to break the animation. Thus being able to move around again.
Код:
ApplyAnimation(playerid, animlib[], animname[], Float:fDelta, loop, lockx, locky, freeze, time, forcesync)
pawn Код:
ApplyAnimation(playerid, "ped", "IDLE_stance", 4.1, 1, 1, 1, 0, 0, 1);