

function gmodplaya_aimbot()
concommand.Add("print gmodplaya the aimbot is activated!!", "on", 1 , 0)
ply = LocalPlayer()
trace = util.GetPlayerTrace( ply )
traceRes = util.TraceLine( trace )
if traceRes.HitNonWorld then
local target = traceRes.Entity
if target:IsPlayer() then
local targethead = target:LookupBone("ValveBiped.Bip01_Head1")
local targetheadpos,targetheadang = target:GetBonePosition(targethead)
ply:SetEyeAngles((targetheadpos - ply:GetShootPos()):Angle())
end
end
end
hook.Add("Think","gmodplayaaimbot",aimbot)

