how to make player freeze when he..[Read] - 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: how to make player freeze when he..[Read] (
/showthread.php?tid=267941)
how to make player freeze when he..[Read] -
Mr.Black - 10.07.2011
Look , i did that :
Quote:
else if(IsPlayerInRangeOfPoint(playerid, 3.0, 1797.5505,-1578.8964,14.0856,100.3781)) //V.I.P Lounge
{
SetPlayerInterior(playerid, 10);
SetPlayerPos(playerid, 2365.81640625,-1706.4645996094,1195.725708007 ;
GameTextForPlayer(playerid, "~b~V.I.P Lounge", 3000, 1);
}
|
And it's working fine with /enter CMD and everything , but i want that when the player enter this place he freeze for 2 - 3 seconds until the objects load then he get unfrozen
Re: how to make player freeze when he..[Read] -
Sensitive - 10.07.2011
You need to add a timer, and
FreezePlayer(playerid)
And if the time in the timer ends the player gets unfreezed
UnfreezePlayer(playerid)
I dont know how to explain, sorry.
Re: how to make player freeze when he..[Read] -
Mr.Black - 10.07.2011
lol can you do it in the above Codes please ?

Re: how to make player freeze when he..[Read] -
Anastasia - 10.07.2011
FreePlayer(playerid) what the heck is that?
It is TogglePlayerControllable(playerid,1) Freeze
and unfreeze 0.
Re: how to make player freeze when he..[Read] - [L3th4l] - 10.07.2011
pawn Код:
stock Freeze(playerid, time)
{
TogglePlayerControllable(playerid, false);
SetTimerEx("Unfreeze", time * 1000, false, "i", playerid);
return 1;
}
forward Unfreeze(playerid);
public Unfreeze(playerid)
{
return TogglePlayerControllable(playerid, true);
}
pawn Код:
Freeze(playerid, 3); // Would freeze a player for 3 seconds, then would auto unfreeze after it
Re: how to make player freeze when he..[Read] -
Mr.Black - 10.07.2011
k thanks
Re: how to make player freeze when he..[Read] -
Lilcuete - 10.07.2011
http://forum.sa-mp.com/showthread.ph...ighlight=Pause this should help instead having to make a timer.
Re: how to make player freeze when he..[Read] - [L3th4l] - 10.07.2011
Quote:
Originally Posted by Lilcuete
|
Oh really? This comes straight from that topic:
pawn Код:
stock Pause(playerid)
{
TogglePlayerControllable(playerid,false);
GameTextForPlayer(playerid, "~g~objects loading, please wait...", 5000,1);
Loaded[playerid] = 1;
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
SetPlayerPos(playerid,x,y,z+1);
SetTimer("LoadPlayer",3100,false);
}
Notice some fishy about that?