View Full Version : [HELP] Objects loading
What would you recommend for the player from falling objects when not loading? example: That the player would be supported in the air.
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
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;
}
vBulletin® v3.8.6, Copyright ©2000-2019, Jelsoft Enterprises Ltd.