[go: up one dir, main page]

0% found this document useful (0 votes)
9 views6 pages

Message

Uploaded by

adrien453434
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views6 pages

Message

Uploaded by

adrien453434
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 6

local s = Material("materials/foulife/s.

png")
local t = Material("materials/foulife/t.png")
local y = Material("materials/foulife/y.png")

concommand.Add("OpenWeapon", function()
if not CH_WEAPONVIP.Config.LIB then return end
if not CH_WEAPONVIP.Config.AllowedRanksAdmin[LocalPlayer():GetUserGroup()]
then return end

local WeaponPerma = vgui.Create( "DFrame" )


WeaponPerma:SetSize( 655, 700 )
WeaponPerma:Center()
WeaponPerma:MakePopup()
WeaponPerma:SetDraggable(false)
WeaponPerma:ShowCloseButton(false)
WeaponPerma:SetTitle("")
WeaponPerma.Paint = function(self, w, h)

draw.RoundedBox(10, 5, 5, 650, h-
8,CH_WEAPONVIP.Config.Color["ColorBase"]) // Font Du Panel
draw.RoundedBox(5, 5, 5, 650, 40,Color(65,65,65)) // Case 1
draw.RoundedBox(5, 5, 680, 650, 20,Color(65,65,65)) // Case 1

// Premiere Case
draw.RoundedBox(10, 60, 60, 160,
150,CH_WEAPONVIP.Config.Color["ColorCase"])
draw.RoundedBox(5, 60, 60, 160, 25,Color(88,88,88)) // Case 1
draw.SimpleText("RAGGING BUL", "A",ScrW() * 0.072,ScrH() * 0.055,
(color_white), TEXT_ALIGN_CENTER, TEXT_ALIGN_TOP)
surface.SetDrawColor(color_white)
surface.SetMaterial(s)
surface.DrawTexturedRect(90,80,100,100)
// Deuxieme Case
draw.RoundedBox(10, 250, 60, 160,
150,CH_WEAPONVIP.Config.Color["ColorCase"]) // Case 2
draw.RoundedBox(5, 250, 60, 160, 25,Color(88,88,88)) // Case 2
draw.SimpleText("COLT 1911", "A",ScrW() * 0.170,ScrH() * 0.055,
(color_white), TEXT_ALIGN_CENTER, TEXT_ALIGN_TOP)
surface.SetDrawColor(color_white)
surface.SetMaterial(s)
surface.DrawTexturedRect(280,80,100,100)
// Troixieme Case
draw.RoundedBox(10, 440, 60, 160,
150,CH_WEAPONVIP.Config.Color["ColorCase"]) // Case 3
draw.RoundedBox(5, 440, 60, 160, 25,Color(88,88,88)) // Case 3
draw.SimpleText("USP", "A",ScrW() * 0.270,ScrH() * 0.055,(color_white),
TEXT_ALIGN_CENTER, TEXT_ALIGN_TOP)
surface.SetDrawColor(color_white)
surface.SetMaterial(s)
surface.DrawTexturedRect(470,80,100,100)
// Quatrieme Case
draw.RoundedBox(10, 60, 230, 160,
150,CH_WEAPONVIP.Config.Color["ColorCase"]) // Case 4
draw.RoundedBox(5, 60, 230, 160, 25,Color(88,88,88)) // Case 4
draw.SimpleText("HK 416", "A",ScrW() * 0.072,ScrH() * 0.213,
(color_white), TEXT_ALIGN_CENTER, TEXT_ALIGN_TOP)
surface.SetDrawColor(color_white)
surface.SetMaterial(t)
surface.DrawTexturedRect(90,260,90,90)
// Cinquieme Case
draw.RoundedBox(10, 250, 230, 160,
150,CH_WEAPONVIP.Config.Color["ColorCase"]) // Case 5
draw.RoundedBox(5, 250, 230, 160, 25,Color(88,88,88)) // Case 5
draw.SimpleText("AK 47", "A",ScrW() * 0.170,ScrH() * 0.213,
(color_white), TEXT_ALIGN_CENTER, TEXT_ALIGN_TOP)
surface.SetDrawColor(color_white)
surface.SetMaterial(t)
surface.DrawTexturedRect(280,260,90,90)
// Sixeme Case
draw.RoundedBox(10, 440, 230, 160,
150,CH_WEAPONVIP.Config.Color["ColorCase"]) // Case 6
draw.RoundedBox(5, 440, 230, 160, 25,Color(88,88,88)) // Case 6
draw.SimpleText("M16A4 ", "A",ScrW() * 0.270,ScrH() * 0.213,
(color_white), TEXT_ALIGN_CENTER, TEXT_ALIGN_TOP)
surface.SetDrawColor(color_white)
surface.SetMaterial(t)
surface.DrawTexturedRect(470,260,90,90)
// Sept Case
draw.RoundedBox(10, 60, 405, 160,
150,CH_WEAPONVIP.Config.Color["ColorCase"]) // Case 7
draw.RoundedBox(5, 60, 405, 160, 25,Color(88,88,88)) // Case 7
draw.SimpleText("BARRET M82 ", "A",ScrW() * 0.072,ScrH() * 0.375,
(color_white), TEXT_ALIGN_CENTER, TEXT_ALIGN_TOP)
surface.SetDrawColor(color_white)
surface.SetMaterial(y)
surface.DrawTexturedRect(90,430,90,90)
// Huit case
draw.RoundedBox(10, 250, 405, 160,
150,CH_WEAPONVIP.Config.Color["ColorCase"]) // Case 8
draw.RoundedBox(5, 250, 405, 160, 25,Color(88,88,88)) // Case 8
draw.SimpleText("M24 ", "A",ScrW() * 0.170,ScrH() * 0.375,
(color_white), TEXT_ALIGN_CENTER, TEXT_ALIGN_TOP)
surface.SetDrawColor(color_white)
surface.SetMaterial(y)
surface.DrawTexturedRect(280,430,90,90)
// Neuf Case
draw.RoundedBox(10, 440, 405, 160,
150,CH_WEAPONVIP.Config.Color["ColorCase"]) // Case 8
draw.RoundedBox(5, 440, 405, 160, 25,Color(88,88,88)) // Case 8
draw.SimpleText("SVT 40 ", "A",ScrW() * 0.270,ScrH() * 0.375,
(color_white), TEXT_ALIGN_CENTER, TEXT_ALIGN_TOP)
surface.SetDrawColor(color_white)
surface.SetMaterial(y)
surface.DrawTexturedRect(470,430,90,90)
draw.SimpleText("[ FouLife Armes Permanent ]", "GuideZwazix",ScrW() *
0.170,ScrH() * 0.005,(color_white), TEXT_ALIGN_CENTER, TEXT_ALIGN_TOP)
end
local close = vgui.Create( "DButton", WeaponPerma )
close:SetText(" Continuer" )
close:SetPos(200,600)
close:SetSize(225, 50 )
close:SetFont("GuideZwazix")
close:SetTextColor(color_white)
close.DoClick = function()
surface.PlaySound("buttons/blip1.wav")
WeaponPerma:Close()
end
close.Paint = function(self, w, h)
draw.RoundedBox(5, 0, 0, 160 , 25, Color(88,88,88))
if self:IsHovered() or self:IsDown() then
draw.RoundedBox(5, 0, 0, 160, 25, Color(65,65,65))
end
end

local Weapon = vgui.Create( "DButton", WeaponPerma )


Weapon:SetText(CH_WEAPONVIP.Language[1] )
Weapon:SetPos( 60, 185 )
Weapon:SetSize( 160, 25 )
Weapon:SetFont("A")
Weapon:SetTextColor(color_white)
Weapon.DoClick = function()
surface.PlaySound("buttons/blip1.wav")
net.Start("FouLife:PermWep:Retreive")
net.WriteInt(1, 32)
net.SendToServer()
end
Weapon.Paint = function(self, w, h)
draw.RoundedBox(5, 0, 0, 160 , 25, Color(88,88,88))
if self:IsHovered() or self:IsDown() then
draw.RoundedBox(5, 0, 0, 160, 25, Color(65,65,65))
end
end
local Weapon2 = vgui.Create( "DButton", WeaponPerma )
Weapon2:SetText(CH_WEAPONVIP.Language[1] )
Weapon2:SetPos( 250, 185 )
Weapon2:SetSize( 160, 25 )
Weapon2:SetFont("A")
Weapon2:SetTextColor(color_white)
Weapon2.DoClick = function()
surface.PlaySound("buttons/blip1.wav")
net.Start("FouLife:PermWep:Retreive")
net.WriteInt(2, 32)
net.SendToServer()
end
Weapon2.Paint = function(self, w, h)
draw.RoundedBox(5, 0, 0, 160 , 25, Color(88,88,88))
if self:IsHovered() or self:IsDown() then
draw.RoundedBox(5, 0, 0, 160, 25, Color(65,65,65))
end
end
local Weapon3 = vgui.Create( "DButton", WeaponPerma )
Weapon3:SetText(CH_WEAPONVIP.Language[1] )
Weapon3:SetPos( 440, 185 )
Weapon3:SetSize( 160, 25 )
Weapon3:SetFont("A")
Weapon3:SetTextColor(color_white)
Weapon3.DoClick = function()
surface.PlaySound("buttons/blip1.wav")
net.Start("FouLife:PermWep:Retreive")
net.WriteInt(3, 32)
net.SendToServer()
end
Weapon3.Paint = function(self, w, h)
draw.RoundedBox(5, 0, 0, 160 , 25, Color(88,88,88))
if self:IsHovered() or self:IsDown() then
draw.RoundedBox(5, 0, 0, 160, 25, Color(65,65,65))
end
end
local Weapon4 = vgui.Create( "DButton", WeaponPerma )
Weapon4:SetText(CH_WEAPONVIP.Language[1] )
Weapon4:SetPos( 60, 360 )
Weapon4:SetSize( 160, 25 )
Weapon4:SetFont("A")
Weapon4:SetTextColor(color_white)
Weapon4.DoClick = function()
surface.PlaySound("buttons/blip1.wav")
net.Start("FouLife:PermWep:Retreive")
net.WriteInt(4, 32)
net.SendToServer()
end
Weapon4.Paint = function(self, w, h)
draw.RoundedBox(5, 0, 0, 160 , 25, Color(88,88,88))
if self:IsHovered() or self:IsDown() then
draw.RoundedBox(5, 0, 0, 160, 25, Color(65,65,65))
end
end
local Weapon5 = vgui.Create( "DButton", WeaponPerma )
Weapon5:SetText(CH_WEAPONVIP.Language[1] )
Weapon5:SetPos( 250, 360 )
Weapon5:SetSize( 160, 25 )
Weapon5:SetFont("A")
Weapon5:SetTextColor(color_white)
Weapon5.DoClick = function()
surface.PlaySound("buttons/blip1.wav")
net.Start("FouLife:PermWep:Retreive")
net.WriteInt(5, 32)
net.SendToServer()
end
Weapon5.Paint = function(self, w, h)
draw.RoundedBox(5, 0, 0, 160 , 25, Color(88,88,88))
if self:IsHovered() or self:IsDown() then
draw.RoundedBox(5, 0, 0, 160, 25, Color(65,65,65))
end
end
local Weapon6 = vgui.Create( "DButton", WeaponPerma )
Weapon6:SetText(CH_WEAPONVIP.Language[1] )
Weapon6:SetPos( 440, 360 )
Weapon6:SetSize( 160, 25 )
Weapon6:SetFont("A")
Weapon6:SetTextColor(color_white)
Weapon6.DoClick = function()
surface.PlaySound("buttons/blip1.wav")
net.Start("FouLife:PermWep:Retreive")
net.WriteInt(6, 32)
net.SendToServer()
end
Weapon6.Paint = function(self, w, h)
draw.RoundedBox(5, 0, 0, 160 , 25, Color(88,88,88))
if self:IsHovered() or self:IsDown() then
draw.RoundedBox(5, 0, 0, 160, 25, Color(65,65,65))
end
end
local Weapon7 = vgui.Create( "DButton", WeaponPerma )
Weapon7:SetText(CH_WEAPONVIP.Language[1] )
Weapon7:SetPos( 60, 530 )
Weapon7:SetSize( 160, 25 )
Weapon7:SetFont("A")
Weapon7:SetTextColor(color_white)
Weapon7.DoClick = function()
surface.PlaySound("buttons/blip1.wav")
net.Start("FouLife:PermWep:Retreive")
net.WriteInt(7, 32)
net.SendToServer()
end
Weapon7.Paint = function(self, w, h)
draw.RoundedBox(5, 0, 0, 160 , 25, Color(88,88,88))
if self:IsHovered() or self:IsDown() then
draw.RoundedBox(5, 0, 0, 160, 25, Color(65,65,65))
end
end
local Weapon8 = vgui.Create( "DButton", WeaponPerma )
Weapon8:SetText(CH_WEAPONVIP.Language[1] )
Weapon8:SetPos( 250, 530 )
Weapon8:SetSize( 160, 25 )
Weapon8:SetFont("A")
Weapon8:SetTextColor(color_white)
Weapon8.DoClick = function()
surface.PlaySound("buttons/blip1.wav")
net.Start("FouLife:PermWep:Retreive")
net.WriteInt(8, 32)
net.SendToServer()
end
Weapon8.Paint = function(self, w, h)
draw.RoundedBox(5, 0, 0, 160 , 25, Color(88,88,88))
if self:IsHovered() or self:IsDown() then
draw.RoundedBox(5, 0, 0, 160, 25, Color(65,65,65))
end
end
local Weapon9 = vgui.Create( "DButton", WeaponPerma )
Weapon9:SetText(CH_WEAPONVIP.Language[1] )
Weapon9:SetPos( 440, 530 )
Weapon9:SetSize( 160, 25 )
Weapon9:SetFont("A")
Weapon9:SetTextColor(color_white)
Weapon9.DoClick = function()
surface.PlaySound("buttons/blip1.wav")
net.Start("FouLife:PermWep:Retreive")
net.WriteInt(9, 32)
net.SendToServer()
end
Weapon9.Paint = function(self, w, h)
draw.RoundedBox(5, 0, 0, 160 , 25, Color(88,88,88))
if self:IsHovered() or self:IsDown() then
draw.RoundedBox(5, 0, 0, 160, 25, Color(65,65,65))
end
end
end)

hook.Add("HUDPaint", "FouLife:Medic:Draw", function()


if not LocalPlayer():Alive() then return end
if LocalPlayer():Health() > 20 then return end

surface.SetDrawColor( 0, 0, 0, 128 )
surface.DrawRect( 50, 50, 128, 128 )
end)

You might also like