When you /enter and /exit making it free a player for 5 secs - 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: When you /enter and /exit making it free a player for 5 secs (
/showthread.php?tid=525417)
When you /enter and /exit making it free a player for 5 secs -
ShiffeyTheGamer - 11.07.2014
Hi when you /enter and /exit a place as soon as you get to that int you will fall in the map because nothing has loaded yet. So I want to make it so when you do /enter and /exit you freeze for 5 seconds so it gives time for objects to load.
Re: When you /enter and /exit making it free a player for 5 secs -
austin070 - 11.07.2014
pawn Код:
TogglePlayerControllable(playerid, 0)
Use this when they enter the interior.
Re : When you /enter and /exit making it free a player for 5 secs -
Clad - 11.07.2014
In the command put this to freeze him.
pawn Код:
TogglePlayerControllable(playerid, 1);
Then put this ( It will unfreeze him after time you choose ) IN THE SAME COMMAND BELLOW
pawn Код:
SetTimerEx("AutoUnfreeze", 5000, false, "i", playerid);
pawn Код:
forward AutoUnfreeze(playerid);
public AutoUnfreeze(playerid)
{
TogglePlayerControllable(playerid, 0);
}
Re: When you /enter and /exit making it free a player for 5 secs -
ShiffeyTheGamer - 11.07.2014
Where do I put this at in my script
Re : When you /enter and /exit making it free a player for 5 secs -
Clad - 11.07.2014
Put this anywhere.
pawn Код:
forward AutoUnfreeze(playerid);
public AutoUnfreeze(playerid)
{
TogglePlayerControllable(playerid, 0);
}
And the others, I told you in my previous reply, Can you read ?
Re: When you /enter and /exit making it free a player for 5 secs -
ShiffeyTheGamer - 11.07.2014
(93508 ) : error 021: symbol already defined: "SetTimerEx"
Код:
SetTimerEx("AutoUnfreeze", 5000, false, "i", playerid);
(93511) : error 021: symbol already defined: "AutoUnfreeze"
Код:
public AutoUnfreeze(playerid)
{