• Colored Names (NOT RANKS) In TTT Scoreboard
    4 replies, posted
[B][U]SOLVED[/U][/B] I have all the ranks and colors setup but my only problem is thta I forgot to change the color of 'Mod'. I do not know where this file is so if anybody could inform me please? [IMG]http://gyazo.com/277e74486b2377c5142b4308f92e3295.png[/IMG]
gamemodes/terrortown/gamemode/vgui/sb_row.lua. Starts on line 62 on a vanilla TTT install IIRC.
[QUOTE=tdlive aw'sum;43095246]gamemodes/terrortown/gamemode/vgui/sb_row.lua. Starts on line 62 on a vanilla TTT install IIRC.[/QUOTE] It's in a different file than that. I think it was one of the cl_NAME files. All I have there is: [code]local namecolor = { default = COLOR_WHITE, admin = Color(220, 180, 0, 255), dev = Color(100, 240, 105, 255) };[/code]
Lua/autorun/client [LUA] local namecolors = {} namecolors[ "admin" ] = Color( 255, 0, 0 ) namecolors[ "mod" ] = Color( 200, 55, 55 ) local function ScoreboardNameColors( ply ) local rank = ply:GetNWString( "usergroup" ) return namecolors[ rank ] and namecolors[ rank ] or nil end hook.Add ( "TTTScoreboardColorForPlayer", "TTTSBNameColor", ScoreboardNameColors ) [/LUA]
Thank you rejax!!!
Sorry, you need to Log In to post a reply to this thread.