• How do I change the color of my staff on garrysmod server?
    5 replies, posted
?
?
Like the color on scoreboard, I tried the cl_scoreboard file but its gave me a error [CODE]-- a much requested darker scoreboard local table = table local surface = surface local draw = draw local math = math local team = team local namecolor = { admin = Color(220, 180, 0, 255) superadmin = Color(193, 27, 23) moderator = Color(130, 202, 250) trusted = Color(115, 111, 110) owner = Color(193, 27, 23) }; include("vgui/sb_main.lua") sboard_panel = nil local function ScoreboardRemove() if sboard_panel then sboard_panel:Remove() sboard_panel = nil end end hook.Add("TTTLanguageChanged", "RebuildScoreboard", ScoreboardRemove) function GM:ScoreboardCreate() ScoreboardRemove() sboard_panel = vgui.Create("TTTScoreboard") end function GM:ScoreboardShow() self.ShowScoreboard = true if not sboard_panel then self:ScoreboardCreate() end gui.EnableScreenClicker(true) sboard_panel:SetVisible(true) sboard_panel:UpdateScoreboard(true) sboard_panel:StartUpdateTimer() end function GM:ScoreboardHide() self.ShowScoreboard = false gui.EnableScreenClicker(false) if sboard_panel then sboard_panel:SetVisible(false) end end function GM:GetScoreboardPanel() return sboard_panel end function GM:HUDDrawScoreBoard() -- replaced by panel version end [/CODE]
Why don't you tell us the error?
1. I don't think that is the right place to edit the ranks. You want to edit sb_main.lua, sb_row.lua, sb_info.lua, and sb_team.lua 2. I believe your error (Don't know what it is) is because of your local namecolors. You'd have to put commas after each Rank or color: [CODE]admin = Color(220, 180, 0, 255), superadmin = Color(193, 27, 23), moderator = Color(130, 202, 250), trusted = Color(115, 111, 110), owner = Color(193, 27, 23)[/CODE] I have my own Scoreboard set up if you'd like it. Mine is special because certain colors rotate on it. PM me if you'd like it
exact reason i wrote this [url]http://facepunch.com/showthread.php?t=1356376[/url]
Sorry, you need to Log In to post a reply to this thread.