• [murder] problem with cl_scoreboard
    2 replies, posted
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 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 https://files.facepunch.com/forum/upload/258627/33fcc3fd-0a2c-4e51-8887-76fa61a8bdeb/aaaaaaaaaaaaaa.PNG
Lines 14-15? You cant make a local method.
Yeah it's good it's resolved.
Sorry, you need to Log In to post a reply to this thread.