Freeze when teleport to load objects... :S Possible? [SOLVED! THANX FOR ALL!]
#1

Hi!
I tryed to make a script that freezes your player if u teleport for 3 or 5 seconds, so the server can load objects. because sometimes if i teleport, the objects aren't loaded... that is bad if u have objects high in the air, because then u fall because the objects are still not loaded.....
But in my script, I got 9 errors
Can somebody help me making a script like that? pls? THANX! cya
ps, i've heared something about a OnPlayerTele line, But i can't find more info about that...
Reply
#2

Explain better, I don't understand what you mean ... "freeze for 3 or 5 seconds" ... freeze when?
Reply
#3

Quote:
Originally Posted by ded
Explain better, I don't understand what you mean ... "freeze for 3 or 5 seconds" ... freeze when?
Ok. I mean that, if a player telport, he needs to get frozen so the server can load objects. because sometimes if i teleport, the objects still didn't appear so i fall. hope this helped.. can u help me? XD thanx!
Reply
#4

Here..




INSTRUCTIONS:

Put this in you're forwards "forward Unfreeze(playerid);"

Quote:

Then make this public anywhere you desire, "

public Unfreeze(playerid)
{
TogglePlayerControllable(playerid,1);
return 1;
}

And when they /enter or whatever you want the command to be, add this onto it
Quote:

TogglePlayerControllable(playerid,0);
SetTimerEx("Unfreeze",2000,0,"i",playerid);

Reply
#5

Quote:
Originally Posted by MrPanz
Here..




INSTRUCTIONS:

Put this in you're forwards "forward Unfreeze(playerid);"

Quote:

Then make this public anywhere you desire, "

public Unfreeze(playerid)
{
TogglePlayerControllable(playerid,1);
return 1;
}

And when they /enter or whatever you want the command to be, add this onto it
Quote:

TogglePlayerControllable(playerid,0);
SetTimerEx("Unfreeze",2000,0,"i",playerid);

THANX THANX THANX!
Reply
#6

Naw problem
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)