When you /enter and /exit making it free a player for 5 secs
#1

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.
Reply
#2

pawn Код:
TogglePlayerControllable(playerid, 0)
Use this when they enter the interior.
Reply
#3

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

Where do I put this at in my script
Reply
#5

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 ?
Reply
#6

(93508 ) : error 021: symbol already defined: "SetTimerEx"
Код:
SetTimerEx("AutoUnfreeze", 5000, false, "i", playerid);
(93511) : error 021: symbol already defined: "AutoUnfreeze"
Код:
public AutoUnfreeze(playerid)
{
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)