02.06.2015, 09:00
Код:
//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;
}
}

