Posts: 246
Threads: 59
Joined: May 2014
Reputation:
0
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.
Posts: 1,241
Threads: 67
Joined: Dec 2013
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);
}
Posts: 246
Threads: 59
Joined: May 2014
Reputation:
0
Where do I put this at in my script
Posts: 1,241
Threads: 67
Joined: Dec 2013
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 ?