SA-MP Forums Archive
Freeze at teleport - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Freeze at teleport (/showthread.php?tid=136127)



Freeze at teleport - ColdXX - 23.03.2010

hey guys!
can someone tell me how can i set the player frozen when i teleport to a place?!
How do i do the timer?
Thanks


Re: Freeze at teleport - Virtual1ty - 23.03.2010

Something like this;
pawn Код:
forward FreezePlayer(playerid);
forward UnfreezePlayer(playerid);

public FreezePlayer(playerid)
{
    TogglePlayerControllable(playerid, 0);
    SetTimerEx("UnfreezePlayer", 1500, 0, i, playerid);
    return 1;
}
And if, for some reason you want to unfreeze him;
pawn Код:
public UnfreezePlayer(playerid)
{
    TogglePlayerControllable(playerid, 1);
    return 1;
}
You use the Freeze, and Unfreeze at your teleport commands,



Re: Freeze at teleport - martyz-lithuania - 30.03.2010

and how to freeze car in the air..?