CreateDynamicObject problem
#3

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.
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;
}
Reply


Messages In This Thread
CreateDynamicObject problem - by pasha97 - 03.07.2012, 18:17
Re: CreateDynamicObject problem - by FalconX - 03.07.2012, 18:22
Re: CreateDynamicObject problem - by ReneG - 03.07.2012, 18:23
Re: CreateDynamicObject problem - by pasha97 - 03.07.2012, 18:32
Re: CreateDynamicObject problem - by pasha97 - 03.07.2012, 18:35
Re: CreateDynamicObject problem - by ReneG - 03.07.2012, 18:41

Forum Jump:


Users browsing this thread: 2 Guest(s)