PHP код:
forward SyncTime();
public SyncTime()
{
new string[64];
new tmphour;
new tmpminute;
new tmpsecond;
gettime(tmphour, tmpminute, tmpsecond);
FixHour(tmphour);
tmphour = shifthour;
if ((tmphour > ghour) || (tmphour == 0 && ghour == 23))
}
in OngamemodeInit
use this line
PHP код:
if(!realtime)
{
SetWorldTime(wtime);
gTime = wtime;
}
if (realtime)
{
new tmphour;
new tmpminute;
new tmpsecond;
gettime(tmphour, tmpminute, tmpsecond);
FixHour(tmphour);
tmphour = shifthour;
SetWorldTime(tmphour);
gTime = tmphour;
}
if(!realtime)
{
SetWorldTime(wtime);
gTime = wtime;
}
in
task SyncUp
put this line
This is only for RP server