Hi
I have recently posted about a TTT scoreboard which I resolved but I am wondering how I may make it even better. This is what it currently looks like:
[IMG]http://i45.tinypic.com/2lu74fk.jpg[/IMG]
What I want to do is make it so the actual name is the same colour as the rank. What do I have to edit in sb_row to do this? (as in what determines the colour of the name)
Cheers
bs8814
I got mine working with [URL="http://www.zombiemaster.org/smf/index.php?topic=10136.0"]this[/URL]
[QUOTE=zapha;39572576]I got mine working with [URL="http://www.zombiemaster.org/smf/index.php?topic=10136.0"]this[/URL][/QUOTE]
Cool got it done, for people who want to know how to do it use this:
[LUA]
if SERVER then
AddCSLuaFile("scoreboardcolors.lua")
else
function MySBColors(ply)
if ply:IsUserGroup("owner") then
return Color(255, 0, 255)
end
end
hook.Add("TTTScoreboardColorForPlayer", "MySBColors", MySBColors)
end
[/LUA]
[lua]if SERVER then
AddCSLuaFile("scoreboardcolors.lua")
else
function MySBColors(ply)
if ply:IsUserGroup("owner") then
return Color(164, 4, 9)
end
if ply:IsUserGroup("super admin") then
return Color(247, 149, 1)
end
end
hook.Add("TTTScoreboardColorForPlayer", "MySBColors", MySBColors)
end[/lua]
I keep getting errors with this script... What am I doing wrong?
EDIT:
Figured it out, nvm
Sorry, you need to Log In to post a reply to this thread.