• TTT Scoreboard
    2 replies, posted
How can I add another row on TTT using evolve ranks? I found sb_rows.lua and this: [lua] self.cols = {} self.cols[1] = vgui.Create("Label", self) self.cols[1]:SetText(GetTranslation("sb_ping")) self.cols[2] = vgui.Create("Label", self) self.cols[2]:SetText(GetTranslation("sb_deaths")) self.cols[3] = vgui.Create("Label", self) self.cols[3]:SetText(GetTranslation("sb_score")) self.cols [4] = vgui.Create("Label", self) -- added this self.cols [4]:SetText(evolve.ranks) -- added this if KARMA.IsEnabled() then self.cols[5] = vgui.Create("Label", self) self.cols[5]:SetText(GetTranslation("sb_karma")) end [/lua] I know I did that wrong, but it's what I have. btw, evolve.ranks is a table...
[QUOTE=InfernalCookie;30437372]How can I add another row on TTT using evolve ranks? I found sb_rows.lua and this: [lua] self.cols = {} self.cols[1] = vgui.Create("Label", self) self.cols[1]:SetText(GetTranslation("sb_ping")) self.cols[2] = vgui.Create("Label", self) self.cols[2]:SetText(GetTranslation("sb_deaths")) self.cols[3] = vgui.Create("Label", self) self.cols[3]:SetText(GetTranslation("sb_score")) self.cols [4] = vgui.Create("Label", self) -- added this self.cols [4]:SetText(evolve.ranks) -- added this if KARMA.IsEnabled() then self.cols[5] = vgui.Create("Label", self) self.cols[5]:SetText(GetTranslation("sb_karma")) end [/lua] I know I did that wrong, but it's what I have. btw, evolve.ranks is a table...[/QUOTE] [lua] self.cols = {} self.cols[1] = vgui.Create("Label", self) self.cols[1]:SetText(GetTranslation("sb_ping")) self.cols[2] = vgui.Create("Label", self) self.cols[2]:SetText(GetTranslation("sb_deaths")) self.cols[3] = vgui.Create("Label", self) self.cols[3]:SetText(GetTranslation("sb_score")) self.cols [4] = vgui.Create("Label", self) -- added this self.cols [4]:SetText(evolve.ranks[ ply:EV_GetRank() ].Title) -- added this if KARMA.IsEnabled() then self.cols[5] = vgui.Create("Label", self) self.cols[5]:SetText(GetTranslation("sb_karma")) end [/lua]
Okay thanks xD
Sorry, you need to Log In to post a reply to this thread.