Code:
-- prohack made by pro coder ok cool
-- this is SethHeraMultiPlayerGameHack v1
local AimBot = CreateClientConVar( "aimbot_enabled", 0, true, false )
function aimbot() -- Starting the function
local ply = LocalPlayer() -- Getting ourselves
local trace = util.GetPlayerTrace( ply ) -- Player Trace part. 1
local traceRes = util.TraceLine( trace ) -- Player Trace part. 2
if traceRes.HitNonWorld then -- If the aimbot aims at something that isn't the map..
local target = traceRes.Entity -- It's obviously an entity.
if target:IsPlayer() then -- But it must be a player.
local targethead = target:LookupBone("ValveBiped.Bip01_Head1") -- In this aimbot we only aim for the head.
local targetheadpos,targetheadang = target:GetBonePosition(targethead) -- Get the position/angle of the head.
if AimBot:GetBool() then
ply:SetEyeAngles((targetheadpos - ply:GetShootPos()):Angle()) -- And finally, we snap our aim to the head of the target.
end
end
end
end
hook.Add("Think","aimbot",aimbot) -- The hook will spam "aimbot" until it finds a target..
local WallHack = CreateClientConVar( "wallhack_enabled", 0, true, false )
hook.Add( "HUDPaint", "Wallhack", function()
for k,v in pairs ( player.GetAll() ) do
local Position = ( v:GetPos() + Vector( 0,0,80 ) ):ToScreen()
local Name = ""
if v == LocalPlayer() then Name = "" else Name = v:Name() end
if WallHack:GetBool() then
draw.DrawText( Name, "Default", Position.x, Position.y, Color( 255, 255, 255, 255 ), 1 )
end
end
end )
local shouldDraw = true
local hzCross = CreateClientConVar("HZ_Crosshair","0",false)
function Crosshair1()
if hzCross:GetBool() then
surface.SetDrawColor(team.GetColor(LocalPlayer():Team()))
surface.DrawLine(ScrW() / 2 - 10, ScrH() / 2, ScrW() / 2 + 11 , ScrH() / 2)
surface.DrawLine(ScrW() / 2 - 0, ScrH() / 2 - 10, ScrW() / 2 - 0 , ScrH() / 2 + 11)
end
end
hook.Add("HUDPaint","CustomCross",Crosshair1)
local NoRecoil = CreateClientConVar( "norecoil_enabled", 0, true, false )
local NoSpread = CreateClientConVar( "nospread_enabled", 0, true, false )
local TriggerBot = CreateClientConVar( "triggerbot_enabled", 0, true, false )
hook.Add( "Think", "Triggerbot", function()
local Target = LocalPlayer():GetEyeTrace().Entity
if NoRecoil:GetBool() then
LocalPlayer():GetActiveWeapon().Primary.Recoil = 0
end
if NoSpread:GetBool() then
LocalPlayer():GetActiveWeapon().Primary.Spread = 0
LocalPlayer():GetActiveWeapon().Primary.Cone = 0
end
if TriggerBot:GetInt() == 1 and LocalPlayer():Alive() and LocalPlayer():GetActiveWeapon():IsValid() and ( Target:IsPlayer() or Target:IsNPC() ) then
if !Firing then
RunConsoleCommand( "+attack" )
//LocalPlayer():GetActiveWeapon().SetNextPrimaryFire( LocalPlayer():GetActiveWeapon() )
Firing = true
else
RunConsoleCommand( "-attack" )
Firing = false
end
end
end )
function fPrintSomething( player, command, arguments )
local DermaPanel = vgui.Create( "DFrame" )
DermaPanel:SetPos( 50,50 )
DermaPanel:SetSize( 250, 300 )
DermaPanel:SetTitle( "Testing Derma Stuff" )
DermaPanel:SetVisible( true )
DermaPanel:SetDraggable( true )
DermaPanel:ShowCloseButton( true )
DermaPanel:MakePopup()
local SomeCollapsibleCategory = vgui.Create("DCollapsibleCategory", DermaPanel)
SomeCollapsibleCategory:SetPos( 25,50 )
SomeCollapsibleCategory:SetSize( 200, 50 ) -- Keep the second number at 50
SomeCollapsibleCategory:SetExpanded( 0 ) -- Expanded when popped up
SomeCollapsibleCategory:SetLabel( "Pro Hax MultiPlayerGameHack" )
CategoryList = vgui.Create( "DPanelList" )
CategoryList:SetAutoSize( true )
CategoryList:SetSpacing( 5 )
CategoryList:EnableHorizontal( false )
CategoryList:EnableVerticalScrollbar( true )
SomeCollapsibleCategory:SetContents( CategoryList ) -- Add our list above us as the contents of the collapsible category
local CategoryContentOne = vgui.Create( "DCheckBoxLabel" )
CategoryContentOne:SetText( "Aim Bot" )
CategoryContentOne:SetConVar( "aimbot_enabled" )
CategoryContentOne:SetValue( 1 )
CategoryContentOne:SizeToContents()
CategoryList:AddItem( CategoryContentOne ) -- Add the above item to our list
local CategoryContentTwo = vgui.Create( "DCheckBoxLabel" )
CategoryContentTwo:SetText( "Wall Hack" )
CategoryContentTwo:SetConVar( "wallhack_enabled" )
CategoryContentTwo:SetValue( 1 )
CategoryContentTwo:SizeToContents()
CategoryList:AddItem( CategoryContentTwo )
local CategoryContentThree = vgui.Create( "DCheckBoxLabel" )
CategoryContentThree:SetText( "Trigger Bot" )
CategoryContentThree:SetConVar( "triggerbot_enabled" )
CategoryContentThree:SetValue( 1 )
CategoryContentThree:SizeToContents()
CategoryList:AddItem( CategoryContentThree )
local CategoryContentFour = vgui.Create( "DCheckBoxLabel" )
CategoryContentFour:SetText( "Cross Hair" )
CategoryContentFour:SetConVar( "HZ_Crosshair" )
CategoryContentFour:SetValue( 1 )
CategoryContentFour:SizeToContents()
CategoryList:AddItem( CategoryContentFour )
local CategoryContentFour2 = vgui.Create( "DCheckBoxLabel" )
CategoryContentFour2:SetText( "No Recoil" )
CategoryContentFour2:SetConVar( "norecoil_enabled" )
CategoryContentFour2:SetValue( 1 )
CategoryContentFour2:SizeToContents()
CategoryList:AddItem( CategoryContentFour2 )
local CategoryContentFour3 = vgui.Create( "DCheckBoxLabel" )
CategoryContentFour3:SetText( "No Spread" )
CategoryContentFour3:SetConVar( "nospread_enabled" )
CategoryContentFour3:SetValue( 1 )
CategoryContentFour3:SizeToContents()
CategoryList:AddItem( CategoryContentFour3 )
end
concommand.Add( "prohax_menu", fPrintSomething )