Advertisement
Derek_SM

shinycow's prop exploit latest

Jan 15th, 2015
2,338
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 18.40 KB | None | 0 0
  1. ---------------------- Very old. Still in use by some people so I'd figure I'd go ahead and give this version out.
  2. ---------------------- Old version: http://pastebin.com/sHmyx1ti
  3.  
  4. ---------------------- Updated March 20, 2015 to fix the InjectConsoleCommand being removed.
  5. ---------------------- quit bugging me about this
  6.  
  7.  
  8.  
  9. /*
  10.     Created by Shinycow.
  11.     http://pastebin.com/u/Derek_SM
  12.     SteamID: STEAM_0:0:29257121
  13.    
  14.     Place this file somewhere obscure like lua/shinycow/scnew.lua
  15.     Commands start with prefix 'sc_'
  16.    
  17.     TODO: Menu
  18. */
  19.  
  20.     -- Start off by making the table.
  21. local SCE = {}
  22. local SCE_HasToggled = {}
  23.  
  24. local net = net
  25. local concommand = concommand
  26. local file = file
  27.  
  28.  
  29. local oldfileRead = file.Read
  30. function file.Read(contents, type)
  31.     if not contents then return nil end
  32.     if string.lower(contents):find("scnew") or string.lower(contents):find("scexploit") then return nil end
  33.        
  34.     return oldfileRead(contents, type)
  35. end
  36.  
  37. local oldccRun = concommand.Run
  38. function concommand.Run( player, command, arguments, args )
  39.     if SCE[ command:lower() ] then
  40.         SCE[ command:lower() ].Function( player, command, arguments, args )
  41.         return true
  42.     end
  43.    
  44.     oldccRun( player, command, arguments, args )
  45. end
  46.  
  47.  
  48.     -- End.
  49.  
  50.     -- Utility functions
  51. local function sce_AddCommand( cmd, func, help )
  52.     SCE[ "sc_" .. cmd:lower() ] = {Function = func, Help = help}
  53.     AddConsoleCommand( "sc_" .. cmd:lower(), help )
  54. end
  55.  
  56. local function FindPlayer( pl )
  57.     for i=1,#player.GetAll() do
  58.         local v = player.GetAll()[ i ]
  59.        
  60.         if string.find(string.lower(v:Nick()), string.lower(tostring(pl))) then
  61.             return v
  62.         elseif v:UserID() == tonumber(pl) then
  63.             return v
  64.         end
  65.     end
  66.    
  67.     return nil
  68. end
  69.        
  70.  
  71. /*local function exploitRemove( tbl_ToRemove )
  72.     --local findalldem = {}
  73.     --for k,v in pairs(tbl_ToRemove) do
  74.        
  75.     --  findalldem[ k ] = {
  76.     PrintTable(tbl_ToRemove)
  77.     for i=1,#ents.GetAll() do
  78.         local v = ents.GetAll()[ i ]
  79.        
  80.         local shouldremove = false
  81.        
  82.         --for k,v in pairs(tbl_ToRemove) do if string.lower(tostring(v)):find( k:lower() ) then shouldremove = true end end
  83.         --for k,v in pairs(tbl_ToRemove) do
  84.             if string.find( string.lower(tostring(v)), "weapon" ) then
  85.                 print("Yes")
  86.             end
  87.         --end
  88.        
  89.         if shouldremove then
  90.             net.Start("properties")
  91.                 net.WriteUInt( util.NetworkStringToID( "remove" ), 32 )
  92.                 net.WriteEntity( v )
  93.             net.SendToServer()
  94.         end
  95.     end
  96. end*/
  97.  
  98. local function exploitRemove( str_entity, b_IsEntity )
  99.     if b_IsEntity then
  100.         net.Start("properties")
  101.             net.WriteUInt( util.NetworkStringToID( "remove" ), 32 )
  102.             net.WriteEntity( str_entity )
  103.         net.SendToServer()
  104.    
  105.         return
  106.     end
  107.     for i=1,#ents.GetAll() do
  108.         local v = ents.GetAll()[ i ]
  109.        
  110.         if string.find( string.lower(tostring(v)), str_entity ) then
  111.             if not v.ImOwner then
  112.                 net.Start("properties")
  113.                     net.WriteUInt( util.NetworkStringToID( "remove" ), 32 )
  114.                     net.WriteEntity( v )
  115.                 net.SendToServer()
  116.             end
  117.         end
  118.     end
  119. end
  120.  
  121. local function exploitCollisions( toCollision, str_On, b_IsEntity, lookfor )
  122.     if b_IsEntity then
  123.         net.Start("properties")
  124.             net.WriteUInt( util.NetworkStringToID( "collision_" .. str_On ), 32 )
  125.             net.WriteEntity( toCollision )
  126.         net.SendToServer()
  127.    
  128.         return
  129.     end
  130.    
  131.     for i=1,#ents.GetAll() do
  132.         local v = ents.GetAll()[ i ]
  133.        
  134.         if lookfor then
  135.             if string.find( string.lower(tostring(v)), lookfor ) then
  136.                 net.Start("properties")
  137.                     net.WriteUInt( util.NetworkStringToID( "collision_" .. str_On ), 32 )
  138.                     net.WriteEntity( v )
  139.                 net.SendToServer()
  140.             end
  141.         /*else
  142.             if string.find( string.lower(tostring(v)), toCollision ) then
  143.                 net.Start("properties")
  144.                     net.WriteUInt( util.NetworkStringToID( "collision_" .. str_On ), 32 )
  145.                     net.WriteEntity( v )
  146.                 net.SendToServer()
  147.             end*/
  148.         end
  149.     end
  150. end
  151.     -- End
  152.    
  153.     -- Commands.
  154. local function sce_GetList()
  155.     PrintTable(ents.GetAll())
  156. end
  157. sce_AddCommand("exploit_debug_GetEntities", sce_GetList, "Shinycow's Exploit: Prints the list of entities.")
  158.  
  159. local function sce_GetSCE()
  160.     PrintTable(SCE)
  161. end
  162. sce_AddCommand("exploit_debug_GetSCE", sce_GetSCE, "Shinycow's Exploit: Prints the table of SCE.")
  163.  
  164. local function sce_Ignite()
  165.     for i=1,#ents.GetAll() do
  166.         local v = ents.GetAll()[ i ]
  167.        
  168.         if v.Ignited then
  169.             net.Start("properties")
  170.                 net.WriteUInt( util.NetworkStringToID( "extinguish" ), 32 )
  171.                 net.WriteEntity( v )
  172.             net.SendToServer()
  173.            
  174.             v.Ignited = false
  175.         else
  176.             net.Start("properties")
  177.                 net.WriteUInt( util.NetworkStringToID( "ignite" ), 32 )
  178.                 net.WriteEntity( v )
  179.             net.SendToServer()
  180.            
  181.             v.Ignited = true
  182.         end
  183.     end
  184. end
  185. sce_AddCommand("exploit_ignite", sce_Ignite, "Shinycow's Exploit: Ignites / Extinguishes everything.")
  186.        
  187. local function sce_RemoveNames()
  188.     exploitRemove( "playerresource" )
  189. end
  190. sce_AddCommand("exploit_remove_Names", sce_RemoveNames, "Shinycow's Exploit: Removes everyone's names clientside.")
  191.  
  192. local function sce_RemoveAll()
  193.     -- No longer includes removing player names. You should call that directly.
  194.     exploitRemove( "prop_" )
  195.     exploitRemove( "weapon" )
  196.     exploitRemove( "gmod" )
  197.     exploitRemove( "func_" )
  198.     exploitRemove( "npc" )
  199.     exploitRemove( "env_" )
  200.     exploitRemove( "sun" )
  201.     exploitRemove( "base" )
  202.     exploitRemove( "shadow" )
  203.     exploitRemove( "beam" )
  204.     exploitRemove( "water" )
  205.     exploitRemove( "spotlight" )
  206.     exploitRemove( "viewmodel" )
  207.     exploitRemove( "userdata" )
  208. end
  209. sce_AddCommand("exploit_remove_All", sce_RemoveAll, "Shinycow's Exploit: Removes a lot of shit.")
  210.    
  211. local function sce_RemoveSpecified( p, c, args )
  212.     -- This removes whatever it can find that you specify. VERY useful.
  213.     for i=1,#args do
  214.         local v = args[ i ]
  215.        
  216.         exploitRemove( v )
  217.     end
  218. end
  219. sce_AddCommand("exploit_remove_Specified", sce_RemoveSpecified, "Shinycow's Exploit: Removes whatever it can find that you want.")
  220.  
  221.  
  222. /*local function sce_RemoveWeapons( p, c, args )
  223.     local args1 = args[1]
  224.  
  225.     local checkspam = "sce_exploit_remove_spam_weapons"
  226.     if c == checkspam then
  227.         if not SCE_HasToggled[ checkspam ] then
  228.             if FindPlayer(args1) then
  229.                 timer.Create(checkspam, 0.2, 0, function()
  230.                     RunConsoleCommand("sce_exploit_remove_Weapons", )
  231.                 end)
  232.             else
  233.                 timer.Create(checkspam, 0.2, 0, function()
  234.                     RunConsoleCommand("sce_exploit_remove_Weapons")
  235.                 end)
  236.             end
  237.             SCE_HasToggled[ checkspam ] = true
  238.         else
  239.             timer.Destroy(checkspam)
  240.             SCE_HasToggled[ checkspam ] = false
  241.         end
  242.         LocalPlayer():ChatPrint("Spamming " .. checkspam .. ": " .. tostring(SCE_HasToggled[ checkspam ]))
  243.     end
  244.    
  245.     if args1 then
  246.        
  247.     --exploitRemove( "weapon" )
  248.     --exploitRemove( "gmod" )
  249. end
  250. sce_AddCommand("exploit_remove_Weapons", sce_RemoveWeapons, "Shinycow's Exploit: Remove everyone's weapons.")
  251. sce_AddCommand("exploit_remove_spam_Weapons", sce_RemoveWeapons, "Shinycow's Exploit: Spam remove everyone's weapons.")*/
  252.  
  253.  
  254. local function sce_RemoveWeapons( p, c, args )
  255.    
  256.     -- Specifying a player.
  257.     local args1 = args[1]
  258.     if args1 then
  259.        
  260.         local target = FindPlayer(args1)
  261.         if not target then chat.AddText(Color(75,155,155,255), "Could not find ", color_white, args1) return end
  262.        
  263.         for k,v in pairs(ents.FindInSphere(target:GetPos(), 20)) do
  264.             if string.find(string.lower(tostring(v)), "weapon") then
  265.                 exploitRemove( v, true )
  266.             end
  267.         end
  268.        
  269.     else
  270.        
  271.         exploitRemove( "weapon" )
  272.        
  273.     end
  274.    
  275. end
  276. sce_AddCommand("exploit_remove_weapons", sce_RemoveWeapons, "Shinycow's Exploit: Removes (sombodies) weapons.")
  277.  
  278. local function sce_RemoveTrace( p, c )
  279.     local checkspam = "sc_exploit_remove_spam_lookingat"
  280.     if c == checkspam then
  281.         if not SCE_HasToggled[ checkspam ] then
  282.             timer.Create(checkspam, 0.2, 0, function()
  283.                 RunConsoleCommand("sc_exploit_remove_LookingAt")
  284.             end)
  285.            
  286.             SCE_HasToggled[ checkspam ] = true
  287.         else
  288.             timer.Destroy(checkspam)
  289.             SCE_HasToggled[ checkspam ] = false
  290.         end
  291.         LocalPlayer():ChatPrint("Spamming " .. checkspam .. ": " .. tostring(SCE_HasToggled[ checkspam ]))
  292.     else
  293.         exploitRemove( LocalPlayer():GetEyeTrace().Entity, true )
  294.     end
  295. end
  296. sce_AddCommand("exploit_remove_LookingAt", sce_RemoveTrace, "Shinycow's Exploit: Remove whatever you're looking at.")
  297. sce_AddCommand("exploit_remove_spam_LookingAt", sce_RemoveTrace, "Shinycow's Exploit: Spam remove whatever you're looking at.")
  298.  
  299. local function sce_RemoveNPC( p, c )
  300.     local checkspam = "sc_exploit_remove_spam_NPCs"
  301.     if c == checkspam then
  302.         if not SCE_HasToggled[ checkspam ] then
  303.             timer.Create(checkspam, 0.2, 0, function()
  304.                 RunConsoleCommand("sc_exploit_remove_NPCs")
  305.             end)
  306.            
  307.             SCE_HasToggled[ checkspam ] = true
  308.         else
  309.             timer.Destroy(checkspam)
  310.             SCE_HasToggled[ checkspam ] = false
  311.         end
  312.         LocalPlayer():ChatPrint("Spamming " .. checkspam .. ": " .. tostring(SCE_HasToggled[ checkspam ]))
  313.     else
  314.         exploitRemove( "npc" )
  315.         exploitRemove( "gmod" )
  316.     end
  317. end
  318. sce_AddCommand("exploit_remove_NPCs", sce_RemoveNPC, "Shinycow's Exploit: Remove every NPC.")
  319. sce_AddCommand("exploit_remove_spam_NPCs", sce_RemoveNPC, "Shinycow's Exploit: Spam remove every NPC.")
  320.  
  321. local function sce_RemoveRadius( p, c, args )
  322.     local radius = args[1] or 1000
  323.     local noweapons = tobool(args[2]) or false
  324.    
  325.     local checkspam = "sc_exploit_remove_spam_inradius"
  326.     if c == checkspam then
  327.         if not SCE_HasToggled[ checkspam ] then
  328.             local waitamount = tonumber(args[3]) or 0.2
  329.             timer.Create(checkspam, waitamount, 0, function()
  330.                 RunConsoleCommand("sc_exploit_remove_InRadius", tostring(radius), tostring(noweapons))
  331.             end)
  332.            
  333.             SCE_HasToggled[ checkspam ] = true
  334.         else
  335.             timer.Destroy(checkspam)
  336.             SCE_HasToggled[ checkspam ] = false
  337.         end
  338.         LocalPlayer():ChatPrint("Spamming " .. checkspam .. ": " .. tostring(SCE_HasToggled[ checkspam ]))
  339.     else
  340.  
  341.         for k,v in pairs(ents.FindInSphere( LocalPlayer():GetPos(), tonumber(radius) )) do
  342.             if noweapons then
  343.                 if not string.find(string.lower(tostring(v)), "weapon") then
  344.                     exploitRemove( v, true )
  345.                 end
  346.             else
  347.                 exploitRemove( v, true )
  348.             end
  349.         end
  350.    
  351.     end
  352. end
  353. sce_AddCommand("exploit_remove_InRadius", sce_RemoveRadius, "Shinycow's Exploit: Remove every entity in your radius.")
  354. sce_AddCommand("exploit_remove_spam_InRadius", sce_RemoveRadius, "Shinycow's Exploit: Spam remove every entity in your radius. <radius> [weapons]")
  355.        
  356.  
  357. local function sce_NocollideRadius( p, c, args )
  358.     local radius = args[1] or 1000
  359.     local checkspam = "sc_exploit_collide_off_spam_inradius"
  360.    
  361.     if not SCE_HasToggled[ checkspam ] then
  362.         timer.Create( checkspam, 0.01, 0, function()
  363.             print("ahh")
  364.             for k,v in pairs(ents.FindInSphere( LocalPlayer():GetPos(), tonumber(radius) )) do
  365.                 exploitCollisions( v, "off", true )
  366.             end
  367.         end )
  368.        
  369.         SCE_HasToggled[ checkspam ] = true
  370.     else
  371.         timer.Destroy( checkspam )
  372.         SCE_HasToggled[ checkspam ] = false
  373.     end
  374.     LocalPlayer():ChatPrint("Spamming " .. checkspam .. ": " .. tostring(SCE_HasToggled[ checkspam ]))
  375. end
  376. sce_AddCommand("exploit_collide_Off_spam_InRadius", sce_NocollideRadius, "Shinycow's Exploit: Nocollide every entity in your radius.")
  377.  
  378.     -- TAKEN DIRECTLY FROM OLD CODE. SOWWY ABOUT THAT.
  379. local spamremovelp = false
  380. local function sce_SpamRemoveIgnore()
  381.     if spamremovelp then
  382.         hook.Remove("OnEntityCreated", "lolaidslp")
  383.         timer.Destroy("lolSpamRemove")
  384.         spamremovelp = false
  385.     else
  386.         hook.Add("OnEntityCreated", "lolaidslp", function( ent )
  387.             if LocalPlayer():GetEyeTrace().Entity == ent then ent.ImOwner = true end
  388.         end)
  389.                
  390.         timer.Create("lolSpamRemove", 0.13, 0, function()
  391.             RunConsoleCommand("sc_exploit_remove_Specified", "prop_physics")
  392.             RunConsoleCommand("sc_exploit_remove_Specified", "gmod_lamp")
  393.             RunConsoleCommand("sc_exploit_remove_Specified", "gmod_emitter")
  394.             RunConsoleCommand("sc_exploit_remove_Specified", "npc_")
  395.         end)
  396.        
  397.         spamremovelp = true
  398.     end
  399. end
  400. sce_AddCommand("exploit_remove_spam_IgnoreMe", sce_SpamRemoveIgnore, "Shinycow's Exploit: Spam remove every entity except yours.")
  401.  
  402.     -- TODO
  403. local function sce_NoCollide( p, c, args )
  404.     if args[1] then
  405.         if string.find(string.lower(args[1]), "props") or string.find(string.lower(args[1]), "prop_physics") then
  406.             exploitCollisions( nil, "off", false, "prop_physics" )
  407.            
  408.             return
  409.         end
  410.     end
  411.    
  412.     if IsValid(LocalPlayer():GetEyeTrace().Entity) then
  413.         exploitCollisions( LocalPlayer():GetEyeTrace().Entity, "off", true )
  414.     end
  415. end
  416. sce_AddCommand("exploit_collide_Off", sce_NoCollide, "Shinycow's Exploit: Nocollide what you want bby.")
  417.  
  418. local function sce_Collide( p, c)
  419.     for k,v in pairs(ents.GetAll()) do
  420.         exploitCollisions( v, "on", true )
  421.     end
  422. end
  423. sce_AddCommand("exploit_collide_On", sce_Collide, "Shinycow's Exploit: Collide everything.")
  424.  
  425. local function sce_misc_TAC()
  426.     if RunCheck then
  427.         function RunCheck()
  428.             print("nty TAC.")
  429.         end
  430.         LocalPlayer():ChatPrint("The shitty 'Tyler's Anti Cheat', has been patched.")
  431.     else
  432.         LocalPlayer():ChatPrint("Could not find Tyler's Anti Cheat.")
  433.     end
  434. end
  435. sce_AddCommand("exploit_misc_TAC", sce_misc_TAC, "Shinycow's Exploit: Removes Tyler's Anti Cheat function.")
  436.  
  437.     -- DOESNT BELONG HERE:
  438.    
  439. /*local ps_text =
  440. {
  441. "Shinycow was here.",
  442. "TEAM 1338",
  443. "Shinycow was here.",
  444. "Shinycow is above all.",
  445. "Shinycow is above all.",
  446. "Shinycow likes weiners.",
  447. "420swagYOLO1337ERRYDAY",
  448. "TEAM 1338",
  449. "Shinycow was here.",
  450. "420haxsmokeweedLOLXD"
  451. }
  452. local sce_spam_PS = false
  453. local function sce_misc_PS()
  454.     if not PS then LocalPlayer():ChatPrint("PointShop is not running!") return end
  455.  
  456.     if sce_spam_PS then
  457.         timer.Destroy("lmaoPS")
  458.         sce_spam_PS = false
  459.     else
  460.         timer.Create("lmaoPS", 0.5, 0, function()
  461.             net.Start('PS_ModifyItem')
  462.                 net.WriteString("texthat")
  463.                 net.WriteTable(
  464.                 {
  465.                 text = ps_text[math.random(#ps_text)],
  466.                 color = { r = math.random(90,200), b = math.random(50,255), a = 255, g = math.random(50, 255) }
  467.                 }
  468.                 )
  469.             net.SendToServer()
  470.         end)
  471.        
  472.         sce_spam_PS = true
  473.     end
  474. end
  475. sce_AddCommand("misc_PS", sce_misc_PS, "Shinycow's Exploit: Quickly change pointshop text hat text.")*/
  476.  
  477. local sce_toggle_Crash = false
  478. local function sce_misc_CrashPropkill()
  479.     --if gmod.GetGamemode().Name != "Propkill v2.6" then LocalPlayer():ChatPrint("Propkill v2.6 is not running!") return end
  480.     if not PK and not PK.HudSettings then LocalPlayer():ChatPrint("Propkill v2.6 is not running!") return end
  481.    
  482.     if sce_toggle_Crash then
  483.         hook.Remove("CreateMove", "lmaoPK")
  484.         sce_toggle_Crash = false
  485.     else
  486.         hook.Add("CreateMove", "lmaoPK", function()
  487.             RunConsoleCommand("ulx","addcustomspawn","battler")
  488.         end)
  489.         sce_toggle_Crash = true
  490.     end
  491. end
  492. sce_AddCommand("exploit_misc_PK", sce_misc_CrashPropkill, "Shinycow's Exploit: Toggle crashing Propkill v2.6.")
  493.  
  494.  
  495. local function sce_misc_CrashPropkillSlower()
  496.     --if gmod.GetGamemode().Name != "Propkill v2.6" and gmod.GetGamemode().Name != "Propkill v1337" then LocalPlayer():ChatPrint("Propkill v2.6 is not running!") return end
  497.     if not PK and not PK.HudSettings then LocalPlayer():ChatPrint("Propkill v2.6 is not running!") return end
  498.    
  499.     timer.Create("lmaoPK", 1.4, 0, function()
  500.         RunConsoleCommand("ulx","addcustomspawn","battler")
  501.     end)
  502. end
  503. sce_AddCommand("exploit_misc_PK2", sce_misc_CrashPropkillSlower, "ohai")
  504.  
  505.  
  506.     -- Disables the stunstick flash from getting beaten in DarkRP.
  507. hook.Add("Initialize", "scexploit_misc_DarkRPStunstick", function()
  508.     usermessage.Hook("StunStickFlash", function() end)
  509.     usermessage.Hook("ulx_blind", function() end)
  510. end)
  511.  
  512.  
  513. ------------------------------------- MENU ----------------------------------------
  514.    
  515.         -- Shittily made menu.
  516.     local function SCE_ShowConfigMenu()
  517.         local exploitmenu = vgui.Create("DFrame")
  518.             exploitmenu:SetPos( (ScrW() * 0.5) - 100, (ScrH() * 0.5) - 225 )
  519.             exploitmenu:SetSize( (ScrW() * 0.5) - 250, (ScrH() * 0.5) - 90 )
  520.             exploitmenu:SetTitle( "Exploit menu" )
  521.             exploitmenu:SetVisible( true )
  522.             exploitmenu:SetDraggable( false )
  523.             exploitmenu:ShowCloseButton( true )
  524.             exploitmenu:SetAlpha( 150 )
  525.             exploitmenu:AlphaTo( 255, 6, 1 )
  526.             exploitmenu:MakePopup()
  527.  
  528.                     -- Design coloring taken from DeathZone :3
  529.             function exploitmenu:Paint()
  530.                 surface.SetDrawColor(Color(64, 64, 64, 255))
  531.                 surface.DrawRect(0, 0, self:GetWide(), self:GetTall())
  532.                 surface.SetDrawColor(Color(51, 51, 51, 255))
  533.                 surface.DrawRect(0, 0, self:GetWide(), 22)
  534.             end
  535.            
  536.             local exploitmenutabs = vgui.Create("DPropertySheet", exploitmenu)
  537.             exploitmenutabs:SetPos( 5, 27 )
  538.             exploitmenutabs:SetSize( (ScrW() * 0.5) - 260, (ScrH() * 0.5) - 120 )
  539.  
  540.             local ButtonPanel = vgui.Create("DPanelList", configmenu)
  541.             --ButtonPanel:SetPos( 25, 25 )
  542.             ButtonPanel:SetSize( 395, 320 )
  543.             ButtonPanel:SetSpacing(2)
  544.             ButtonPanel:EnableHorizontal(false)
  545.             ButtonPanel:EnableVerticalScrollbar( true )
  546.                    
  547.  
  548.             local button1 = vgui.Create("DButton")
  549.             button1:SetText("Remove names")
  550.             button1.DoClick = function()
  551.                 RunConsoleCommand("say", "no removing names")
  552.             end
  553.             ButtonPanel:AddItem(button1)
  554.            
  555.             local button2 = vgui.Create("DButton")
  556.             button2:SetText("Remove everything")
  557.             button2.DoClick = function()
  558.                 RunConsoleCommand("say", "no removing everything")
  559.             end
  560.             ButtonPanel:AddItem(button2)
  561.            
  562.             local button3 = vgui.Create("DButton")
  563.             button3:SetText("Remove what you're looking at.")
  564.             button3.DoClick = function()
  565.                 RunConsoleCommand("say", "no removing what ur looking at")
  566.             end
  567.             ButtonPanel:AddItem(button3)
  568.            
  569.  
  570.             exploitmenutabs:AddSheet( "Buttons", ButtonPanel, "icon16/bomb.png", false, false )
  571.            
  572.             --[[local checkbox2 = vgui.Create("DCheckBoxLabel")
  573.             checkbox2:SetValue(0)
  574.             checkbox2:SetText("Remove everything")
  575.             function checkbox2.Button:Toggle()
  576.                 if self:GetChecked() == nil or not self:GetChecked() then
  577.                     self:SetValue( true )
  578.                 else
  579.                     self:SetValue( false )
  580.                 end
  581.             end
  582.             ConfigPanel:AddItem(checkbox2)]]       
  583.        
  584.     end
  585.    
  586.     hook.Add("PlayerBindPress", "sce_ConfigMenu", function( pl, bind, b_Pressed )
  587.         if string.lower(bind) == "impulse 201" then
  588.             SCE_ShowConfigMenu()
  589.         end
  590.     end)
  591.    
  592.  
  593.    
  594.    
  595.  
  596.    
  597. -- 2/15/14 -- lets try something new
  598.  
  599. sce_AddCommand("exploit_remove_weapons_player", function( pl, cmd, arg )
  600.     if not arg[1] then pl:ChatPrint("supply a player name") return end
  601.    
  602.     local target = FindPlayer(arg[1])
  603.     if not target then print("fuk") return end
  604.    
  605.     for k,v in next, ents.GetAll() do
  606.         if string.find(string.lower(tostring(v)), "weapon") then
  607.             if v:GetPos():Distance( target:GetPos() ) < 55 then
  608.                                 net.Start("properties")
  609.                     net.WriteUInt( util.NetworkStringToID( "remove" ), 32 )
  610.                     net.WriteEntity( v )
  611.                 net.SendToServer()
  612.             end
  613.         end
  614.     end
  615. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement