General > Developers Corner

[murder] problem with cl_scoreboard

(1/1)

Suharen.:
Hello,

i would like to put colors for each different grade but when i look at the score board it's like in sandbox, please help

--- Code: ---function but:Paint(w, h)
local showAdmins = GAMEMODE.RoundSettings.ShowAdminsOnScoreboard

if IsValid(ply) && showAdmins && ply:IsUserGroup("superadmin") then
surface.SetDrawColor(Color(185,174,14))
elseif IsValid(ply) && showAdmins && ply:IsUserGroup("admin") then
                surface.SetDrawColor(Color(185,0,0))
elseif IsValid(ply) && showAdmins && ply:IsUserGroup("operator") then
                    surface.SetDrawColor(Color(10,111,20))
elseif IsValid(ply) && showAdmins && ply:IsUserGroup("user") then
                        surface.SetDrawColor(Color(57, 132, 247))
elseif IsValid(ply) && showAdmins && ply:IsUserGroup("V.I.P") then
                        surface.SetDrawColor(Color( 242, 242, 141))
else
--- End code ---

Navigation

[0] Message Index

Go to full version