Animation freezing player. - 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: Animation freezing player. (
/showthread.php?tid=571919)
Animation freezing player. -
Banditukas - 23.04.2015
Hi,
With what animation player can't move?
Re: Animation freezing player. -
Konstantinos - 23.04.2015
https://sampwiki.blast.hk/wiki/ApplyAnimation
You can set 1 to "freeze" parameter and it will freeze the player when the animation is ended.
If you want to freeze completely the player, not even being able to move the camera:
https://sampwiki.blast.hk/wiki/Function:...erControllable
Re: Animation freezing player. -
lanix - 23.04.2015
Code:
CMD:freeze(playerid, params)
{
new player1, second, reason[256];
if(!IsPlayerAdmin(playerid)) return 0;
if(sscanf(params, "iis[256]", player1, second, reson)) return SendClientMessage(playerid, -1, "/freeze [ID] [Second] [Reason]");
TogglePlayerControllable(playerid, 0);
SetTimerEx("Unfreeze", second*1000, false, "i", playerid);
return 1;
}
forward Unfreeze(playerid);
public Unfreeze(playerid)
{
TogglePlayerControllable(playerid, true);
return 1;
}
Re: Animation freezing player. -
rt-2 - 17.06.2017
If I want to freeze the player but not the camera, can I do that?