14.01.2012, 18:44
Well try using this code:
pawn Code:
// create a new global varibale at top of script
// new FirstSpawn[MAX_PLAYERS char];
public OnPlayerConnect(playerid)
{
TogglePlayerSpecating(playerid, 1);
FirstSpawn{playerid} = 1;
return 1;
}
public OnPlayerSpawn(playerid)
{
if(FistSpwan{playerid} == 1)
{
FirstSpawn{playerid} = 0;
SetPlayerPos(playerid, pos1, pos2, pos3); // put your postions in here too and see if that works.
TogglePlayerSpectating(playerid, 0);
}
return 1;
}