• UTIME
    1 replies, posted
.
You can use this which is in the UTime addon for making the time readable [lua] function timeToStr( time ) local tmp = time local s = tmp % 60 tmp = math.floor( tmp / 60 ) local m = tmp % 60 tmp = math.floor( tmp / 60 ) local h = tmp % 24 tmp = math.floor( tmp / 24 ) local d = tmp % 7 local w = math.floor( tmp / 7 ) return string.format( "%02iw %id %02ih %02im %02is", w, d, h, m, s ) end [/lua] and do something like [lua] print( timeToStr( ply:GetUTimeTotalTime() ) ) [/lua]
Sorry, you need to Log In to post a reply to this thread.