16.01.2014, 15:05
On the top of script :
Everywhere you want
:
and then use SetPlayerPosEx for spawning
PHP код:
forward PlayerControllableAfterSpawn(playerid);
:PHP код:
stock SetPlayerPosEx(playerid, Float:X, Float:Y, Float:Z, interiorid = 0)
{
SetPlayerPos(playerid, X, Y, Z+0.5), SetPlayerInterior(playerid, interiorid);
TogglePlayerControllable(playerid, false);
GameTextForPlayer(playerid , "Please Wait..." , 3000, 5);
SetPlayerVirtualWorld(playerid , 54);
SetTimerEx("PlayerControllableAfterSpawn", 500, 0, "i", playerid);
return 1;
}
public PlayerControllableAfterSpawn(playerid)
{
TogglePlayerControllable(playerid , 1);
SetPlayerVirtualWorld(playerid , 0);
return 1;
}
