Ulysses
General => Developers Corner => Topic started by: SamBehner 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.
-
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 (https://forums.ulyssesmod.net/index.php?action=search2;params=eJwtzcEKgCAQBNB_6dLFS0RB_1FnsXWgwjJWKwI_vk287bxhWGNvcxBsqlOTqjRzvjrVtqpXzSAUFv9o8vvpECHlT9e8gaL2h3vLMHiO2q4s0SJQEUkMh_ziJximRXAa1x0f9sAunA..). 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.