30.04.2014, 05:18
This should do.
place this on top of your script.
Place this somewhere at the bottom of your script under the standard publics.
place this on top of your script.
pawn Код:
new timeshift = -1;
new shifthour;
pawn Код:
forward FixHour(hour);
public FixHour(hour)
{
hour = timeshift+hour;
if(hour < 0) { hour = hour+24; }
else if(hour > 23) { hour = hour-24; }
shifthour = hour;
return 1;
}