07.11.2010, 07:13
Yeah I didn't think: On this way you have fast an invalid player. Try this :P (3 time's is the charm)
pawn Code:
new RandomP;
RandomP = random(GetMaxPlayers());
if(!IsPlayerConnected(RandomP)) return false;
gTeam[RandomP] = team; //Change to your variables
SpawnPlayer(RandomP);