21.05.2010, 19:02
How do make it, every 1 hour will come payday.
synctimer = SetTimer("SyncTime", 3600000, 1);
public SyncTime() { new string[64]; new tmphour; new tmpminute; new tmpsecond; gettime(tmphour, tmpminute, tmpsecond); FixHour(tmphour); //tmphour = shifthour; //tmphour++; format(string, sizeof(string), "Kell: Tere, kell on saanud %d:00",tmphour); BroadCast(COLOR_WHITE,string); ghour = tmphour; PayDay(); for(new i = 0; i < MAX_PLAYERS; i++) { PlayerInfo[i][pConnectTime] += 1; } format(string, sizeof(string), "Eesti Loto Uudised: Eesti Loto loosimine algas - head loosiхnne."); OOCOff(COLOR_WHITE, string); new rand = random(80); if(rand < 77) { rand += 3; } Lotto(rand); }