Bartender (01-28-2018)
A1 fukn AntiAfk BCode:afk = false Left= false function aids() if afk then Left = true RunConsoleCommand('+moveleft') LocalPlayer():SetEyeAngles(Vector(math.random(0,360),math.random(0,360),math.random(0,360)):Angle()) else if Left == true then Left = false RunConsoleCommand('-moveleft') else end end end hook.Add('HUDPaint','AntiAfk',aids) concommand.Add('afk',function() if afk == true then afk = false else afk = true end end)
Bartender (01-28-2018)
Very nice. Not to hijack, figured I would throw what I made just out of what I saw in yours. I liked the random looking around.
Code:local boolfuq = boolfuq or false local boolmv = boolmv or false local randomizeme = randomizeme or tostring(math.Truncate(math.random(11111,999999),0)) local delayone = 0 concommand.Add("fuq_yuafk", function( ply, cmd, args ) boolfuq = !boolfuq if boolfuq then print("WE HAVE GONE AFK") hook.Add("Think", randomizeme, function() if CurTime() < delayone then return end delayone = CurTime() + 9.99 boolmv = !boolmv ply:SetEyeAngles(Angle(math.random(0,360),math.random(0,360),math.random(0,360))) --bueno sir if boolmv then RunConsoleCommand("+left");RunConsoleCommand("+forward") timer.Simple(0.5,function() RunConsoleCommand("-left");RunConsoleCommand("-forward") end) else RunConsoleCommand("+right");RunConsoleCommand("+back") timer.Simple(0.5,function() RunConsoleCommand("-right");RunConsoleCommand("-back") end) end end) else print("WE BAQ") hook.Remove("Think", randomizeme) end end )
Last edited by Bartender; 01-28-2018 at 12:37 AM.
"You don't bite the one who serves you"
14126 (01-30-2018)
Looks like some decent code. Very simple, but indeed i'm sure it will work.
Last edited by nmdforlife; 02-03-2018 at 06:33 PM.
cmd:SetForwardMove(450);
cmd:SetSideMove(450);
would probably be better when making something like this.
Thanks, stops me from being kicked while idling next to money printers on DARKRP