Lotto
#2

Код:
//In OnGameModeInit
SetTimer("@Lotto",1000*60*60,1);

@Lotto();@Lotto()
{
    new lotto =  random(99)+1; //Lotto Numbers between 1-99
    for(new i,l=GetPlayerPoolSize()+1; i<l; i++)
    {
        if(!IsPlayerConnected(i)) continue;
        if(KasutajaInfo[i][LotoNumber] == lotto)
        {   
             //Here the player has won!
        }
        //Here reset the player values
        KasutajaInfo[i][LotoNumber] = 0;
    }
}
Greekz
Reply


Messages In This Thread
Lotto - by Eestlane123 - 02.06.2015, 08:54
AW: Lotto - by Kaliber - 02.06.2015, 09:00

Forum Jump:


Users browsing this thread: 1 Guest(s)