ULX

Author Topic: UTime HUD  (Read 1546 times)

0 Members and 1 Guest are viewing this topic.

Offline SamBehner

  • Newbie
  • *
  • Posts: 5
  • Karma: 0
UTime HUD
« on: February 27, 2018, 03:39:24 PM »
I am currently using uTime on my server and I wan't to make a custom hud for it, how could i make it say their playtime


EXTRA:
I don't want the 1w 2d 4h 1m 2s, I just want it to find the highest number, in the example before, 1w and have it say 1 Week. If the 1w wasn't there it says 2 Days, etc.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: UTime HUD
« Reply #1 on: February 27, 2018, 07:44:18 PM »
Sam, there's a mini GUI for normal UTime on the client files. You should be able to review and see how it's working, then refine from there.
I've not looked lately, but I'm pretty sure Utime stores first time and stores/compares to 'current' time in Epoch time notation.

And, searching our releases thread for UTime brings up several different releases. It seems UTime was one of the most re-done releases Megiddo ever created. SQL, Ultimate, GUI UTime, several exist. Just review how those do it, then when stuck, give a thought out question describing your challenge, along with any errors.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming