• Scoreboard Ranks TTT
    9 replies, posted
Hey guys i have been looking for a working scoreboard rank system so i can add admin tags and ect. i have seen the ULX TTT scoreboard ranking system but it doesnt work because it has an error where u cant see dead people and the creator of the addon is trying to fix it, i also tryed TTT easy scoreboard which just didnt work i followed all the instructions. Even if anyone had any code that would be extremely helpfull. Thanks :)
Here you go. I used tables but I changed it so its as newb friendly as possible! [CODE][[-----===== Made by Unknown Gamer =====-----]] [[----- Begin Color Config Table -----]] local owner = Color(255, 0, 0, 255) local h_admin = Color(65, 105, 255, 255) local admin = Color(235, 150, 13, 255) local mod = Color(0, 255, 46, 255) local tmod = Color(0, 255, 221, 255) [[----- Begin Name Coloring -----]] hook.Add("TTTScoreboardColorForPlayer", "Scoreboard Player Color", function(ply) if not IsValid(ply) then return nil end if ply:IsUserGroup("Owner") then -- Group that will have a color return owner -- What color? Change, add, or remove colors at top of file elseif ply:IsUserGroup("HeadAdmin") then return h_admin elseif ply:IsUserGroup("Admin") then return admin elseif ply:IsUserGroup("Moderator") then return mod elseif ply:IsUserGroup("Trial Moderator") then return tmod end end) [[----- Begin Rank Name & Rank Name Coloring -----]] hook.Add("TTTScoreboardColumns", "Scoreboard Columns", function(pnl) -- ULX Groups pnl:AddColumn("Rank", function(ply, label) if IsValid(ply) then if ply:IsUserGroup("Owner") then -- What group will have their rank drawn? label:SetColor(owner) -- What color? Change, add, or remove colors at top of file return "Owner" -- What text will be displayed for this group? elseif ply:IsUserGroup("HeadAdmin") then label:SetColor(h_admin) return "Head Admin" elseif ply:IsUserGroup("Admin") then label:SetColor(admin) return "Admin" elseif ply:IsUserGroup("Moderator") then label:SetColor(mod) return "Moderator" elseif ply:IsUserGroup("Trial Moderator") then label:SetColor(tmod) return "Trial Mod" end end return "" end, 80) end)[/CODE]
Sorry im A noob but where did i put this?
[QUOTE=Mike Wazowski;49268232]Sorry im A noob but where did i put this?[/QUOTE] Try garrymod/lua/autorun/client
What would the name of the file be? [editline]8th December 2015[/editline] I put it into garrysmod/lua/autorun/client as ttt_scoreboard but it doesnt seem to work
try this: [URL="https://facepunch.com/showthread.php?t=1356376"]https://facepunch.com/showthread.php?t=1356376[/URL] Put the folder into garrysmod/addons/ Read the readme for config it.
[QUOTE=Predda;49270746]try this: [URL="https://facepunch.com/showthread.php?t=1356376"]https://facepunch.com/showthread.php?t=1356376[/URL] Put the folder into garrysmod/addons/ Read the readme for config it.[/QUOTE] [QUOTE=Mike Wazowski;49264547]i also tryed TTT easy scoreboard which just didnt work i followed all the instructions. [/QUOTE]
"Just didn't work" is too vague - if you post what you did I'll be more than happy to help you get it set up how you like it.
[QUOTE=Mike Wazowski;49268614]What would the name of the file be? [editline]8th December 2015[/editline] I put it into garrysmod/lua/autorun/client as ttt_scoreboard but it doesnt seem to work[/QUOTE] Just name it scoreboard.lua and put it in lua/autorun
THANKS UNKOWN GAMER LOVE YOU
Sorry, you need to Log In to post a reply to this thread.