Gmod Silent Aimbot
#1
local ang;
chat.AddText( Color( 0, 0, 255), "Xlag's Silent Aimbot")
chat.AddText( Color( 0, 255, 0), "Hold F To Use The Silent Aimbot")
hook.Add("CreateMove", "", function(ucmd)
if(!ang) then ang = ucmd:GetViewAngles(); end
ang = ang + Angle(ucmd:GetMouseY() * .023, ucmd:GetMouseX() * -.023, 0);
ang.x = math.NormalizeAngle(ang.x);
ang.p = math.Clamp(ang.p, -89, 89);
if(ucmd:CommandNumber() == 0) then
ucmd:SetViewAngles(ang);
return;
end
local target = nil
hook.Add("Think","",function()
if not input.IsKeyDown(KEY_F) then return end
target = nil
local ply = LocalPlayer()
for k,v in next, player.GetAll() do
if ( v == ply ) or ( not v:IsValid() ) or ( v:IsDormant() ) or ( v:Team() == TEAM_SPECTATOR ) or ( v:Health() < 1 ) or ( not v:Alive() ) then
continue 
end
local Visible = { start = ply:GetShootPos(), endpos = v:GetAttachment(v:LookupAttachment("forward")).Pos, filter = {ply,v}, mask = MASK_SHOT}
local tr = util.TraceLine(Visible)
if tr.Fraction == 1 then
target = v
end
end
if ( target != nil ) then
local GetPosition = (target:GetAttachment(target:LookupAttachment("forward")).Pos - ply:GetShootPos()):Angle()
ply:SetEyeAngles(GetPosition)
RunConsoleCommand("+attack")
timer.Simple(0.1, function() 
RunConsoleCommand("-attack")
end)
end
end)
end);

If Signature = True Then

Signature = "Release Shit To The Skids And Community"

ElseIf Signature = False Then

Application.Terminate()

End if


Reply
#2
Code:
Put [hide] in the front then [/hide] in the end of the text please



[Image: ToleratedNine.jpg]
Reply
#3
where would we put this?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)