Advertisement
Guest User

MeepBot Build 65b

a guest
Jun 18th, 2013
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 20.66 KB | None | 0 0
  1. --Build 65b
  2.  
  3. --[[Tips:
  4.  
  5. Want to change colors for the crosshair? Find the MB.ch.ch1 variables, then change the numbers.
  6.  
  7. Want to disable it completely? Change MB.ch.bool = true to MB.ch.bool = false
  8.  
  9. r = red (0-255)
  10. g = green (0-255)
  11. b = blue (0-255)
  12. a = alpha [transparency] (0-255) 255 = not transparent
  13. ]]
  14.  
  15. -------------------------LOCALIZATION
  16. local math = math -------------------
  17. local table = table -----------------
  18. local player = player ---------------
  19. local string = string ---------------
  20. local tostring = tostring -----------
  21. local pairs = pairs -----------------
  22. local ipairs = ipairs ---------------
  23. local util = util -------------------
  24. local surface = surface -------------
  25. local draw = draw -------------------
  26. local cam = cam ---------------------
  27. local render = render ---------------
  28. local vgui = vgui -------------------
  29. local timer = timer -----------------
  30. local hook = hook -------------------
  31. local concommand = concommand -------
  32. local _G = _G -----------------------
  33. ---------------------LOCALIZATION END
  34.  
  35. local MB = {}
  36.  
  37. if string.find(string.lower(GAMEMODE.Name),"terror") then MB.TTT = true else MB.TTT = false end
  38. if string.find(string.lower(GAMEMODE.Name),"darkrp") then MB.DRP = true else MB.DRP = false end
  39.  
  40. MB.lp = LocalPlayer
  41. MB.chars = {"a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "1", "2", "3", "4", "5", "6", "7", "8", "9", "0", "_"}
  42.  
  43. MB.ch = {}
  44. MB.ch.bool = true
  45.  
  46. MB.ch.ch1 = {}
  47. MB.ch.ch1.r = 213
  48. MB.ch.ch1.g = 91
  49. MB.ch.ch1.b = 201
  50. MB.ch.ch1.a = 200
  51.  
  52. MB.debug = {}
  53. MB.esp = {}
  54. MB.hooks = {}
  55. MB.commands = {}
  56. MB.convars = {}
  57. MB.timers = {}
  58. MB.aim = false
  59. MB.aimnotify = true
  60. MB.meep = true
  61. MB.shootwhileaim = false
  62. MB.meepbot = false
  63. MB.targ = nil
  64.  
  65. MB.esp.color = "health"
  66.  
  67. MB.allwep = {}
  68. MB.traitorz = {}
  69. MB.witnesses = {}
  70. MB.deadpplz = {}
  71. MB.mat = CreateMaterial(math.random(1337,13370), "VertexLitGeneric", {["$basetexture"] = "models/debug/debugwhite", ["$model"] = 1, ["$ignorez"] = 1})
  72. MB.donottrack = {"viewmodel", "weapon_ttt_wtester", "weapon_zm_improvised", "weapon_zm_magnetstick", "weapon_zm_carry", "weapon_ttt_unarmed", "env_fire", "ttt_flame", "ttt_knife_proj", "prop_ragdoll", "trace1", "rope", "func_physbox", "ttt_firegrenade_proj", "ttt_smokegrenade_proj", "ttt_confgrenade_proj"}
  73.  
  74.  
  75. for k, v in pairs(ents.GetAll()) do
  76.     v.isPartOfMap = true
  77.     if not table.HasValue(MB.allwep,v:GetClass()) and v:IsWeapon() and not table.HasValue(MB.donottrack,v:GetClass()) then
  78.         table.insert(MB.allwep,v:GetClass())
  79.     end
  80. end
  81.  
  82. function MB.rs(minl,maxl)
  83.     local result = ""
  84.     for i = 1, math.random(minl,maxl) do
  85.         result = result..MB.chars[math.random(1,#MB.chars)]
  86.     end
  87.     return result
  88. end
  89.  
  90. function MB.AddHook(Type,Function)
  91.     local Name = MB.rs(5,25)
  92.     MB.hooks[Name] = {}
  93.     MB.hooks[Name].name = Name
  94.     MB.hooks[Name].type = Type
  95.     hook.Add(Type,Name,Function)
  96. end
  97.  
  98. function MB.AddConVar(val, desc)
  99.     local aval = MB.rs(5,10)
  100.     MB.convars[desc] = {}
  101.     MB.convars[desc].name = aval
  102.     MB.convars[desc].desc = desc
  103.     CreateConVar(aval,val)
  104. end
  105.  
  106. function MB.AddTimer(timerdesc,timeamt,times,functiontimer)
  107.     local timername = MB.rs(6,14)
  108.     timer.Create(timername,timeamt,times,functiontimer)
  109.     MB.timers[timername] = {}
  110.     MB.timers[timername].name = timername
  111.     MB.timers[timername].desc = timerdesc
  112. end
  113.  
  114. function MB.ToConsole(text,nextline)
  115.     if nextline then
  116.         MsgN("[MeepBot] "..text)
  117.     else
  118.         Msg("[MeepBot] "..text)
  119.     end
  120. end
  121.  
  122. function MB.ToChat(...)
  123.     chat.AddText(Color(225,215,0),"[MeepBot] ",Color(210,180,0), ...)
  124. end
  125.  
  126. function MB.AddCommand(Name, bool, Function)
  127.     local number = ""
  128.     if bool then
  129.         number = tostring(bool)
  130.     else
  131.         number = MB.rs(4,15)
  132.     end
  133.     MB.commands[Name] = {}
  134.     MB.commands[Name].number = number
  135.     MB.commands[Name].name = Name
  136.     concommand.Add(number,Function)
  137. end
  138.  
  139. MB.AddCommand("MB.Debug.Gamemode", false, function()
  140.     MB.ToConsole(tostring(GAMEMODE.Name),true)
  141. end)
  142.  
  143. MB.AddCommand("MB.ESPWallhack.Toggle", false, function()
  144.     MB.meep = not MB.meep
  145. end)
  146.  
  147. MB.AddCommand("MB.Debug.TTTToggle", false, function()
  148.     MB.TTT = not MB.TTT
  149. end)
  150.  
  151. MB.AddCommand("MB.Aimbot.Toggle", "meepbot", function()
  152.     MB.aim = not MB.aim
  153. end)
  154.  
  155. MB.AddCommand("MB.Aimbot.ShootWhileAiming", false, function()
  156.     MB.shootwhileaim = not MB.shootwhileaim
  157. end)
  158.  
  159. function MB.MESPCheck(v)
  160.     if MB.TTT then
  161.         if IsValid(v) and v:IsPlayer() and not v:IsNPC() and v:IsTerror() ~= nil and v:IsTerror() and not table.HasValue(MB.deadpplz,v) and v ~= MB.lp() then
  162.             return true
  163.         else
  164.             return false
  165.         end
  166.     else
  167.         if IsValid(v) and v:IsPlayer() and not v:IsNPC() and not table.HasValue(MB.deadpplz,v) and v ~= MB.lp() then
  168.             return true
  169.         else
  170.             return false
  171.         end
  172.     end
  173. end
  174.  
  175. function MB.coordinates(ent)
  176.     local min, max = ent:OBBMins(), ent:OBBMaxs()
  177.     local corners = {
  178.         Vector(min.x, min.y, min.z),
  179.         Vector(min.x, min.y, max.z),
  180.         Vector(min.x, max.y, min.z),
  181.         Vector(min.x, max.y, max.z),
  182.         Vector(max.x, min.y, min.z),
  183.         Vector(max.x, min.y, max.z),
  184.         Vector(max.x, max.y, min.z),
  185.         Vector(max.x, max.y, max.z)
  186.     }
  187.      
  188.     local minX, minY, maxX, maxY = ScrW() * 2, ScrH() * 2, 0, 0
  189.     for _, corner in pairs(corners) do    
  190.         local onScreen = ent:LocalToWorld(corner):ToScreen()
  191.         minX, minY = math.min(minX, onScreen.x), math.min(minY, onScreen.y)
  192.         maxX, maxY = math.max(maxX, onScreen.x), math.max(maxY, onScreen.y)
  193.     end
  194.      
  195.     return minX, minY, maxX, maxY
  196. end
  197.  
  198.  
  199.  
  200. MB.AddHook("Think",function()
  201.     for _,v in pairs(player.GetAll()) do
  202.         if not v:Alive() and v:Health() < 1 and not v:IsNPC() and v:IsPlayer() then
  203.             if not table.HasValue(MB.deadpplz,v) then
  204.                 table.insert(MB.deadpplz,v)
  205.                 MB.ToChat(v:Name().." died somehow!")
  206.             end
  207.         else
  208.             for k,v2 in pairs (MB.deadpplz) do
  209.                 if v2 == v then
  210.                     table.remove(MB.deadpplz,k)
  211.                 end
  212.             end
  213.         end
  214.     end
  215. end)
  216.  
  217. MB.AddHook("CreateMove",function(cmd) --Thanks Tyler Wearing!
  218.     local lp = MB.lp()
  219.     local trace = util.GetPlayerTrace(lp)
  220.     local traceRes = util.TraceLine(trace)
  221.     if traceRes.HitNonWorld then
  222.         local target = traceRes.Entity
  223.         if target:Health() > 0 and IsValid(target) and v ~= lp then
  224.             MB.temptarg = target
  225.         end
  226.     end
  227.     if MB.aim and IsValid(MB.targ) and MB.targ:Health() > 0 and table.HasValue(player.GetAll(), MB.targ) then
  228.         local targethead = MB.targ:LookupBone("ValveBiped.Bip01_Head1")
  229.         if targethead then
  230.             local targetheadpos,targetheadang = MB.targ:GetBonePosition(targethead)
  231.             if targetheadpos and targetheadang then
  232.                 angle = (targetheadpos - lp:EyePos()):Angle()
  233.                 --angle.p = angle.p - 180
  234.                 --if angle.p < 360 and angle.p > 270 then angle.p = angle.p + 360 end
  235.                 cmd:SetViewAngles(angle) --Thanks Tyler Wearing!
  236.                 if traceRes.HitNonWorld and traceRes.Entity and IsValid(traceRes.Entity) and MB.shootwhileaim then
  237.                     cmd:SetButtons(bit.bor(cmd:GetButtons(), IN_ATTACK)) --Thanks Tyler Wearing!
  238.                 end
  239.             end
  240.         end
  241.     else
  242.         MB.aim = false
  243.         MB.targ = MB.temptarg
  244.     end
  245. end)
  246.  
  247.  
  248. MB.AddHook("HUDPaint", function()
  249.     local lp = MB.lp()
  250.     local trace = util.GetPlayerTrace(lp)
  251.     local traceRes = util.TraceLine(trace)
  252.     if traceRes.HitNonWorld then
  253.         local target = traceRes.Entity
  254.         draw.DrawText(target:GetClass(),"BudgetLabel", 30, ScrH() / 2 + 15,Color(255,255,255,255))
  255.     end
  256.    
  257.     local numspec = 0
  258.     for k,v in pairs(player.GetAll()) do
  259.         if v:GetObserverTarget() == lp then
  260.             numspec = numspec + 1
  261.         end
  262.     end
  263.     draw.DrawText(numspec.." Spectating You","BudgetLabel", 30, ScrH() / 2 + 30,Color(255,0,255,255))
  264.    
  265.     if MB.aim and MB.aimnotify then
  266.         if IsValid(MB.targ) and MB.targ then
  267.             draw.DrawText(MB.targ:Nick(), "BudgetLabel", 30, ScrH() / 2, Color(255, 255, 255, 255))
  268.         end
  269.     end
  270.     if MB.ch["bool"] then
  271.        
  272.         surface.SetDrawColor(Color(MB.ch.ch1.r, MB.ch.ch1.g, MB.ch.ch1.b, MB.ch.ch1.a))
  273.        
  274.         local x, y = ScrW() / 2, ScrH() / 2
  275.         local gap = 0
  276.         local length = 15
  277.         local exgap = 5
  278.        
  279.         if lp and lp:GetActiveWeapon() and MB.TTT and MB.MESPCheck(lp) then
  280.             --stole code below
  281.             local scale = math.max(0.2,  10 * lp:GetActiveWeapon().Primary.Cone)
  282.             local sights = lp:GetActiveWeapon():GetIronsights()
  283.             exgap = 20 * scale * (sights and 0.8 or 1)
  284.         end
  285.        
  286.         surface.DrawLine( x - length, y, x - gap, y )
  287.         surface.DrawLine( x + length, y, x + gap, y )
  288.         surface.DrawLine( x, y - length, x, y - gap )
  289.         surface.DrawLine( x, y + length, x, y + gap )
  290.         if MB.TTT then
  291.             surface.DrawLine(x - exgap,y + length / exgap, x - exgap, y - length / exgap)
  292.             surface.DrawLine(x + exgap,y + length / exgap, x + exgap, y - length / exgap)
  293.             surface.DrawLine(x - length / exgap,y + exgap, x + length / exgap, y + exgap)
  294.             surface.DrawLine(x - length / exgap,y - exgap, x + length / exgap, y - exgap)
  295.         end
  296.     end
  297.     if MB.meep then
  298.         cam.Start2D()
  299.         for k,v in pairs (ents.GetAll()) do
  300.             if string.find(string.lower(v:GetClass()),"money") and MB.DRP then
  301.                 local pos = v:GetPos():ToScreen()
  302.                 local x, y = pos.x, pos.y
  303.                 draw.DrawText(tostring(v:GetClass()),"BudgetLabel",x,y,Color(100,150,125,255),TEXT_ALIGN_CENTER)
  304.             elseif string.find(string.lower(tostring(v:GetClass())),"shipment") and MB.DRP then
  305.                 local pos = v:GetPos():ToScreen()
  306.                 local x, y = pos.x, pos.y
  307.                 local ct = v:Getcontents() or ""
  308.                 local cts = CustomShipments[ct] or ""
  309.                 local ctsn = cts.name
  310.                 draw.DrawText(tostring(v:GetClass()..(": "..ctsn.."; Amount: "..v:Getcount() or "")),"BudgetLabel",x,y,Color(100,150,125,255),TEXT_ALIGN_CENTER)
  311.             end
  312.         end
  313.         for k,v in pairs (player.GetAll()) do
  314.             if MB.MESPCheck(v) then
  315.             --Name Draw start
  316.                 local Position = v:GetPos():ToScreen()
  317.                 local name = v:Name()
  318.                 local isadmin = v:IsAdmin() or false
  319.                 local issuperadmin = v:IsSuperAdmin() or false
  320.                 local text = ""
  321.                 if issuperadmin then text = "[SuperAdmin]\n"..name.."\n" elseif isadmin then text = "[Admin]\n"..name.."\n" else text = "\n"..name.."\n" end
  322.                 local extra = ""
  323.                 local color = Color(0,0,0,255)
  324.                 if MB.TTT then
  325.                     if v:IsDetective() then
  326.                         extra = "Detective"
  327.                         color = Color(0, 0, 255, 250)
  328.                     elseif table.HasValue(MB.traitorz,v) then
  329.                         extra = "Traitor"
  330.                         color = Color(0, 255, 0, 250)
  331.                     else
  332.                         extra = "Innocent"
  333.                         color = Color(0, 255, 0, 250)
  334.                     end
  335.                 elseif MB.DRP then
  336.                     extra = tostring(team.GetName(v:Team()))
  337.                     color = team.GetColor(v:Team())
  338.                 else
  339.                     color = Color(102, 102, 255, 250 )
  340.                 end
  341.                 draw.DrawText(text..extra, "BudgetLabel", Position.x, Position.y, color, 1)
  342.             --Name Draw finish
  343.             end
  344.         end
  345.         cam.End2D()
  346.     end
  347. end)
  348.  
  349. MB.AddHook("RenderScreenspaceEffects", function()
  350.     if MB.meep then
  351.         local lp = MB.lp()
  352.         cam.Start3D(lp:EyePos(), lp:EyeAngles())
  353.        
  354.         render.SuppressEngineLighting(true)
  355.         render.MaterialOverride(MB.mat)
  356.        
  357.        
  358.         for k,v in pairs(player.GetAll()) do
  359.             if MB.MESPCheck(v) then
  360.             --draw people start
  361.                 --part 1
  362.                 local green = 0
  363.                 local red = 0
  364.                 local blue = 0
  365.                 local alpha = 1
  366.                 if MB.esp.color == "health" then
  367.                     h = v:Health()
  368.                     green = (2.55 * h) / 255
  369.                     red = (255 - 2.00 * h) / 255
  370.                 elseif MB.esp.color == "team" then
  371.                     local color = team.GetColor(v:Team())
  372.                     red = color.r / 255
  373.                     green = color.g / 255
  374.                     blue = color.b / 255
  375.                     alpha = color.a / 255
  376.                 elseif MB.esp.color == "white" then
  377.                     red = 1
  378.                     blue = 1
  379.                     green = 1
  380.                 elseif MB.esp.color == "red" then
  381.                     red = 1
  382.                 elseif MB.esp.color == "blue" then
  383.                     blue = 1
  384.                 elseif MB.esp.color == "green" then
  385.                     green = 1
  386.                 end
  387.                    
  388.                 render.SetColorModulation(red, green, blue, alpha)
  389.                 render.MaterialOverride(MB.mat)
  390.                 v:DrawModel()
  391.                
  392.                 --part 2
  393.                 render.MaterialOverride()
  394.                 render.SetModelLighting(4, 0.78, 0.19, 0.19)
  395.                 v:DrawModel()
  396.             --draw people finish
  397.            
  398.             --draw guns start
  399.                 if IsValid(v:GetActiveWeapon()) then
  400.                     render.SetColorModulation(0, 0, 0, 1)
  401.                     render.MaterialOverride(MB.mat)
  402.                     v:GetActiveWeapon():DrawModel()
  403.                    
  404.                     render.SetColorModulation(0, 0, 0, 1)
  405.                     render.MaterialOverride()
  406.                     v:GetActiveWeapon():DrawModel()
  407.                 end
  408.             --draw guns finish
  409.             end
  410.         end
  411.         render.SuppressEngineLighting(false)
  412.         cam.End3D()
  413.     end
  414. end)
  415.  
  416.  
  417.  
  418. if MB.TTT then
  419.     MB.AddHook("TTTPrepareRound",function()
  420.         traitorfinder = false
  421.         for k, v in pairs(MB.allwep) do
  422.             table.remove(MB.allwep, k)
  423.             MB.allwep = {}
  424.         end
  425.         MB.targ = nil
  426.         MB.temptarg = nil
  427.         for _,v in pairs(ents.GetAll()) do
  428.             v.isPartOfMap = true
  429.         end
  430.     end)
  431.  
  432.     MB.AddHook("TTTBeginRound",function()
  433.         traitorfinder = true
  434.         for k, v in pairs(ents.GetAll()) do
  435.             v.isPartOfMap = true
  436.             if not table.HasValue(MB.allwep,v:GetClass()) and v:IsWeapon() and not table.HasValue(MB.donottrack,v:GetClass()) then
  437.                 table.insert(MB.allwep,v:GetClass())
  438.             end
  439.         end
  440.         MB.traitorz = {}
  441.         MB.deadpplz = {}
  442.     end)
  443. end
  444.  
  445. MB.AddHook("PostDrawOpaqueRenderables", function()
  446.     if MB.TTT then
  447.         for k, v in pairs(ents.GetAll()) do
  448.             if v and MB.meep and traitorfinder and IsValid(v) then
  449.                 if not table.HasValue(MB.allwep,v:GetClass()) and v.CanBuy and not v.isPartOfMap and not v.wasESPTracked and not table.HasValue(MB.donottrack,v:GetClass()) then
  450.                     pl = v.Owner
  451.                     if MB.MESPCheck(pl) and IsValid(pl) and pl and not pl:IsDetective() then
  452.                         v.wasESPTracked = true
  453.                         table.insert(MB.traitorz,pl)
  454.                         MB.ToChat(pl, Color(255,125,0), " has a ",Color(255,0,0),tostring(v:GetPrintName()).."!")
  455.                     end
  456.                 end
  457.             end
  458.         end
  459.     end
  460. end)
  461.  
  462. MB.AddCommand("ShowWindow", false, function()
  463.     -- the width in between things should be 5
  464.     local frame = vgui.Create("DFrame")
  465.     frame:SetTitle("MeepBot")
  466.     frame:SetSize(400, 300) -- 398, 278 = the size of the actual window
  467.     frame:SetPos(25, 25)
  468.     frame:SetSizable(false)
  469.     frame:MakePopup()
  470.    
  471.     local vguiselfdestructb = vgui.Create("DButton", frame)
  472.     vguiselfdestructb:SetText("Self Destruct")
  473.     vguiselfdestructb:SetPos(6,27)
  474.     vguiselfdestructb:SetWide(388)
  475.     vguiselfdestructb:SetHeight(20)
  476.     vguiselfdestructb:SetTextColor(Color(0,100,0,255))
  477.     function vguiselfdestructb:DoClick()
  478.         for _,v in pairs(MB.hooks) do
  479.             hook.Remove(v.type,v.name)
  480.             MB.ToConsole(v.name.." was removed! ("..v.type..")",true)
  481.         end
  482.         for _,v in pairs (MB.timers) do
  483.             timer.Remove(v.name)
  484.             MB.ToConsole(v.desc.." was removed! ("..v.name..")",true)
  485.         end
  486.         for _,v in pairs (MB.commands) do
  487.             concommand.Remove(v.number)
  488.             MB.ToConsole(v.name.." was removed! ("..v.number..")",true)
  489.         end
  490.         frame:SetVisible(false)
  491.     end
  492.    
  493.     local vguibindb = vgui.Create("DButton", frame)
  494.     vguibindb:SetPos(7, 53)
  495.     vguibindb:SetHeight(20)
  496.     vguibindb:SetWide(97)
  497.     vguibindb:SetText("List binds in ~")
  498.     function vguibindb:DoClick()
  499.         for _,v in pairs(MB.commands) do
  500.             MB.ToConsole(v.name.." is "..v.number,true)
  501.         end
  502.     end
  503.    
  504.     local vguimaintoggleb = vgui.Create("DButton", frame)
  505.     if MB.meep then vguimaintoggleb:SetText("Wallhack on") else vguimaintoggleb:SetText("Wallhack off") end
  506.     vguimaintoggleb:SetPos(105, 53)
  507.     vguimaintoggleb:SetWide(97)
  508.     vguimaintoggleb:SetHeight(20)
  509.     function vguimaintoggleb:DoClick()
  510.         MB.meep = !MB.meep
  511.         if MB.meep then self:SetText("Wallhack on") else self:SetText("Wallhack off") end
  512.     end
  513.    
  514.     local btn1 = vgui.Create("DComboBox", frame)
  515.     btn1:SetPos(7,79)
  516.     btn1:SetHeight(20)
  517.     btn1:SetWide(97)
  518.     btn1:SetValue("Color of people")
  519.     btn1:AddChoice("health")
  520.     btn1:AddChoice("team")
  521.     btn1:AddChoice("white")
  522.     btn1:AddChoice("black")
  523.     btn1:AddChoice("red")
  524.     btn1:AddChoice("green")
  525.     btn1:AddChoice("blue")
  526.     function btn1:OnSelect(k,v,d)
  527.         MB.esp.color = v
  528.     end
  529.    
  530. end)
  531.  
  532. MB.AddCommand("MB.Debug.ESPSettings", false, function()
  533.     local rows = 2
  534.     local columns = 3
  535.     local extrah = 27
  536.     local extraw = 3
  537.     local totalwidth = 3 + 103 * (columns * 3)
  538.     local totalheight = 27 * (rows + 1)
  539.    
  540.     local Frame = vgui.Create("DFrame")
  541.     Frame:SetSize(209,totalheight)
  542.     Frame:SetPos(25,25)
  543.     Frame:SetText("ESP settings")
  544.     Frame:MakePopup()
  545.    
  546.     local btn1 = vgui.Create("DComboBox",Frame)
  547.     btn1:SetPos(extraw,extrah)
  548.     btn1:SetWide(100)
  549.     btn1:AddChoice("health")
  550.     btn1:AddChoice("team")
  551.     btn1:AddChoice("red")
  552.     btn1:AddChoice("green")
  553.     btn1:AddChoice("blue")
  554.     btn1:AddChoice("white")
  555.     btn1:AddChoice("black")
  556.     btn1:SetSelectedItems({btn1:SelectByName(MB.esp.color)})
  557.     btn1:SetSelected(true)
  558.     function btn1:OnSelect(k,v,d)
  559.         MB.esp.color = v
  560.     end
  561.    
  562.     local vguimaintoggleb = vgui.Create("DButton",Frame)
  563.     if MB.meep then vguimaintoggleb:SetText("Wallhack on") else vguimaintoggleb:SetText("Wallhack off") end
  564.     vguimaintoggleb:SetPos(extraw,extrah * 2)
  565.     vguimaintoggleb:SetWide(100)
  566.     function vguimaintoggleb:DoClick()
  567.         MB.meep = !MB.meep
  568.         if MB.meep then self:SetText("Wallhack on") else self:SetText("Wallhack off") end
  569.     end
  570.    
  571.     local vguibindb = vgui.Create("DButton",Frame)
  572.     vguibindb:SetPos(extraw * 2 + 100,extrah * 2)
  573.     vguibindb:SetWide(100)
  574.     vguibindb:SetText("List binds in ~")
  575.     function vguibindb:DoClick()
  576.         for _,v in pairs(MB.commands) do
  577.             MB.ToConsole(v.name.." is "..v.number,true)
  578.         end
  579.     end
  580.    
  581.     local vguiselfdestructb = vgui.Create("DButton",Frame)
  582.     vguiselfdestructb:SetPos(extraw * 2 + 100,extrah)
  583.     vguiselfdestructb:SetWide(100)
  584.     vguiselfdestructb:SetText("Self Destruct")
  585.     function vguiselfdestructb:DoClick()
  586.         for _,v in pairs(MB.hooks) do
  587.             hook.Remove(v.type,v.name)
  588.             MB.ToConsole(v.name.." was removed! ("..v.type..")",true)
  589.         end
  590.         for _,v in pairs (MB.timers) do
  591.             timer.Remove(v.name)
  592.             MB.ToConsole(v.desc.." was removed! ("..v.name..")",true)
  593.         end
  594.         for _,v in pairs (MB.commands) do
  595.             concommand.Remove(v.number)
  596.             MB.ToConsole(v.name.." was removed! ("..v.number..")",true)
  597.         end
  598.         Frame:SetVisible(false)
  599.     end
  600. end)
  601.  
  602. MB.ToChat("Bind a key to: ",Color(255,0,0),MB.commands["ShowWindow"].number)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement