How to make an aimbot ignore certain players [lua]
I play on a server and i'm trying to find a good lua aimbot. I though maybe i could piece together a few to make it work like I want. I want to know how to make it so that the aimbot ignores certain players. The reason is because the server i'm playing on has a bot that fly's around everyone and it detects if people have aimbot. I want to ignore it.
Lua
hook.Add( "Think", "NoSuspciousHookHere", function()
if LocalPlayer():IsTyping() or gui.IsConsoleVisible() then return end
local ply = LocalPlayer()
// Aimbot
if !nextChange or nextChange < CurTime() then
if input.IsKeyDown( KEY_B ) and !input.IsKeyDown( KEY_LALT ) then
nextChange = CurTime() + 0.25
if target and aimbot then
target = nil
aimbot = false
else
for k, v in pairs( ents.FindInSphere( ply:GetEyeTrace().HitPos, 500 ) ) do
if v:IsPlayer() and v:Alive() then
if IsValid(target) then
if target:GetPos():Distance(ply:GetEyeTrace().HitPos) > v:GetPos():Distance(ply:GetEyeTrace().HitPos) then
target = v
end
else
target = v
end
end
end
if target then
aimbot = true
end
end
end
end
if target and IsValid(target) and aimbot then
if target and IsValid(target) and target:IsPlayer() and target:LookupBone("ValveBiped.Bip01_Head1") then
ply:SetEyeAngles( (target:GetBonePosition(target:LookupBone("ValveBi ped.Bip01_Head1"))-ply:GetShootPos()):Angle() )
end
end
// Flashlight Spam
if input.IsKeyDown( KEY_F ) and input.IsKeyDown( KEY_LALT ) then
-- I feel this does something...
for i = 1, 100 do
RunConsoleCommand( "impulse", "100" )
end
end
// Derp aimbots.
if input.IsKeyDown( KEY_B ) and input.IsKeyDown( KEY_LALT ) then
target = player.GetAll()[math.random(1,#player.GetAll())]
if target and IsValid(target) and target:IsPlayer() and target:LookupBone("ValveBiped.Bip01_Head1") then
ply:SetEyeAngles( (target:GetBonePosition(target:LookupBone("ValveBi ped.Bip01_Head1"))-ply:GetShootPos()):Angle() )
end
end
// Auto shoot.
if input.IsKeyDown( KEY_LSHIFT ) and input.IsKeyDown( KEY_LALT ) then
RunConsoleCommand( "+attack" )
timer.Simple(0.0001,function()
RunConsoleCommand( "-attack" )
end)
end
// Bunnyhop.
if input.IsKeyDown( KEY_SPACE ) then
if LocalPlayer():IsOnGround() then
RunConsoleCommand( "+jump" )
timer.Simple( 0.00001, function()
RunConsoleCommand( "-jump" )
end)
end
if input.IsKeyDown( KEY_E ) then
RunConsoleCommand( "+left" )
else
RunConsoleCommand( "-left" )
end
else
RunConsoleCommand( "-left" )
end
end)
this is not mine but someone else's.
If anyone knows how please tell me.
Also I would like it if someone told me how to make it so that the aimbot doesn't aim at people behind walls I cant shoot through.
Another thing with this aimbot is that when i'm aiming above there heads it doesn't lock on.
If you are gonna Paste, Atleast use a lua Cheat with Those features Instead...
I've been looking for one but i could only find broken ones or ones that are C++. If you know a good lua aimbot please tell me it. I only want aimbot nothing else.