22.10.2017, 22:00
if you mean to set world time using real time clock you can use something like that.
// OnGamemodeinit
PHP код:
forward public OnWorldTimeUpdate();
public OnWorldTimeUpdate()
{
new h, m, s;
gettime(h, m, s);
if(h > 0 && h < 5) SetWorldTime(0);
else SetWorldTime(12);
return true;
}
PHP код:
SetTimer("OnWorldTimeUpdate", 30*60*1000, true);