Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- ★━━━━━━━━━━━━━━━━━━━━★ --
- -- ʙʏ ʙʟᴀᴄᴋ ᴘᴇᴀʀʟ --
- -- ★━━━━━━━━━━━━━━━━━━━━★ --
- AddCSLuaFile("sv_fonts.lua")
- AddCSLuaFile("cl_font.lua")
- local PlayerList = nil
- local scrh, scrw = ScrH(), ScrW()
- local function BlackPearlActionsJoueurs(ply)
- if not FAdmin then return end
- if LocalPlayer():GetUserGroup() == "superadmin" or "admin" then
- local MenuContFAdminJoueur = vgui.Create("DFrame")
- MenuContFAdminJoueur:SetSize(scrh * 0.4, scrw * 0.2)
- MenuContFAdminJoueur:Center()
- MenuContFAdminJoueur:MakePopup()
- MenuContFAdminJoueur:SetTitle("Menu Actions Joueur")
- MenuContFAdminJoueur:SetDraggable(true)
- MenuContFAdminJoueur:ShowCloseButton(true)
- MenuContFAdminJoueur.Paint = function(self, w, h)
- draw.RoundedBox(8, 0, 0, w, h, Color(15, 15, 15, 200))
- end
- local ScrollContFAdminJoueur = vgui.Create("DScrollPanel", MenuContFAdminJoueur)
- ScrollContFAdminJoueur:SetSize(MenuContFAdminJoueur:GetWide(), MenuContFAdminJoueur:GetTall() - 25)
- ScrollContFAdminJoueur:SetPos(0, 25)
- local ListeBoutonsFAdmin = vgui.Create("DListLayout", ScrollContFAdminJoueur)
- ListeBoutonsFAdmin:SetSize(ScrollContFAdminJoueur:GetWide(), ScrollContFAdminJoueur:GetTall())
- ListeBoutonsFAdmin:SetPos(0, 0)
- local ply = ply or FAdmin.ScoreBoard.Player.Player
- FAdmin.ScoreBoard.Player.Player = ply
- if not IsValid(ply) or not IsValid(FAdmin.ScoreBoard.Player.Player) then FAdmin.ScoreBoard.ChangeView("Main") return end
- for _, v in ipairs(FAdmin.ScoreBoard.Player.ActionButtons) do
- if v.Visible == true or (type(v.Visible) == "function" and v.Visible(FAdmin.ScoreBoard.Player.Player) == true) then
- local Actionbutton_Onplayer = vgui.Create("FAdminActionButton", ListeBoutonsFAdmin)
- if type(v.Image) == "string" then
- Actionbutton_Onplayer:SetImage(v.Image or "icon16/exclamation")
- elseif type(v.Image) == "table" then
- Actionbutton_Onplayer:SetImage(v.Image[1])
- if v.Image[2] then Actionbutton_Onplayer:SetImage2(v.Image[2]) end
- elseif type(v.Image) == "function" then
- local img1, img2 = v.Image(ply)
- Actionbutton_Onplayer:SetImage(img1)
- if img2 then Actionbutton_Onplayer:SetImage2(img2) end
- else
- Actionbutton_Onplayer:SetImage("icon16/exclamation")
- end
- local name = v.Name
- if type(name) == "function" then name = name(FAdmin.ScoreBoard.Player.Player) end
- Actionbutton_Onplayer:SetText(DarkRP.deLocalise(name))
- Actionbutton_Onplayer:SetBorderColor(Color(50, 50, 50, 255))
- Actionbutton_Onplayer.DoClick = function(self)
- if not IsValid(ply) then return end
- return v.Action(ply, self)
- end
- if v.OnButtonCreated then
- v.OnButtonCreated(FAdmin.ScoreBoard.Player.Player, Actionbutton_Onplayer)
- end
- end
- end
- end
- return BlackPearlActionsJoueurs
- end
- local function BlackPearlFAdminMenu()
- if not FAdmin then return end
- if LocalPlayer():GetUserGroup() == "superadmin" or "admin" then
- local _, YPos, Width = 20, FAdmin.ScoreBoard.Y + 120 + FAdmin.ScoreBoard.Height / 5 + 20, (FAdmin.ScoreBoard.Width - 40) / 3
- local icon = "icon16/cross.png"
- local MenuContFAdmin = vgui.Create("DFrame")
- MenuContFAdmin:SetSize(scrh * 0.4, scrw * 0.2)
- MenuContFAdmin:Center()
- MenuContFAdmin:MakePopup()
- MenuContFAdmin:SetTitle("Menu Actions Serveur")
- MenuContFAdmin:SetDraggable(true)
- MenuContFAdmin:ShowCloseButton(true)
- MenuContFAdmin.Paint = function(self, w, h)
- draw.RoundedBox(8, 0, 0, w, h, Color(15, 15, 15, 200))
- end
- local ScrollContFAdmin = vgui.Create("DScrollPanel", MenuContFAdmin)
- ScrollContFAdmin:SetSize(MenuContFAdmin:GetWide(), MenuContFAdmin:GetTall() - 25)
- ScrollContFAdmin:SetPos(0, 25)
- FAdmin.ScoreBoard.Server.Controls.ServerActionsCat = vgui.Create("FAdminPlayerCatagory", ScrollContFAdmin)
- FAdmin.ScoreBoard.Server.Controls.ServerActionsCat:SetLabel("Actions sur le serveur")
- FAdmin.ScoreBoard.Server.Controls.ServerActionsCat.CatagoryColor = Color(155, 0, 0, 255)
- FAdmin.ScoreBoard.Server.Controls.ServerActionsCat:SetSize(ScrollContFAdmin:GetWide(), 100)
- FAdmin.ScoreBoard.Server.Controls.ServerActionsCat:SetPos(0, 0)
- FAdmin.ScoreBoard.Server.Controls.ServerActionsCat:SetVisible(true)
- FAdmin.ScoreBoard.Server.Controls.ServerActions = vgui.Create("FAdminPanelList")
- FAdmin.ScoreBoard.Server.Controls.ServerActionsCat:SetContents(FAdmin.ScoreBoard.Server.Controls.ServerActions)
- FAdmin.ScoreBoard.Server.Controls.ServerActions:SetTall(FAdmin.ScoreBoard.Height - 20 - YPos)
- for k, v in pairs(FAdmin.ScoreBoard.Server.Controls.ServerActions:GetChildren()) do
- if k == 1 then continue end
- v:Remove()
- end
- FAdmin.ScoreBoard.Server.Controls.PlayerActionsCat = vgui.Create("FAdminPlayerCatagory", ScrollContFAdmin)
- FAdmin.ScoreBoard.Server.Controls.PlayerActionsCat:SetLabel("Actions sur le joueur")
- FAdmin.ScoreBoard.Server.Controls.PlayerActionsCat.CatagoryColor = Color(0, 155, 0, 255)
- FAdmin.ScoreBoard.Server.Controls.PlayerActionsCat:SetSize(ScrollContFAdmin:GetWide(), 100)
- FAdmin.ScoreBoard.Server.Controls.PlayerActionsCat:SetPos(0, 275)
- FAdmin.ScoreBoard.Server.Controls.PlayerActionsCat:SetVisible(true)
- FAdmin.ScoreBoard.Server.Controls.PlayerActions = vgui.Create("FAdminPanelList")
- FAdmin.ScoreBoard.Server.Controls.PlayerActionsCat:SetContents(FAdmin.ScoreBoard.Server.Controls.PlayerActions)
- FAdmin.ScoreBoard.Server.Controls.PlayerActions:SetTall(FAdmin.ScoreBoard.Height - 20 - YPos)
- for k, v in pairs(FAdmin.ScoreBoard.Server.Controls.PlayerActions:GetChildren()) do
- if k == 1 then continue end
- v:Remove()
- end
- FAdmin.ScoreBoard.Server.Controls.ServerSettingsCat = vgui.Create("FAdminPlayerCatagory", ScrollContFAdmin)
- FAdmin.ScoreBoard.Server.Controls.ServerSettingsCat:SetLabel("Paramètres du serveur")
- FAdmin.ScoreBoard.Server.Controls.ServerSettingsCat.CatagoryColor = Color(0, 0, 155, 255)
- FAdmin.ScoreBoard.Server.Controls.ServerSettingsCat:SetSize(ScrollContFAdmin:GetWide(), 100)
- FAdmin.ScoreBoard.Server.Controls.ServerSettingsCat:SetPos(0, 505)
- FAdmin.ScoreBoard.Server.Controls.ServerSettingsCat:SetVisible(true)
- FAdmin.ScoreBoard.Server.Controls.ServerSettings = vgui.Create("FAdminPanelList")
- FAdmin.ScoreBoard.Server.Controls.ServerSettingsCat:SetContents(FAdmin.ScoreBoard.Server.Controls.ServerSettings)
- FAdmin.ScoreBoard.Server.Controls.ServerSettings:SetTall(0)
- for k, v in pairs(FAdmin.ScoreBoard.Server.Controls.ServerSettings:GetChildren()) do
- if k == 1 then continue end
- v:Remove()
- end
- for k, v in pairs(FAdmin.ScoreBoard.Server.ActionButtons) do
- local FadminActions = vgui.Create("FAdminActionButton")
- if type(v.Image) == "string" then
- FadminActions:SetImage(v.Image or icon)
- elseif type(v.Image) == "table" then
- FadminActions:SetImage(v.Image[1])
- if v.Image[2] then FadminActions:SetImage2(v.Image[2]) end
- elseif type(v.Image) == "function" then
- local active, disable = v.Image()
- FadminActions:SetImage(active)
- if disable then FadminActions:SetImage2(disable) end
- else
- FadminActions:SetImage(icon)
- end
- local Names = v.Name
- if type(Names) == "function" then Names = Names() end
- FadminActions:SetText(Names)
- FadminActions:SetBorderColor(v.color)
- FadminActions:Dock(TOP)
- FadminActions.DoClick = function(self)
- return v.Action(self)
- end
- FAdmin.ScoreBoard.Server.Controls[v.TYPE]:Add(FadminActions)
- end
- end
- end
- hook.Add("PostGamemodeLoaded", "DarkRP_Removing_FAdmin_ScoreBoard", function()
- if DarkRP then
- concommand.Remove("+FAdmin_menu")
- concommand.Remove("-FAdmin_menu")
- hook.Remove("ScoreboardShow", "FAdmin_scoreboard")
- hook.Remove("ScoreboardHide", "FAdmin_scoreboard")
- function FAdmin.ScoreBoard.DrawScoreBoard() end
- function FAdmin.ScoreBoard.ShowScoreBoard() return false end
- function FAdmin.ScoreBoard.HideScoreBoard() return false end
- end
- end)
- hook.Add("ScoreboardShow", "TAB:Open", function()
- local PhoenixMaterial = {
- ["Logo"] = Material("tabphoenix/phoenixlogo.png"),
- }
- local ply = LocalPlayer()
- local scrh = ScrH()
- local scrw = ScrW()
- if ply:Alive() then
- if not IsValid(FenetreTabPrincipale) then
- FenetreTabPrincipale = vgui.Create("DFrame")
- FenetreTabPrincipale:SetSize(scrh * 1.5, scrw * 0.4)
- FenetreTabPrincipale:Center()
- FenetreTabPrincipale:SetTitle("")
- FenetreTabPrincipale:SetDraggable(false)
- FenetreTabPrincipale:ShowCloseButton(false)
- FenetreTabPrincipale:MakePopup()
- FenetreTabPrincipale.Paint = function(self, w, h)
- Derma_DrawBackgroundBlur(self)
- local rect = {
- {x = 0, y = 0},
- {x = w - 220, y = 0},
- {x = w, y = h},
- {x = 220, y = h}
- }
- surface.SetDrawColor(30, 30, 30, 255)
- draw.NoTexture()
- surface.DrawPoly(rect)
- local w2 = w/3
- local rect = {
- {x = 0, y = 0},
- {x = w2 - 220, y = 0},
- {x = w2, y = h},
- {x = 220, y = h}
- }
- surface.SetDrawColor(255, 154, 0, 255)
- draw.NoTexture()
- surface.DrawPoly(rect)
- local rect = {
- {x = w2 / 1.9, y = 0},
- {x = w2 - 220, y = 0},
- {x = w2, y = h},
- {x = w2 - 40, y = h}
- }
- surface.SetDrawColor(255, 255, 255, 255)
- draw.NoTexture()
- surface.DrawPoly(rect)
- surface.SetMaterial(PhoenixMaterial.Logo)
- surface.SetDrawColor(255, 255, 255, 255)
- surface.DrawTexturedRect(scrh * 0.065, scrw * 0.005, scrh * 0.2, scrw * 0.09)
- draw.SimpleText("Phoenix Roleplay", "PhoenixFont2", scrh * 0.165, scrw * 0.077, Color(255, 255, 255, 255), TEXT_ALIGN_CENTER)
- local triangleg = {
- { x = 520, y = 570 },
- { x = 370, y = 50 },
- { x = 520, y = 50 }
- }
- surface.SetDrawColor(255, 154, 0, 255)
- draw.NoTexture()
- surface.DrawPoly(triangleg)
- local triangled = {
- { x = 1430, y = 720 },
- { x = 1430, y = 200 },
- { x = 1570, y = 720 }
- }
- surface.SetDrawColor(255, 154, 0, 255)
- draw.NoTexture()
- surface.DrawPoly(triangled)
- end
- FenetreWeb = vgui.Create("DFrame")
- FenetreWeb:SetSize(scrh * 1, scrw * 0.4)
- FenetreWeb:Center()
- FenetreWeb:SetTitle("")
- FenetreWeb:SetDraggable(false)
- FenetreWeb:ShowCloseButton(true)
- FenetreWeb:MakePopup()
- FenetreWeb:Hide()
- FenetreWeb.Paint = function(self, w, h)
- draw.RoundedBox(0, 0, 0, w, h, Color(30, 30, 30, 255))
- end
- FenetreWebSteam = vgui.Create("DFrame")
- FenetreWebSteam:SetSize(scrh * 1, scrw * 0.4)
- FenetreWebSteam:Center()
- FenetreWebSteam:SetTitle("")
- FenetreWebSteam:SetDraggable(false)
- FenetreWebSteam:ShowCloseButton(true)
- FenetreWebSteam:MakePopup()
- FenetreWebSteam:Hide()
- FenetreWebSteam.Paint = function(self, w, h)
- draw.RoundedBox(0, 0, 0, w, h, Color(30, 30, 30, 255))
- end
- FenetreDiscordCopie = vgui.Create("DFrame")
- FenetreDiscordCopie:SetSize(scrh * 0.25, scrw * 0.08)
- FenetreDiscordCopie:Center()
- FenetreDiscordCopie:SetTitle("")
- FenetreDiscordCopie:SetDraggable(false)
- FenetreDiscordCopie:ShowCloseButton(true)
- FenetreDiscordCopie:MakePopup()
- FenetreDiscordCopie:Hide()
- FenetreDiscordCopie.Paint = function(self, w, h)
- draw.RoundedBox(0, 0, 0, w, h, Color(30, 30, 30, 255))
- draw.SimpleText("Copie le lien !", "PhoenixFont", scrh * 0.13, scrw * 0.042, Color(255, 255, 255, 255), TEXT_ALIGN_CENTER)
- draw.SimpleText("(Ctrl + C puis Ctrl + V)", "PhoenixFont2", scrh * 0.13, scrw * 0.065, Color(255, 255, 255, 255), TEXT_ALIGN_CENTER)
- end
- ZoneTextDiscord = vgui.Create("DTextEntry", FenetreDiscordCopie)
- ZoneTextDiscord:SetPos(scrh * 0.03, scrw * 0.02)
- ZoneTextDiscord:SetSize(scrh * 0.19, scrw * 0.02)
- ZoneTextDiscord:SetText("https://discordapp.com/invite/yAqcfGS")
- ZoneTextDiscord.OnEnter = function(self) end
- FenetreZoneInternet = vgui.Create("DHTML", FenetreWeb)
- FenetreZoneInternet:SetSize(scrh * 1, scrw * 0.37)
- FenetreZoneInternet:SetPos(scrh * 0, scrw * 0.03)
- FenetreZoneInternet.Paint = function(self, w, h)
- draw.RoundedBox(0, 0, 0, w, h, Color(30, 30, 30, 255))
- end
- ControlesWeb = vgui.Create("DHTMLControls", FenetreWeb)
- ControlesWeb:SetWide(scrh * 0.9)
- ControlesWeb:SetPos(0, 0)
- ControlesWeb:SetHTML(FenetreZoneInternet)
- ControlesWeb.AddressBar:SetText("https://www.google.com/")
- FenetreZoneInternet:MoveBelow(ControlesWeb)
- FenetreZoneInternet:OpenURL("https://www.google.com/")
- FenetreAddonsWS = vgui.Create("DHTML", FenetreWebSteam)
- FenetreAddonsWS:SetSize(scrh * 1, scrw * 0.37)
- FenetreAddonsWS:SetPos(scrh * 0, scrw * 0.03)
- FenetreAddonsWS.Paint = function(self, w, h)
- draw.RoundedBox(0, 0, 0, w, h, Color(30, 30, 30, 255))
- end
- ControlesWebSteam = vgui.Create("DHTMLControls", FenetreWebSteam)
- ControlesWebSteam:SetWide(scrh * 0.9)
- ControlesWebSteam:SetPos(0, 0)
- ControlesWebSteam:SetHTML(FenetreAddonsWS)
- ControlesWebSteam.AddressBar:SetText("https://steamcommunity.com/sharedfiles/filedetails/?id=1571560340")
- FenetreAddonsWS:MoveBelow(ControlesWebSteam)
- FenetreAddonsWS:OpenURL("https://steamcommunity.com/sharedfiles/filedetails/?id=1571560340")
- if LocalPlayer():IsAdmin() then
- BoutonFAdmin = vgui.Create("DButton", FenetreTabPrincipale)
- BoutonFAdmin:SetFontInternal("PhoenixFont")
- BoutonFAdmin:SetTextColor(Color(0, 0, 0, 255))
- BoutonFAdmin:SetText("FAdmin")
- BoutonFAdmin:SetPos(scrh * 0.145, scrw * 0.25)
- BoutonFAdmin:SetSize(scrh * 0.24, scrw * 0.025)
- BoutonFAdmin.Paint = function(self, w, h)
- local rect2 = {
- {x = 0, y = 0},
- {x = w - 10, y = 0},
- {x = w, y = h},
- {x = 10, y = h}
- }
- surface.SetDrawColor(30, 30, 30, 255)
- draw.NoTexture()
- surface.DrawPoly(rect2)
- local rect = {
- {x = 0, y = 0},
- {x = w - 15, y = 0},
- {x = w, y = h},
- {x = 15, y = h}
- }
- if BoutonFAdmin:IsHovered() then
- surface.SetDrawColor(150, 200, 120, 255)
- draw.NoTexture()
- surface.DrawPoly(rect)
- else
- surface.SetDrawColor(255, 255, 255, 255)
- draw.NoTexture()
- surface.DrawPoly(rect)
- end
- end
- BoutonFAdmin.DoClick = function()
- if IsValid(FenetreTabPrincipale) then
- BlackPearlFAdminMenu()
- FenetreTabPrincipale:Close()
- end
- end
- end
- BoutonWS = vgui.Create("DButton", FenetreTabPrincipale)
- BoutonWS:SetFontInternal("PhoenixFont")
- BoutonWS:SetTextColor(Color(0, 0, 0, 255))
- BoutonWS:SetText("Addons")
- BoutonWS:SetPos(scrh * 0.16, scrw * 0.28)
- BoutonWS:SetSize(scrh * 0.24, scrw * 0.025)
- BoutonWS.Paint = function(self, w, h)
- local rect2 = {
- {x = 0, y = 0},
- {x = w - 10, y = 0},
- {x = w, y = h},
- {x = 10, y = h}
- }
- surface.SetDrawColor(30, 30, 30, 255)
- draw.NoTexture()
- surface.DrawPoly(rect2)
- local rect = {
- {x = 0, y = 0},
- {x = w - 15, y = 0},
- {x = w, y = h},
- {x = 15, y = h}
- }
- if BoutonWS:IsHovered() then
- surface.SetDrawColor(150, 200, 120, 255)
- draw.NoTexture()
- surface.DrawPoly(rect)
- else
- surface.SetDrawColor(255, 255, 255, 255)
- draw.NoTexture()
- surface.DrawPoly(rect)
- end
- BoutonWS.DoClick = function()
- FenetreTabPrincipale:Remove()
- FenetreWebSteam:Show()
- end
- end
- BoutonDiscord = vgui.Create("DButton", FenetreTabPrincipale)
- BoutonDiscord:SetFontInternal("PhoenixFont")
- BoutonDiscord:SetTextColor(Color(0, 0, 0, 255))
- BoutonDiscord:SetText("Discord")
- BoutonDiscord:SetPos(scrh * 0.175, scrw * 0.31)
- BoutonDiscord:SetSize(scrh * 0.24, scrw * 0.025)
- BoutonDiscord.Paint = function(self, w, h)
- local rect2 = {
- {x = 0, y = 0},
- {x = w - 10, y = 0},
- {x = w, y = h},
- {x = 10, y = h}
- }
- surface.SetDrawColor(30, 30, 30, 255)
- draw.NoTexture()
- surface.DrawPoly(rect2)
- local rect = {
- {x = 0, y = 0},
- {x = w - 15, y = 0},
- {x = w, y = h},
- {x = 15, y = h}
- }
- if BoutonDiscord:IsHovered() then
- surface.SetDrawColor(150, 200, 120, 255)
- draw.NoTexture()
- surface.DrawPoly(rect)
- else
- surface.SetDrawColor(255, 255, 255, 255)
- draw.NoTexture()
- surface.DrawPoly(rect)
- end
- BoutonDiscord.DoClick = function()
- FenetreTabPrincipale:Remove()
- FenetreDiscordCopie:Show()
- end
- end
- BoutonSite = vgui.Create("DButton", FenetreTabPrincipale)
- BoutonSite:SetFontInternal("PhoenixFont")
- BoutonSite:SetTextColor(Color(0, 0, 0, 255))
- BoutonSite:SetText("Site Internet")
- BoutonSite:SetPos(scrh * 0.19, scrw * 0.34)
- BoutonSite:SetSize(scrh * 0.24, scrw * 0.025)
- BoutonSite.Paint = function(self, w, h)
- local rect2 = {
- {x = 0, y = 0},
- {x = w - 10, y = 0},
- {x = w, y = h},
- {x = 10, y = h}
- }
- surface.SetDrawColor(30, 30, 30, 255)
- draw.NoTexture()
- surface.DrawPoly(rect2)
- local rect = {
- {x = 0, y = 0},
- {x = w - 15, y = 0},
- {x = w, y = h},
- {x = 15, y = h}
- }
- if BoutonSite:IsHovered() then
- surface.SetDrawColor(150, 200, 120, 255)
- draw.NoTexture()
- surface.DrawPoly(rect)
- else
- surface.SetDrawColor(255, 255, 255, 255)
- draw.NoTexture()
- surface.DrawPoly(rect)
- end
- BoutonSite.DoClick = function()
- FenetreTabPrincipale:Remove()
- FenetreWeb:Show()
- end
- end
- BoutonForum = vgui.Create("DButton", FenetreTabPrincipale)
- BoutonForum:SetFontInternal("PhoenixFont")
- BoutonForum:SetTextColor(Color(0, 0, 0, 255))
- BoutonForum:SetText("Forum")
- BoutonForum:SetPos(scrh * 0.205, scrw * 0.37)
- BoutonForum:SetSize(scrh * 0.24, scrw * 0.025)
- BoutonForum.Paint = function(self, w, h)
- local rect2 = {
- {x = 0, y = 0},
- {x = w - 10, y = 0},
- {x = w, y = h},
- {x = 10, y = h}
- }
- surface.SetDrawColor(30, 30, 30, 255)
- draw.NoTexture()
- surface.DrawPoly(rect2)
- local rect = {
- {x = 0, y = 0},
- {x = w - 15, y = 0},
- {x = w, y = h},
- {x = 15, y = h}
- }
- if BoutonForum:IsHovered() then
- surface.SetDrawColor(150, 200, 120, 255)
- draw.NoTexture()
- surface.DrawPoly(rect)
- else
- surface.SetDrawColor(255, 255, 255, 255)
- draw.NoTexture()
- surface.DrawPoly(rect)
- end
- BoutonForum.DoClick = function()
- FenetreTabPrincipale:Remove()
- FenetreWeb:Show()
- end
- local FenetreListe = vgui.Create("DListLayout", FenetreTabPrincipale)
- FenetreListe:SetPos(scrh * 0.53, scrw * 0.01)
- FenetreListe:SetSize(scrh * 0.75, scrw * 0.37)
- FenetreListe.Paint = function() end
- local JoueurBarreListe = vgui.Create("DScrollPanel", FenetreListe)
- JoueurBarreListe:SetSize(scrh * 0.9, scrw * 0.38)
- JoueurBarreListe:SetPos(scrh * 0, scrw * 0)
- JoueurBarreListe.Paint = function() end
- local sbar = JoueurBarreListe:GetVBar()
- function sbar:Paint() end
- function sbar.btnUp:Paint() end
- function sbar.btnDown:Paint() end
- function sbar.btnGrip:Paint() end
- local JoueurListe = vgui.Create("DListLayout", JoueurBarreListe)
- JoueurListe:SetSize(JoueurBarreListe:GetWide(), JoueurBarreListe:GetTall())
- JoueurListe:SetPos(scrh * 0, scrw * 0)
- JoueurListe.Paint = function() end
- if IsValid(FenetreListe) then
- JoueurListe:Clear()
- for k, v in pairs(player.GetAll()) do
- local JoueurZone = vgui.Create("DPanel", JoueurListe)
- JoueurZone:SetSize(JoueurListe:GetWide(), 1)
- JoueurZone:SetPos(0, 0)
- JoueurZone.Paint = function(self, w, h)
- draw.RoundedBox(0, 0, 0, w, h, Color(255, 154, 0, 255))
- end
- local InfosJoueur = vgui.Create("DButton", JoueurListe)
- InfosJoueur:SetSize(scrh * 0.075, scrw * 0.04)
- InfosJoueur:SetPos(scrh * 0, scrw * 0)
- InfosJoueur:SetText("")
- InfosJoueur:SetTextColor(Color(0, 0, 0))
- InfosJoueur.Paint = function()
- draw.DrawText(v:GetName(), "PhoenixFontPlayer", scrh * 0.03, scrw * 0.007, Color(255, 255, 255, 255), TEXT_ALIGN_LEFT, TEXT_ALIGN_TOP)
- draw.DrawText(v:GetUserGroup(), "PhoenixFontPlayer", scrh * 0.03, scrw * 0.025, Color(255, 255, 255, 255), TEXT_ALIGN_LEFT, TEXT_ALIGN_TOP)
- draw.DrawText(v:Frags(), "PhoenixFontPlayer", scrh * 0.41, scrw * 0.007, Color(255, 255, 255, 255), TEXT_ALIGN_LEFT, TEXT_ALIGN_TOP)
- draw.DrawText("Tués", "PhoenixFontPlayer", scrh * 0.395, scrw * 0.025, Color(255, 255, 255, 255), TEXT_ALIGN_LEFT, TEXT_ALIGN_TOP)
- draw.DrawText(v:Deaths(), "PhoenixFontPlayer", scrh * 0.55, scrw * 0.007, Color(255, 255, 255, 255), TEXT_ALIGN_LEFT, TEXT_ALIGN_TOP)
- draw.DrawText("Morts", "PhoenixFontPlayer", scrh * 0.53, scrw * 0.025, Color(255, 255, 255, 255), TEXT_ALIGN_LEFT, TEXT_ALIGN_TOP)
- draw.DrawText(v:Ping(), "PhoenixFontPlayer", scrh * 0.7, scrw * 0.007, Color(255, 255, 255, 255), TEXT_ALIGN_LEFT, TEXT_ALIGN_TOP)
- draw.DrawText("Ping", "PhoenixFontPlayer", scrh * 0.69, scrw * 0.025, Color(255, 255, 255, 255), TEXT_ALIGN_LEFT, TEXT_ALIGN_TOP)
- end
- InfosJoueur.DoClick = function()
- BlackPearlActionsJoueurs(v)
- FenetreTabPrincipale:Remove()
- end
- end
- end
- end
- end
- end
- return true
- end)
- hook.Add("ScoreboardHide", "TAB:Close",function()
- FenetreTabPrincipale:Remove()
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement