Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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 == 24))
- {
- format(string, sizeof(string), "SERVER: The time is now %d:00 hours",tmphour);
- BroadCast(COLOR_WHITE,string);
- ghour = tmphour;
- PayDay();
- if (realtime)
- {
- SetWorldTime(tmphour);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement