startlotto
#2

Quote:
Originally Posted by Joker_EST
hey, i need help again,i got /startlotto cmd,i want that to do automatically every full hour,how can i do that?

heres the CMD

pawn Код:
forward LottoTimer();  
public LottoTimer()
{
for(new playerid=0;playerid<=MAX_PLAYERS;playerid++)
    {
      if(IsPlayerConnected(playerid))
      {
          format(string, sizeof(string), "Lottery News: We have started the Lottery Election.");
          OOCOff(COLOR_WHITE, string);
          new rand = random(80);
          if(rand < 77) { rand += 3; }
          Lotto(rand);
      }
        return 1;
    }
}

OnGameModeInit()
{
SetTimer("LottoTimer",3600000,1);
}
Reply


Messages In This Thread
startlotto - by WardenCS - 05.08.2009, 09:47
Re: startlotto - by SiJ - 05.08.2009, 09:55
Re: startlotto - by Kyle - 05.08.2009, 09:55
Re: startlotto - by Kyle - 05.08.2009, 09:55
Re: startlotto - by SiJ - 05.08.2009, 09:56
Re: startlotto - by WardenCS - 05.08.2009, 09:59
Re: startlotto - by Kyle - 05.08.2009, 10:03
Re: startlotto - by WardenCS - 05.08.2009, 10:05
Re: startlotto - by Cracker - 20.08.2009, 20:15

Forum Jump:


Users browsing this thread: 1 Guest(s)