Advertisement
Guest User

MeepBot Build 73

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