• Murder Gamemode Scoreboard ULX Ranks
    0 replies, posted
I got this to work with Prop Hunt and TTT, but I haven't been able to make this work with the Murder Gamemode, I am pretty sure that making this work has to do with this area of the cl_scoreboard.lua Any help? This may help with targeting ulx groups ULX Check For Group [CODE] ply:IsUserGroup("superadmin") [/CODE] cl_scoreboard.lua area [CODE] local function addPlayerItem(self, mlist, ply, pteam) local but = vgui.Create("DButton") but.player = ply but.ctime = CurTime() but:SetTall(40) but:SetText("") function but:Paint(w, h) local showAdmins = GetConVarNumber("mu_scoreboard_show_admins") != 0 if IsValid(ply) && showAdmins && ply:IsAdmin() then surface.SetDrawColor(Color(150,50,50)) else surface.SetDrawColor(team.GetColor(pteam)) end surface.DrawRect(0, 0, w, h) surface.SetDrawColor(255,255,255,10) surface.DrawRect(0, 0, w, h * 0.45 ) surface.SetDrawColor(color_black) surface.DrawOutlinedRect(0, 0, w, h) if IsValid(ply) && ply:IsPlayer() then local s = 0 if showAdmins && ply:IsAdmin() then surface.SetMaterial(admin) surface.SetDrawColor(color_white) surface.DrawTexturedRect(s + 4, h / 2 - 16, 32, 32) s = s + 32 end if ply:IsMuted() then surface.SetMaterial(muted) surface.SetDrawColor(color_white) surface.DrawTexturedRect(s + 4, h / 2 - 16, 32, 32) s = s + 32 end draw.DrawText(ply:Ping(), "ScoreboardPlayer", w - 9, 9, color_black, 2) draw.DrawText(ply:Ping(), "ScoreboardPlayer", w - 10, 8, color_white, 2) draw.DrawText(ply:Nick(), "ScoreboardPlayer", s + 11, 9, color_black, 0) draw.DrawText(ply:Nick(), "ScoreboardPlayer", s + 10, 8, color_white, 0) end [/CODE]
Sorry, you need to Log In to post a reply to this thread.