Author Topic: [murder] problem with cl_scoreboard  (Read 1238 times)

0 Members and 1 Guest are viewing this topic.

Offline Suharen.

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
[murder] problem with cl_scoreboard
« on: April 27, 2018, 06:44:22 PM »
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: [Select]
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