PDA

View Full Version : [HELP] Objects loading


V4at
31/12/2011, 09:45 AM
What would you recommend for the player from falling objects when not loading? example: That the player would be supported in the air.

V4at
31/12/2011, 09:53 AM
What should I do when a player does not start falling objects?

Norck
31/12/2011, 10:24 AM
Do you mean that players are falling through the objects that have not been loaded in time?
If so, then try to freeze players for some time using TogglePlayerControlable

V4at
31/12/2011, 10:29 AM
Yes, I mean it. How do I use it? please script.

dr.pepper
31/12/2011, 10:33 AM
On a teleport like say like this:

public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/teleport", cmdtext, true, 10) == 0) // Commannd
{
TogglePlayerControllable(playerid,0); // Freeze the player
SetTimerEx("Freeze", 4000, false, "i", playerid); // Timer for 4 seconds (not repeating timer, only called on the command)
return 1;
}
return 0;
}

forward Freeze(playerid); // forward
public Freeze(playerid) { // callback
TogglePlayerControllable(playerid,1); // after 4 seconds, player is unfrozen
return 1;
}

V4at
31/12/2011, 11:01 AM
Thanks man!