random connected id
#3

Quote:
Originally Posted by Don Correlli
pawn Код:
new
    randomPlayer;
randomPlayer = random(MAX_PLAYERS);
if(IsPlayerConnected(randomPlayer))
{
  // connected.
}
else
{
  // not connected.
}
That unfortunately won't work very well..
It would return "Not connected" too often, and it would be quite inefficient in a loop
Reply


Messages In This Thread
random connected id - by Headshot1108 - 10.01.2010, 16:27
Re: random connected id - by Correlli - 10.01.2010, 16:39
Re: random connected id - by Streetplaya - 10.01.2010, 16:41
Re: random connected id - by Correlli - 10.01.2010, 16:42
Re: random connected id - by Finn - 10.01.2010, 16:51
Re: random connected id - by Headshot1108 - 10.01.2010, 16:53

Forum Jump:


Users browsing this thread: 4 Guest(s)