04.08.2010, 23:31
I wouldn't use that, that'll end in the first 5-10 players every time.
This could work, I'm half asleep and wrote this in this quick reply box so anything can happen:
This could work, I'm half asleep and wrote this in this quick reply box so anything can happen:
pawn Код:
new playaz[MAX_PLAYERS], count;
for(new i; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
playaz[count] = i;
count++;
}
}
new rand = playaz[random(count)];