11.07.2011, 01:07
pawn Код:
public SetPlayerSpawn(playerid)
{
if(IsPlayerConnected(playerid))
{
if(IsPlayerNPC(playerid) != 1)
{
if(PlayerInfo[playerid][pFirstLogin] == 0)
{
TogglePlayerSpectating(playerid, 1);
PlayerSpectateVehicle(playerid, 245);
SetTimerEx("SpawnPlayer", 10000, 0, "d", playerid);
}
}
}
}
pawn Код:
forward SpawnPlayer(playerid);
pawn Код:
public SpawnPlayer(playerid)
{
TogglePlayerSpectating(playerid, 0);
SpawnPlayer(playerid);
}