04.08.2010, 23:27
Try this:
pawn Код:
public RandomPlayer()
{
for(new i=0; i != MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
new rand = random(2);
if(rand == 1)
{
SendClientMessage(i, 0xFAFFFF0, "You have been randomly chosen!");
break;
}
else continue;
}
}
return 1;
}