03.07.2012, 18:23
The objects aren't streaming in in-time. When you're teleporting the player, freeze them, and set a timer to unfreeze them.
Example with zcmd.
Example with zcmd.
pawn Код:
CMD:teleport(playerid, params[])
{
SetPlayerPos(playerid, 123.90, 53.980, 800.0);
TogglePlayerControllable(playerid, 0); // Freeze them
SetTimerEx("UnFreezeTimer", 3000, 0, "d", playerid); // Set a timer of 3000 milliseconds (3 secs)
return 1;
}
forward UnFreezeTimer(playerid);
public UnFreezeTimer(playerid)
{
TogglePlayerControllable(playerid, 1); // Unfreeze them
return 1;
}