Ulysses
General => Developers Corner => Topic started by: Suharen. 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
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)