Advertisement
KinderClans

Untitled

Nov 2nd, 2018
532
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. task ServerFuncs[1000]()
  2. {
  3. /* ---- Clock System ---- */
  4. new clock[100],year,month,day,hours,minutes,seconds;
  5.  
  6. getdate(year, month, day), gettime(hours, minutes, seconds);
  7.  
  8. format(clock, sizeof clock, "%d/%s%d/%s%d", day, ((month < 10) ? ("0") : ("")), month, (year < 10) ? ("0") : (""), year);
  9. TextDrawSetString(DateTxd, clock);
  10.  
  11. format(clock, sizeof clock, "%s%d:%s%d:%s%d", (hours < 10) ? ("0") : (""), hours, (minutes < 10) ? ("0") : (""), minutes, (seconds < 10) ? ("0") : (""), seconds);
  12. TextDrawSetString(TimeTxd, clock);
  13. /* ---------------------- */
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement