18.04.2014, 21:14
Is there a callback that's being called on hour starts (at 0:00, at 1:00, ... 16:00 etc.)?
SetTimer("EachHour", 1000 * 60 * 60, true);
// OnGameModeInit
HourTimer();
// global
forward HourTimer();
public HourTimer() {
// code
new
hour,
minute,
second
;
gettime(hour, minute, second);
SetTimer("HourTimer", (3599 - minute * 60 - seconds) * 1000, false);
}