07.09.2011, 13:08
Hey, guys.
Got any idea as to how would I choose a random player out of those currently online?
Thank you.
Got any idea as to how would I choose a random player out of those currently online?
Thank you.
new player = random(MAX_PLAYERS);
while(!IsPlayerConnected(player)) player = random(MAX_PLAYERS);
printf("Player ID %d", player);
#include <foreach>
SendClientMessage(Iter_Random(Player), -1, "Hello, you have been selected by a random test!");