![]() |
|
[Lua] TTT Scoreboard Ranks - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444) +--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151) +---- Forum: Coders Lounge (https://hackforums.net/forumdisplay.php?fid=5) +---- Thread: [Lua] TTT Scoreboard Ranks (/showthread.php?tid=3223233) |
TTT Scoreboard Ranks - -Infamous - Jan 31, 2013 1. Open up sb_row.lua (gamemode/vgui/sb_row.lua) Add: Code self.cols[5] = vgui.Create("DLabel", self)After: Code if KARMA.IsEnabled() then-------------------------------------------------------------------- Add: Code if ply:IsUserGroup("owner") thenTo add more ranks remove "end" from the code and add: Code else if ply:IsUserGroup("admin") thenRemember to type "end" when your finished adding the ranks. After: Code if self.cols[4] then------------------------------------------------------------------- 1. Open up sb_row.lua (gamemode/vgui/sb_row.lua) Add: Code self.cols[5] = vgui.Create( "DLabel", self )After: Code if KARMA.IsEnabled() then------------------------------------------------------------------ If your having a bit of trouble setting it up, I have added MY FILES for you to work off. ------------------------------------------------------------------ You can send me a private message if you have a request for a LUA tutorial I can do. Enjoy 👍 * - Rick Ross™ - Feb 2, 2013 Nice blur out, "[CBC] Boss." Lol, anyway, nice tutorial. |