Spectating a random player
#2

Have you got 30 players on your server when testing? The random function in your script will just get a random number 0 - 29, it doesn't check if the player is actually connected. Easiest way i can think of is using foreach.
pawn Код:
new randomplayer = Iter_Random(Player);
Reply


Messages In This Thread
Spectating a random player - by Michael@Belgium - 11.04.2011, 08:38
Re: Spectating a random player - by iggy1 - 11.04.2011, 08:44
Re: Spectating a random player - by Michael@Belgium - 11.04.2011, 08:47
Re: Spectating a random player - by iggy1 - 11.04.2011, 08:50
Re: Spectating a random player - by Mean - 11.04.2011, 08:51
Re: Spectating a random player - by iggy1 - 11.04.2011, 08:53
Re: Spectating a random player - by Michael@Belgium - 11.04.2011, 08:54
Re: Spectating a random player - by Mean - 11.04.2011, 08:54
Re: Spectating a random player - by iggy1 - 11.04.2011, 08:57
Re: Spectating a random player - by Michael@Belgium - 11.04.2011, 08:58

Forum Jump:


Users browsing this thread: 1 Guest(s)