Bhop Scripts

Posts 115 of 18 · Page 1 of 2
Bhop Scripts
I'm looking for a Server Side Bhop Script for my server can anyone help me out?
Here's a (shitty)bhop for client, not pretty but it does the job. You should be able to figure out how to convert so it works correctly serverside.
Code:
local bhop = false
hook.Add("Think", "bhop", function()
if bhop then
     if (input.IsKeyDown( KEY_SPACE ) ) then
        if LocalPlayer():IsOnGround() then
            RunConsoleCommand("+jump")
            HasJumped = 1
        else
            RunConsoleCommand("-jump")
            HasJumped = 0
        end
    elseif bhop and LocalPlayer():IsOnGround() then
        if HasJumped == 1 then
            RunConsoleCommand("-jump")
            HasJumped = 0
        end
    end
end
end)

concommand.Add("bhop", function()
if bhop then
    bhop = !bhop
    LocalPlayer():ChatPrint("BHop turned OFF")
else
    bhop = !bhop
    LocalPlayer():ChatPrint("BHop turned ON")
end
end)
Quote Originally Posted by Defender2010 View Post
Here's a (shitty)bhop for client, not pretty but it does the job. You should be able to figure out how to convert so it works correctly serverside.
Code:
local bhop = false
hook.Add("Think", "bhop", function()
if bhop then
     if (input.IsKeyDown( KEY_SPACE ) ) then
        if LocalPlayer():IsOnGround() then
            RunConsoleCommand("+jump")
            HasJumped = 1
        else
            RunConsoleCommand("-jump")
            HasJumped = 0
        end
    elseif bhop and LocalPlayer():IsOnGround() then
        if HasJumped == 1 then
            RunConsoleCommand("-jump")
            HasJumped = 0
        end
    end
end
end)

concommand.Add("bhop", function()
if bhop then
    bhop = !bhop
    LocalPlayer():ChatPrint("BHop turned OFF")
else
    bhop = !bhop
    LocalPlayer():ChatPrint("BHop turned ON")
end
end)
i dont know lua
Just make a file called cl_bunnyhop.lua in your gamemodes folder
then put that code in it
then go into ur cl_init.lua file
and type
include("cl_bunnyhop.lua")
that should be it I think
Quote Originally Posted by Trollaux View Post
Just make a file called cl_bunnyhop.lua in your gamemodes folder
then put that code in it
then go into ur cl_init.lua file
and type
include("cl_bunnyhop.lua")
that should be it I think
i just need a server side script that when someone says !bhop it says bhop on or off and it works
cause isnt input. and LocalPlayer() dont work in mp?
and how do you have gf in your post my gif dosnt work
Quote Originally Posted by Trollaux View Post
Just make a file called cl_bunnyhop.lua in your gamemodes folder
then put that code in it
then go into ur cl_init.lua file
and type
include("cl_bunnyhop.lua")
that should be it I think
[๖ۣۜoClan|2|STEAM_0:0:43481051] Lua Error:
Couldn't include file 'cl_bunnyhop.lua' (File not found) (@gamemodes/bhop/gamemode/cl_init.lua (line 17))
Quote Originally Posted by Matt0722 View Post
[๖ۣۜoClan|2|STEAM_0:0:43481051] Lua Error:
Couldn't include file 'cl_bunnyhop.lua' (File not found) (@gamemodes/bhop/gamemode/cl_init.lua (line 17))
is your cl_bunnyhop.lua in the same folder?
Quote Originally Posted by Trollaux View Post


is your cl_bunnyhop.lua in the same folder?
yea its in C:\Gmod\garrysmod\gamemodes\bhop\gamemode\cl_bunny hop.lua
thats my gmod server
/Bumping post
Couldn't include file 'cl_bunnyhop.lua' (File not found) (@gamemodes/bhop/gamemode/cl_init.lua (line 17))
Is it supposed to be 'cl_bunny hop.lua' or 'cl_bunnyhop.lua'?
Quote Originally Posted by GigglesFTW View Post
Is it supposed to be 'cl_bunny hop.lua' or 'cl_bunnyhop.lua'?
include( 'shared.lua' )
include( 'bhop_hud.lua' )
include( 'cl_scoreboard.lua' )
include( 'cl_spectator.lua' )
include( 'cl_map_ending.lua' )
include( 'cl_diff_menu.lua' )
include( 'cl_voice.lua' )
include( 'cl_vgui_functions.lua' )
include( 'sh_bhop_ranks.lua' )
include( 'bunnyhop.lua' )
include( 'cl_leaderboards.lua' )
include("cl_bunnyhop.lua")
see i also tryed include( 'cl_bunnyhop.lua' )
in the init.lua put AddCSLuaFile('cl_bunnyhop.lua')
Quote Originally Posted by tehhkp View Post
in the init.lua put AddCSLuaFile('cl_bunnyhop.lua')
i remove the include("cl_bunnyhop.lua") from cl_init.lua and added AddCSLuaFile('cl_bunnyhop.lua') in init.lua
Masm32? but this is for lua?
Posts 115 of 18 · Page 1 of 2

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?