Get random players
#7

pawn Код:
new OnlineID[MAX_SERVER_SLOTS],Add; // replace MAX_SERVER_SLOTS
for(new d,g=GetMaxPlayers(); d < g; d++)
    if(IsPlayerConnected(d))
    {
        OnlineID[Add] = d;
        Add++;
    }
new RandomID = OnlineID[random(Add)];
Reply


Messages In This Thread
Get random players - by VoViNaToR - 13.06.2011, 14:29
Re: Get random players - by Benjo - 13.06.2011, 14:36
Re: Get random players - by VoViNaToR - 13.06.2011, 14:42
Re: Get random players - by VoViNaToR - 13.06.2011, 14:48
Re: Get random players - by Benjo - 13.06.2011, 14:50
Re: Get random players - by VoViNaToR - 13.06.2011, 14:55
Re: Get random players - by Jefff - 13.06.2011, 17:13

Forum Jump:


Users browsing this thread: 4 Guest(s)