Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- forward ClockSync();
- new Minute=8;
- new Second;
- under OnGameModeInit
- SetTimer("ClockSync", 1000, 1);
- public ClockSync()
- {
- Second++;
- if(Second == 60)
- {
- Minute++;
- Second = 0;
- }
- if(Minute >= 24) Minute = 0;
- for(new i = 0, j = GetPlayerPoolSize(); i <= j; i++) SetPlayerTime(i, Minute, Second);
- new string[64];
- format(string, sizeof(string), "The time [%d] [%d]", Minute, Second);
- return 1;
- }
Add Comment
Please, Sign In to add comment