• GMOD Auto-hop script help
    10 replies, posted
Hey I just started a bhop server and I cant find a working auto-jump script anywhere. (where you hold space and it autojumps) I was just wondering if anyone can help me and give me a script. -Thanks
[code] local bhopEnabled = CreateClientConVar("bhop_enabled", 0, true, false) hook.Add("CreateMove", "bhopYo", function(ucmd) if !bhopEnabled:GetBool() then return end if ucmd:KeyDown(IN_JUMP) and IsValid(LocalPlayer()) and LocalPlayer():GetMoveType() != MOVETYPE_NOCLIP and LocalPlayer():Alive() then local buttons = ucmd:GetButtons() if !LocalPlayer():IsOnGround() then buttons = bit.band(buttons, bit.bnot(IN_JUMP)) end ucmd:SetButtons(buttons) end end) [/code]
You should try google before asking.
Thank you :) [editline]9th May 2014[/editline] [QUOTE=SarahKerrigan;44761712]You should try google before asking.[/QUOTE] "and I cant find a working auto-jump script anywhere" I have googled it.
You clearly didn't. [url]http://lmgtfy.com/?q=Garrys+Mod+Double+jump+script[/url] [highlight](User was banned for this post ("Don't be an asshole / LMGTFY link" - Swebonny))[/highlight]
[QUOTE=SarahKerrigan;44762039]You clearly didn't. [url]http://lmgtfy.com/?q=Garrys+Mod+Double+jump+script[/url][/QUOTE] Well I did... and I didnt want a double jump script...
fuuuuk my bad. Sry :=)
[QUOTE=Goz3rr;44761658][code] local bhopEnabled = CreateClientConVar("bhop_enabled", 0, true, false) hook.Add("CreateMove", "bhopYo", function(ucmd) if !bhopEnabled:GetBool() then return end if ucmd:KeyDown(IN_JUMP) and IsValid(LocalPlayer()) and LocalPlayer():GetMoveType() != MOVETYPE_NOCLIP and LocalPlayer():Alive() then local buttons = ucmd:GetButtons() if !LocalPlayer():IsOnGround() then buttons = bit.band(buttons, bit.bnot(IN_JUMP)) end ucmd:SetButtons(buttons) end end) [/code][/QUOTE] Thank you! But is there a way to make it so people don't have to activate it themselves?
[code]local bhopEnabled = CreateClientConVar("bhop_enabled", 1, true, false)[/code]
[QUOTE=Frisky1;44762533]Thank you! But is there a way to make it so people don't have to activate it themselves?[/QUOTE] [CODE] hook.Add("CreateMove", "bhopYo", function(ucmd) if ucmd:KeyDown(IN_JUMP) and IsValid(LocalPlayer()) and LocalPlayer():GetMoveType() != MOVETYPE_NOCLIP and LocalPlayer():Alive() then local buttons = ucmd:GetButtons() if !LocalPlayer():IsOnGround() then buttons = bit.band(buttons, bit.bnot(IN_JUMP)) end ucmd:SetButtons(buttons) end end) [/CODE]
[QUOTE=AnonTakesOver;44762546][CODE] hook.Add("CreateMove", "bhopYo", function(ucmd) if ucmd:KeyDown(IN_JUMP) and IsValid(LocalPlayer()) and LocalPlayer():GetMoveType() != MOVETYPE_NOCLIP and LocalPlayer():Alive() then local buttons = ucmd:GetButtons() if !LocalPlayer():IsOnGround() then buttons = bit.band(buttons, bit.bnot(IN_JUMP)) end ucmd:SetButtons(buttons) end end) [/CODE][/QUOTE] Thank you !!!!!!!! - Sorry if this is trouble but how can I make so when people do /r or !r it restarts there bhop time and spawns them at the start?
Sorry, you need to Log In to post a reply to this thread.