Random player
#5

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);
Reply


Messages In This Thread
Random player - by marinov - 07.11.2010, 05:57
Re: Random player - by marinov - 07.11.2010, 06:45
Re: Random player - by Kwarde - 07.11.2010, 06:59
Re: Random player - by legodude - 07.11.2010, 07:03
Re: Random player - by Kwarde - 07.11.2010, 07:13
Re: Random player - by iggy1 - 07.11.2010, 07:17
Re: Random player - by (SF)Noobanatior - 07.11.2010, 07:45
Re: Random player - by iggy1 - 07.11.2010, 07:51

Forum Jump:


Users browsing this thread: 1 Guest(s)