SupperRobin6394

Untitled

Jan 31st, 2016
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.42 KB | None | 0 0
  1. forward ClockSync();
  2. new Minute=8;
  3. new Second;
  4.  
  5.  
  6. under OnGameModeInit
  7. SetTimer("ClockSync", 1000, 1);
  8.  
  9.  
  10. public ClockSync()
  11. {
  12.     Second++;
  13.     if(Second == 60)
  14.     {
  15.         Minute++;
  16.         Second = 0;
  17.     }
  18.     if(Minute >= 24) Minute = 0;
  19.     for(new i = 0, j = GetPlayerPoolSize(); i <= j; i++) SetPlayerTime(i, Minute, Second);
  20.     new string[64];
  21.     format(string, sizeof(string), "The time [%d] [%d]", Minute, Second);
  22.     return 1;
  23. }
Add Comment
Please, Sign In to add comment