Random choose
#3

you can use this as a cmd...
Код:
new onlinePlayers ,winner;

for(new i = 0; i < MAX_PLAYERS ; i++)
{
    if(IsPlayerConnected(i) ) onlinePlayers++;
}

winner = random(onlinePlayers);

GivePlayerMoney(winner ,5000);
SendClinetMessage(winner ,COLOR_GREEN ,"Congrats ,you won 5000$ on a random draw!");
Reply


Messages In This Thread
Random choose - by SumX - 17.09.2012, 16:20
Re: Random choose - by XtremeR - 17.09.2012, 16:31
Re: Random choose - by detter - 17.09.2012, 16:38
Re: Random choose - by DeathTone - 17.09.2012, 16:43
Re: Random choose - by SumX - 17.09.2012, 16:50
Re: Random choose - by DeathTone - 17.09.2012, 16:52
Re: Random choose - by SumX - 17.09.2012, 16:53

Forum Jump:


Users browsing this thread: 3 Guest(s)