21.04.2017, 17:34
Hello everyone im making a lottery system but i need help here!!!!
The Timer:-
My problem is I Want it given him the message at 6:00 and lottery winning's at 16:00 how should i did it?... i already make a timer and everything is done but i dont knw what is timers like
15000 = what ... so can u help me?
EDITED:- I Want LottoShow()must be show at 6:00
Is this you want?> pls help
The Timer:-
My problem is I Want it given him the message at 6:00 and lottery winning's at 16:00 how should i did it?... i already make a timer and everything is done but i dont knw what is timers like
15000 = what ... so can u help me?
EDITED:- I Want LottoShow()must be show at 6:00
Код:
new time;
forward LottoShow();
public LottoShow()
{
new string[256];
format(string, sizeof(string), "{00FF00}[LOTTERY]: The current Jackpot is: $%d The Lottery will be draw in 4 game Hours!",Jackpot);
SendClientMessageToAll(COLOR_WHITE, string);
KillTimer(Timer);
time = SetTimer("LottoWiner",15000,1);
return 1;
}
And this at 16:00
forward LottoWiner();
public LottoWiner()
{
KillTimer(time);
new rand = randomEx(1,MAX_NUMBERS);
if(rand < MAX_NUMBERS - 3) { rand += 3; }
Timer = SetTimer("LottoShow", 1000*(LottoTime*60), 1);
Lotto(rand);
}

