Special Action + Toggle Controllable
#1

everytime i do this
pawn Код:
TogglePlayerControllable(i, false);
SetPlayerSpecialAction(i, SPECIAL_ACTION_HANDSUP);
the HANDSUP action doesn't appear

or if i do this
pawn Код:
SetPlayerSpecialAction(i, SPECIAL_ACTION_HANDSUP);
TogglePlayerControllable(i, false);
Then the player can just hit F and move around freely

----

How do i make him hands up and cant move or cancel animation?
Reply
#2

Use ApplyAnimation as it has it's own parameter to freeze a player together with the animation.

Check this: https://sampwiki.blast.hk/wiki/ApplyAnimation
Reply
#3

ah.. that's nice.. i was probably thinking ApplyAnimation but i forgot about freeze parameter thx bro
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)