Animation freezing player.
#1

Hi,

With what animation player can't move?
Reply
#2

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
Reply
#3

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;
}
Reply
#4

If I want to freeze the player but not the camera, can I do that?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)