[URL=https://github.com/rejax/TTT-EasyScoreboard/commit/3d245ed8461e81f03f4e933d360c5f3d70ca31c3]Added silkicon support, thanks to SaintSin6 for the idea[/URL]
just add rank="blah" field, it has to be a silkicon. Don't use the full path, just the name. So "icon16/heart.png" is wrong, "heart" is right.
also cleaned some stuff
Hi there!
I love your addon -- it's very useful and saves me a lot of time. Thank you so much.
I just moved a server that I run by myself on my computer (for testing purposes) onto a Linux (Ubuntu) VPS with the same exact files -- except the scoreboard wont show ranks? Everything else works fine. No script errors, just that it won't display anything. Worked fine on my machine.
Do you know how to fix this?
I've reinstalled the addon completely and edited the default config for my ranks. Nothing.
P.S. Add me on Steam so we can chat (if you'd like, of course): [url]http://steamcommunity.com/id/pjor1/[/url], or reply!
EDIT: Fixed! Apparently Linux doesn't like directories with capital letters.
Thank you very much for this.
Forgive me for sounding like an idiot, but does this go in your addons folder?
[editline]24th August 2014[/editline]
Nevermind, figured that out, now I can't get it to display a rank for me. It just says rank where it should say owner.
[editline]24th August 2014[/editline]
Actually would you mind walking me through this at some point, I am just feeling like a complete idiot right now... :(
[url]http://steamcommunity.com/id/jamisan601/[/url]
Is it possible to have it so instead of ULX rank i could have playername based? so somone donates for Super VIP that includes a custom colour of theyre choice they can have it based on theyre player's name and not rank so i dont have to create custom ranks all the time?
Is it possible to add something where you can have two custom colors glow like with the rainbow (something like the wyozi tag editor)? Extra edit to this: Could you also have it so the rainbow only affects the tag and not the person's username as well?
This is an awesome script and I'm glad it's still being updated :smile:
Edit: I also tested the ezs_tags and I get this error after pressing OK
[IMG]http://i.imgur.com/5OqlMX7.png[/IMG]
The only way for the ezs_tags options to show up was to place the lua file into the client side folder.
And is it also possible to have an icon and a custom tag? (ie: [IMG]http://upload.wikimedia.org/wikipedia/commons/f/f8/Sport_8ball.png[/IMG]Super Admin) <--- Something like that?
(Apologies for the multiple requests but this script has a lot of potential)
[QUOTE=RDGXTECHX;45886506]
Also this is an awesome script, the only thing that is limiting is that in order for a player to update their tag, they would need to reload into the server unless there's a way to make it update without that?
[/QUOTE]
[QUOTE]ezs_refreshscoreboard[/QUOTE] in console
[QUOTE=Tomelyr;45889262]in console[/QUOTE]
lol I just found the code for the command at the very bottom of the TTT_EasyScoreboard.lua file thank you for telling me that.
[QUOTE=RDGXTECHX;45886506]
[b]1)[/b] Is it possible to add something where you can have two custom colors glow like with the rainbow (something like the wyozi tag editor)?
[b]2)[/b] Could you also have it so the rainbow only affects the tag and not the person's username as well?
[b]3)[/b] I also tested the ezs_tags and I get this error
[b]4)[/b] is it also possible to have an icon and a custom tag?[/QUOTE]
1. I have no idea what you mean?
2. Added EZS.AllowNamesToHaveRainbow
3. ezs_tags goes into lua/autorun/ezs_tags.lua -> you had it in lua/autorun/client
4. Added functionality, if the rank has an icon and a name, both will be shown (added EZS.ShowIconsWithRanks and EZS.ShiftRankIcon)
thanks for the feedback :)
[QUOTE=rejax;45932089]1. I have no idea what you mean?
2. Added EZS.AllowNamesToHaveRainbow
3. ezs_tags goes into lua/autorun/ezs_tags.lua -> you had it in lua/autorun/client
4. Added functionality, if the rank has an icon and a name, both will be shown (added EZS.ShowIconsWithRanks and EZS.ShiftRankIcon)
thanks for the feedback :)[/QUOTE]
Awesome!
For number 1, I meant that you can choose two different colors for the player and the colors would change between those two colors.
For example if I chose red and blue, it would glow between red and blue. It would be like your rainbow effect but only two colors.
Is it also possible to have it so you can add the icon via the admin options? So, you click on add icon and then type in the name of said icon and it will pop up on the scoreboard? This would allow admins without file access to add icons to the player. In addition to the icons, changing the colors in game would be awesome as well.
I will more than gladly give you more feedback if it progresses this code. :eng101:
Nevermind the icon position issue, I fixed it myself :rock:
got this error :
[ERROR] lua/autorun/client/ttt_easyscoreboard.lua:99: bad key to string index (number expected, got string)
1. error - [C]:-1
2. __index - lua/includes/extensions/string.lua:274
3. unknown - lua/autorun/client/ttt_easyscoreboard.lua:99
D: dont know what it means
[QUOTE=Cryen;45935285]got this error :
[ERROR] lua/autorun/client/ttt_easyscoreboard.lua:99: bad key to string index (number expected, got string)
1. error - [C]:-1
2. __index - lua/includes/extensions/string.lua:274
3. unknown - lua/autorun/client/ttt_easyscoreboard.lua:99
D: dont know what it means[/QUOTE]
Post your file, like [noparse][CODE] your file in here[/CODE][/noparse]
@RDGX - I'll see what i can do
[CODE] [ERROR] lua/autorun/client/ttt_easyscoreboard.lua:99: bad key to string index (number expected, got string)
1. error - [C]:-1
2. __index - lua/includes/extensions/string.lua:274
3. unknown - lua/autorun/client/ttt_easyscoreboard.lua:99 [/CODE]
No I think Rejax is asking you to post the file that is causing the error. You've added something to line 99ish and it is causing that error.
i know but put the wrong code in >.< didnt copy that (hate my keyboard D;)
[CODE] for id, rank in pairs( EZS.Ranks ) do
if rank.icon then
rank.__iconmat = Material( ("icon16/%s.png"):format( rank.icon ) )
end
end [/CODE]
I need to see how you've set up your ranks, one of your icons is wrong
dont use any icon ....
here ( worked few days ago without problems)
[CODE] EZS = {} -- what's one more global to the fray
EZS.Ranks = {}
--[[ CONFIG ]]--
EZS.Enabled = true
-- you can set a silkicon to be used, by adding a "icon" field. for example: icon = "heart" will be drawn as "icon16/heart.png"
-- for a full list of silkicons, go to http://www.famfamfam.com/lab/icons/silk/previews/index_abc.png
--EZS.Ranks["rank OR steamid"] = { name = "displayname", color = RankColor, namecolor = (optional), admin = are they admin? (true/false) }
EZS.Ranks["S.Admin"] = { name = "Super Admin", color = Color( 205, 102, 0 ), admin = true }
EZS.Ranks["Admin"] = { name = "Admin", color = Color( 255, 140, 0 ), admin = true }
EZS.Ranks["user"] = { name = "Member", color = Color( 255, 228, 196 ), admin = false }
EZS.Ranks["Co-Owner"] = { name = "Co-Owner", color = Color( 0, 238, 0 ), admin = true }
EZS.Ranks["Moderator"] = { name = "Moderator", color = Color( 139, 0, 0 ), admin = true }
EZS.Ranks["Diamant"] = { name = "Diamant Member", color = Color( 0, 255, 255 ), admin = false }
EZS.Ranks["Gold"] = { name = "Gold Member", color = Color( 255, 215, 0 ), admin = false }
EZS.Ranks["Supporter"] = { name = "Supporter", color = Color( 255, 255, 0 ), admin = false }
EZS.Ranks["Premium"] = { name = "Premium", color = Color( 153, 153, 153 ), admin = false }
EZS.Ranks["BlackCrystal"] = "rainbow"
-- it would be nice if you left this in :)
EZS.Ranks["STEAM_0:1:45852799"] = { name = "rejax", color = Color( 100, 200, 100 ), admin = false }
-- label enable on the top? what should it say?
EZS.CreateRankLabel = { enabled = true, text = "Rank" }
-- sadly there is no way to shift the background bar over as TTT draws it manually :c
EZS.HideBackground = false
-- the number of columns (not pixels!!!!!!!) to shift to the left
EZS.ShiftLeft = 0
-- shift tags, search marker, etc how much? (IN PIXELS)
EZS.ShiftOthers = 200
-- should we color the names?
EZS.UseNameColors = true
-- frequency of rainbow (if enabled)
EZS.RainbowFrequency = .5
EZS.RightClickFunction = { enabled = true, ask_admins = true, functions = {
["User Functions"] = {
["Show Profile"] = function( ply )
ply:ShowProfile()
end,
["Copy SteamID"] = function( ply )
SetClipboardText( ply:SteamID() )
chat.AddText( color_white, ply:Nick() .. "'s SteamID (", Color( 200, 200, 200 ), ply:SteamID(), color_white, ") copied to clipboard!" )
end,
_icon = "icon16/group.png",
},
["Admin Functions"] = {
{
["Kick"] = { func = function( ply )
RunConsoleCommand( "ulx", "kick", ply:Nick():gsub( ";", "" ) )
end, icon = "icon16/user_delete.png" },
["Slay"] = { func = function( ply )
RunConsoleCommand( "ulx", "slay", ply:Nick():gsub( ";", "" ) )
end, icon = "icon16/pill.png" },
},
{
["Mute"] = { func = function( ply )
RunConsoleCommand( "ulx", "mute", ply:Nick():gsub( ";", "" ) )
end, icon = "icon16/pill.png" },
["Un-Mute"] = { func = function( ply )
RunConsoleCommand( "ulx", "unmute", ply:Nick():gsub( ";", "" ) )
end, icon = "icon16/pill.png" },
},
{
["Gag"] = { func = function( ply )
RunConsoleCommand( "ulx", "gag", ply:Nick():gsub( ";", "" ) )
end, icon = "icon16/sound_mute.png" },
["Un-Gag"] = { func = function( ply )
RunConsoleCommand( "ulx", "ungag", ply:Nick():gsub( ";", "" ) )
end, icon = "icon16/sound.png" },
},
{
["Goto"] = { func = function( ply )
RunConsoleCommand( "ulx", "goto", ply:Nick():gsub( ";", "" ) )
end, icon = "icon16/sound_mute.png" },
["Bring"] = { func = function( ply )
RunConsoleCommand( "ulx", "bring", ply:Nick():gsub( ";", "" ) )
end, icon = "icon16/sound.png" },
},
_icon = "icon16/shield.png",
}
}
}
hook.Run( "EZS_AddRightClickFunction", EZS.RightClickFunction.functions )
--[[ END CONFIG ]]--
for id, rank in pairs( EZS.Ranks ) do
if rank.icon then
rank.__iconmat = Material( ("icon16/%s.png"):format( rank.icon ) )
end
end
local function RealUserGroup( ply )
if ply.EV_GetRank then return ply:EV_GetRank() end
return ply:GetUserGroup()
end
local function rainbow()
local frequency, time = EZS.RainbowFrequency, RealTime()
local red = math.sin( frequency * time ) * 127 + 128
local green = math.sin( frequency * time + 2 ) * 127 + 128
local blue = math.sin( frequency * time + 4 ) * 127 + 128
return Color( red, green, blue )
end
function EZS.HandleShift( sb )
if EZS.ShiftLeft < 1 then return end
local function ShiftLeft( parent )
local k = EZS.HideBackground and 6 or 5
local p = parent.cols[k]
if not p then return end
local shift = EZS.HideBackground and 1 or 0
local karma = KARMA.IsEnabled() and 0 or 1
local left = ( 5 - karma ) - EZS.ShiftLeft
local posx, posy = p:GetPos()
local mod = ( 50 * ( ( left + shift ) - #parent.cols ) )
p:SetPos( posx + mod, posy )
end
if sb.ply_groups then -- sb_main
local OldPerformLayout = sb.PerformLayout
sb.PerformLayout = function( s )
OldPerformLayout( s )
ShiftLeft( s )
end
else -- sb_row
local OldLayoutColumns = sb.LayoutColumns
sb.LayoutColumns = function( s )
OldLayoutColumns( s )
ShiftLeft( s )
EZS.HandleTags( s )
end
end
end
function EZS.HandleTags( sb )
if EZS.ShiftOthers <= 0 then return end
-- copy some from base
local cx = sb:GetWide() - 90
for k,v in ipairs(sb.cols) do
cx = cx - v.Width
end
sb.tag:SizeToContents()
sb.tag:SetPos((cx - sb.tag:GetWide()/2) - EZS.ShiftOthers, (SB_ROW_HEIGHT - sb.tag:GetTall()) / 2)
sb.sresult:SizeToContents()
sb.sresult:SetPos((cx - 8)-EZS.ShiftOthers, (SB_ROW_HEIGHT - 16) / 2)
end
function EZS.AddRankLabel( sb )
local heading = EZS.CreateRankLabel.enabled and EZS.CreateRankLabel.text or ""
local function RainbowFunction( label, key )
label.HasRainbow = true
label.Think = function( s )
if EZS.Ranks[key] and EZS.Ranks[key].color ~= "rainbow" then
s:SetTextColor( EZS.Ranks[key].color )
else
s:SetTextColor( rainbow() )
end
end
sb.nick.Think = function( s )
if EZS.Ranks[key] and EZS.Ranks[key].color ~= "rainbow" then
s:SetTextColor( EZS.Ranks[key].color )
else
s:SetTextColor( rainbow() )
end
end
end
if EZS.HideBackground and KARMA.IsEnabled() then -- ttt pls
sb:AddColumn( "", function() return "" end, 0 )
end
sb:AddColumn( heading, function( ply, label )
local key = ply:SteamID()
if not EZS.Ranks[key] then key = RealUserGroup( ply ) end
local rank = EZS.Ranks[key]
local ov_name = hook.Run( "EZS_GetPlayerRankName", ply )
if ov_name and not rank then return ov_name end
if not rank and not ov_name then return "" end
label:SetName( "EZS" )
if rank.offset then
local px, py = label:GetPos()
label:SetPos( px - rank.offset, py )
end
if rank.icon and not rank.__iconmat:IsError() then
label.Paint = function( s, w, h )
surface.DisableClipping( true )
surface.SetDrawColor( color_white )
surface.SetMaterial( rank.__iconmat )
surface.DrawTexturedRect( -6, -1, rank.__iconmat:Width(), rank.__iconmat:Height() )
surface.DisableClipping( false )
end
return " "
end
if rank.color ~= "rainbow" then
label.Think = function( s )
if EZS.Ranks[key] and EZS.Ranks[key].color ~= "rainbow" then
s:SetTextColor( EZS.Ranks[key].color )
else
s:SetTextColor( rainbow() )
end
end
elseif not label.HasRainbow then
RainbowFunction( label, key )
end
if ov_name then return ov_name end
return rank.name
end )
EZS.HandleShift( sb )
end
hook.Add( "TTTScoreboardColumns", "EZS_Columns", EZS.AddRankLabel )
local function AddNameColors( ply )
if not EZS.UseNameColors then return end
local col = EZS.Ranks[ply:SteamID()]
if not col then col = EZS.Ranks[RealUserGroup( ply )] end
if not col then return color_white end
local color = col.namecolor == nil and col.color or col.na
Try doing this
[lua]
--EZS.Ranks["rank OR steamid"] = { name = "displayname", color = RankColor, namecolor = (optional), admin = are they admin? (true/false) }
EZS.Ranks["BlackCrystal"] = { color = "rainbow" }
-- Stick with the table format.[/lua]
I don't think you're applying rainbow correctly and it may be creating issues with string.format. I only took a brief look at it so try mine solution, if that doesn't help then I am sure Rejax can help you.
[LUA]EZS.Ranks["Black Crystal"] = { name = "", color = "rainbow" }[/LUA]
You need to have it in table format, And if you don't want any text just leave a blank string
ok works now thanks
I have an issue with the names, they all appear white even if they are set to be colored. Here is a screenshot of the scoreboard so you know what I mean. [url]http://prntscr.com/4pykan[/url]
I recently wiped my server and readded the EasyScoreboard and this happened.
Paste your file
How do I put the same color name as the same color range?
like this
[IMG]http://i58.tinypic.com/2rfvhap.png[/IMG]
i want it
[IMG]http://i62.tinypic.com/huf0hw.png[/IMG]
Now I have only my name color, but others do not
[IMG]http://i58.tinypic.com/29p5duu.png[/IMG]
this is my .lua
EZS = {} -- what's one more global to the fray
EZS.Ranks = {}
--[[ CONFIG ]]--
EZS.Enabled = true
-- you can set a silkicon to be used, by adding a "icon" field. for example: icon = "heart" will be drawn as "icon16/heart.png"
-- for a full list of silkicons, go to [url]http://www.famfamfam.com/lab/icons/silk/previews/index_abc.png[/url]
--EZS.Ranks["rank OR steamid"] = { name = "displayname", color = RankColor, namecolor = (optional), admin = are they admin? (true/false) }
EZS.Ranks["superadmin"] = { name = "S.Admin", color = Color( 255, 0, 0 ), namecolor = Color( 255, 0, 0 ), admin = true }
EZS.Ranks["admin"] = { name = "Admin", color = Color( 128, 0, 0 ), namecolor = Color( 128, 0, 0 ), admin = true }
EZS.Ranks["Moderator"] = { name = "Mod", color = Color( 0, 0, 255 ), namecolor = Color( 0, 0, 255 ), admin = true }
EZS.Ranks["Dueno"] = { name = "Dueño", color = Color( 225, 215, 0 ), namecolor = Color( 225, 215, 0 ), admin = true }
EZS.Ranks["user"] = { name = "Usuario", color = Color( 0, 255, 0 ), namecolor = Color( 0, 255, 0 ), admin = false }
-- it would be nice if you left this in :)
EZS.Ranks["STEAM_0:1:45852799"] = { color = Color( 100, 200, 100 ), icon = "bug", admin = false }
-- label enable on the top? what should it say?
EZS.CreateRankLabel = { enabled = true, text = "Rank" }
-- sadly there is no way to shift the background bar over as TTT draws it manually :c
EZS.HideBackground = false
-- the number of columns (not pixels!!!!!!!) to shift to the left
EZS.ShiftLeft = 0
-- shift tags, search marker, etc how much? (IN PIXELS)
EZS.ShiftOthers = 200
-- Show icon as well as rank text? (if possible)
EZS.ShowIconsWithRanks = true
-- How far left should we shift the icon relative to the rank text?
EZS.ShiftRankIcon = 1
-- should we color the names?
EZS.UseNameColors = false
-- should names get rainbow?
EZS.AllowNamesToHaveRainbow = true
-- frequency of rainbow (if enabled)
EZS.RainbowFrequency = .5
EZS.RightClickFunction = { enabled = true, ask_admins = true, functions = {
["User Functions"] = {
["Show Profile"] = function( ply )
ply:ShowProfile()
end,
["Copy SteamID"] = function( ply )
SetClipboardText( ply:SteamID() )
chat.AddText( color_white, ply:Nick() .. "'s SteamID (", Color( 200, 200, 200 ), ply:SteamID(), color_white, ") copied to clipboard!" )
end,
_icon = "icon16/group.png",
},
["Admin Functions"] = {
{
["Kick"] = { func = function( ply )
RunConsoleCommand( "ulx", "kick", ply:Nick():gsub( ";", "" ) )
end, icon = "icon16/user_delete.png" },
["Slay"] = { func = function( ply )
RunConsoleCommand( "ulx", "slay", ply:Nick():gsub( ";", "" ) )
end, icon = "icon16/pill.png" },
},
{
["Mute"] = { func = function( ply )
RunConsoleCommand( "ulx", "mute", ply:Nick():gsub( ";", "" ) )
end, icon = "icon16/pill.png" },
["Un-Mute"] = { func = function( ply )
RunConsoleCommand( "ulx", "unmute", ply:Nick():gsub( ";", "" ) )
end, icon = "icon16/pill.png" },
},
{
["Gag"] = { func = function( ply )
RunConsoleCommand( "ulx", "gag", ply:Nick():gsub( ";", "" ) )
end, icon = "icon16/sound_mute.png" },
["Un-Gag"] = { func = function( ply )
RunConsoleCommand( "ulx", "ungag", ply:Nick():gsub( ";", "" ) )
end, icon = "icon16/sound.png" },
},
{
["Goto"] = { func = function( ply )
RunConsoleCommand( "ulx", "goto", ply:Nick():gsub( ";", "" ) )
end, icon = "icon16/sound_mute.png" },
["Bring"] = { func = function( ply )
RunConsoleCommand( "ulx", "bring", ply:Nick():gsub( ";", "" ) )
end, icon = "icon16/sound.png" },
},
_icon = "icon16/shield.png",
}
}
}
hook.Run( "EZS_AddRightClickFunction", EZS.RightClickFunction.functions )
--[[ END CONFIG ]]--
for id, rank in pairs( EZS.Ranks ) do
if rank.icon then
rank.__iconmat = Material( ("icon16/%s.png"):format( rank.icon ) )
end
end
local function RealUserGroup( ply )
if ply.EV_GetRank then return ply:EV_GetRank() end
return ply:GetUserGroup()
end
local function rainbow()
local frequency, time = EZS.RainbowFrequency, RealTime()
local red = math.sin( frequency * time ) * 127 + 128
local green = math.sin( frequency * time + 2 ) * 127 + 128
local blue = math.sin( frequency * time + 4 ) * 127 + 128
return Color( red, green, blue )
end
function EZS.HandleShift( sb )
if EZS.ShiftLeft < 1 then return end
local function ShiftLeft( parent )
local k = EZS.HideBackground and 6 or 5
local p = parent.cols[k]
if not p then return end
local shift = EZS.HideBackground and 1 or 0
local karma = KARMA.IsEnabled() and 0 or 1
local left = ( 5 - karma ) - EZS.ShiftLeft
local posx, posy = p:GetPos()
local mod = ( 50 * ( ( left + shift ) - #parent.cols ) )
p:SetPos( posx + mod, posy )
end
if sb.ply_groups then -- sb_main
local OldPerformLayout = sb.PerformLayout
sb.PerformLayout = function( s )
OldPerformLayout( s )
ShiftLeft( s )
end
else -- sb_row
local OldLayoutColumns = sb.LayoutColumns
sb.LayoutColumns = function( s )
OldLayoutColumns( s )
ShiftLeft( s )
EZS.HandleTags( s )
end
end
end
function EZS.HandleTags( sb )
if EZS.ShiftOthers <= 0 then return end
-- copy some from base
local cx = sb:GetWide() - 90
for k,v in ipairs(sb.cols) do
cx = cx - v.Width
end
sb.tag:SizeToContents()
sb.tag:SetPos((cx - sb.tag:GetWide()/2) - EZS.ShiftOthers, (SB_ROW_HEIGHT - sb.tag:GetTall()) / 2)
sb.sresult:SizeToContents()
sb.sresult:SetPos((cx - 8)-EZS.ShiftOthers, (SB_ROW_HEIGHT - 16) / 2)
end
function EZS.AddRankLabel( sb )
local heading = EZS.CreateRankLabel.enabled and EZS.CreateRankLabel.text or ""
local function RainbowFunction( label, key )
label.HasRainbow = true
label.Think = function( s )
if EZS.Ranks[key] and EZS.Ranks[key].color ~= "rainbow" then
s:SetTextColor( EZS.Ranks[key].color )
else
s:SetTextColor( rainbow() )
end
end
sb.nick.Think = function( s )
if EZS.Ranks[key] and EZS.Ranks[key].color ~= "rainbow" then
s:SetTextColor( EZS.Ranks[key].color )
else
if EZS.AllowNamesToHaveRainbow then
s:SetTextColor( rainbow() )
end
end
end
end
if EZS.HideBackground and KARMA.IsEnabled() then -- ttt pls
sb:AddColumn( "", function() return "" end, 0 )
end
sb:AddColumn( heading, function( ply, label )
local key = ply:SteamID()
if not EZS.Ranks[key] then key = RealUserGroup( ply ) end
local rank = EZS.Ranks[key]
local ov_name = hook.Run( "EZS_GetPlayerRankName", ply )
if ov_name and not rank then return ov_name end
if not rank and not ov_name then return "" end
label:SetName( "EZS" )
if rank.offset then
local px, py = label:GetPos()
label:SetPos( px - rank.offset, py )
end
if rank.icon and not rank.__iconmat:IsError() then
label.Paint = function( s, w, h )
surface.DisableClipping( true )
surface.SetDrawColor( color_white )
surface.SetMaterial( rank.__iconmat )
local posx = -6
if rank.name and EZS.ShowIconsWithRanks then
posx = 0 - s:GetTextSize() - EZS.ShiftRankIcon
end
surface.DrawTexturedRect( posx, -1, rank.__iconmat:Width(), rank.__iconmat:Height() )
surface.DisableClipping( false )
end
if not rank.name then return " " end
end
if rank.color ~= "rainbow" then
label.Think = function( s )
if EZS.Ranks[key] and EZS.Ranks[key].color ~= "rainbow" then
s:SetTextColor( EZS.Ranks[key].color )
else
s:SetTextColor( rainbow() )
end
end
elseif not label.HasRainbow then
RainbowFunction( label, key )
end
if ov_name then return ov_name end
return rank.name
end )
EZS.HandleShift( sb )
end
hook.Add( "TTTScoreboardColumns", "EZS_Columns", EZS.AddRankLabel )
local function A
help :( ?
you have EZS.UseNameColors set to false? (it needs to be true)
it should be
[LUA]EZS.UseNameColors = true[/LUA]
Sorry, you need to Log In to post a reply to this thread.