Special Action + Toggle Controllable - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Special Action + Toggle Controllable (
/showthread.php?tid=422941)
Special Action + Toggle Controllable -
mastermax7777 - 16.03.2013
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?
Re: Special Action + Toggle Controllable -
Alvord - 16.03.2013
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
Re: Special Action + Toggle Controllable -
mastermax7777 - 16.03.2013
ah.. that's nice.. i was probably thinking ApplyAnimation but i forgot about freeze parameter
thx bro