So here is the issue. Got this auto bhop thing. It dont work. I have no idea why. Ty In advance </3
[CODE]if CLIENT then
hook.Add("CreateMove", "BHop", function(ucmd)
local ply = LocalPlayer()
if LocalPlayer():GetNWInt("bhop") == 1 and IsValid(ply) and bit.band(ucmd:GetButtons(), IN_DUCK) > 0 then
if ply:OnGround() then
ucmd:SetButtons( bit.bor(ucmd:GetButtons(), IN_JUMP) )
end
end
end)
end
function ulx.bhop(calling_ply, target_ply,bool)
target_ply:SetNWInt("bhop",bool)
ulx.fancyLogAdmin( calling_ply, "#A set bhop mode for #T to #s", target_ply,bool)
end
local bhop = ulx.command("Extended", "ulx bhop", ulx.bhop, "!bhop",true)
bhop:addParam{ type=ULib.cmds.PlayerArg }
bhop:addParam{ type=ULib.cmds.NumArg, hint="1 to enable", min=0,max=1 }
bhop:defaultAccess( ULib.ACCESS_ADMIN )
bhop:help( "set bhop for a player." )
[/CODE]
Edit:----
Fixed. ty anyway
Sorry, you need to Log In to post a reply to this thread.