17.09.2012, 16:31
well here you go
Now you can use it for example like this:
+rep if that helps
pawn Код:
stock SelectRandomPlayer()
{
new random = Random(MAX_PLAYERS);
if(IsPlayerConnected(random))
{
return random;
}
else
{
SelectRandomPlayer();
}
}
pawn Код:
new randomplayer = SelectRandomPlayer();
GivePlayerMoney(randomplayer, 5000);
+rep if that helps