• Utime on scoreboard TTT
    3 replies, posted
I have Utime installed, but it still shows in the top right of my screen. Neither do i know how to add a column xD. I have been searching for where to add wich code, but so far i haven't found a code nor a location. If anyone can help me out here that would really be appreciated.
[QUOTE]TTTScoreboardColumns (pnl) Client Called when the scoreboard is initialized. Additional custom columns can be added by calling "pnl:AddColumn(heading, func)", where "pnl" is the panel passed to this hook as an argument, "label" is your column heading text, and "func" is a function you define that will be called to get up-to-date text for the column. The function is called for each row as "func(ply, label)", where "ply" is the player on that row and "label" is the DLabel object (which can be used to set text colour). For example, to show user IDs on the scoreboard, you would do the following in this hook: pnl:AddColumn("ID", function(ply) return ply:UserID() end)[/QUOTE] Found here: [url]http://ttt.badking.net/guides/hooks[/url]
Thank you, But now it shows ID, how do I now add the Utime to it?
Can you find any specific function Utime calls to get the playtime? Try line 159 of [URL="https://github.com/Nayruden/Ulysses/blob/master/utime/lua/autorun/cl_utime.lua"]https://github.com/Nayruden/Ulysses/blob/master/utime/lua/autorun/cl_utime.lua[/URL] [CODE]timeToStr( LocalPlayer():GetUTimeTotalTime() )[/CODE]
Sorry, you need to Log In to post a reply to this thread.