I'm helping set up a GMod TTT server, and I've been setting up the scoreboard to display player's ranks. The only problem is, when I add my working rank column, there's another broken rank column that I cant manage to get rid of. Even if I remove my working rank column, this rank column stays there. I've checked the sb_row/main files and I cant find them adding a rank column anywhere. Any help would be appreciated.
With working rank column:
[url]http://imgur.com/oriGy4d,4XjoSvL#1[/url]
Without working rank column:
[url]http://imgur.com/oriGy4d,4XjoSvL[/url]
My script to add working rank column:
local tttRankcolours = {}
tttRankcolours["admin"] = Color(160, 255, 170, 255)
tttRankcolours["superadmin"] = Color(255, 0, 255, 255)
tttRankcolours["Manager"] = Color(0, 0, 204, 255)
tttRankcolours["Director"] = Color(255, 0, 0, 255)
tttRankcolours["Trial Admin"] = Color(204, 102, 0, 255)
tttRankcolours["Developer"] = Color(128, 0, 255, 255)
tttRankcolours["Senior Admin"] =Color(0, 128, 255, 255)
tttRankcolours["Super Donator"] = Color(0, 153, 77, 255)
tttRankcolours["Donator"] = Color(128, 255, 0, 255)
hook.Add( "TTTScoreboardColumns", "have_I_redeemed_myself_comma_Netheous_questionmar k1", function(pnl)
pnl:AddColumn("Rank", function(ply, label)
label:SetTextColor( tttRankcolours[ply:GetNWString("usergroup")] )
return ply:GetNWString("usergroup")
end)
end )
Check in "terrortown/gamemode/vgui/sb_main.lua" and "terrortown/gamemode/vgui/sb_row.lua".
Look for self:AddColumn in both of those files, there might be one that's adding a Rank column.
If not you must have an addon that's doing it, I know that Badking added new functions where it adds columns/rows.
That's really all I can guess.
Sorry, you need to Log In to post a reply to this thread.