Quote:
|
Originally Posted by ► James_Alex
try this
pawn Код:
// put this in the top of the script new fTimer[MAX_PLAYERS];
stock JA_TogglePlayerControllable(playerid, bool:toggle) { switch(toggle) { case true: { fTimer[playerid] = SetTimerEx("FreezePlayer", 1, true, "i", playerid); } case false: { KillTimer(fTimer[playerid]); } } return 1; }
forward FreezePlayer(playerid); public FreezePlayer(playerid) { new Float:X, Float:Y, Float:Z; GetPlayerPos(playerid, X, Y, Z); SetPlayerPos(playerid, X, Y, Z); SetCameraBehindPlayer(playerid); return 1; }
now when you like to freeze the player
use "JA_TogglePlayerControllable(playerid, toggle);" 
|
I tried that too, it worked but it isn't the nicest solution because Timers eat server recources.
That's why i posted this question, i wanted to know if there where other solutions.
I am now trying with the Animation idea of Don Correlli