Source Code Counter Strike Source Simple bhop C++

Hexui Undetected CSGO Cheats Sinkicheat PUBG Cheat

habit

Newbie
Full Member
Oct 30, 2012
28
308
0
UPDATE: DO THIS VIDEO INSTEAD OF USING THIS SOURCE CODE


=============================

VAC- NEVER GONNA BE DETECTED
SERVERS WITH SCRIPT DETECTION - UNDETECTABLE

Requirements: C++ compiler
In Game Console: bind mwheeldown +jump


NOTE - This cheat was created for cs 1.6, but It will work on any game as long as it has a console where u can bind jump to mwheeldown, the only thing you have to play around with is the Sleep() function, as there are differences in between how long the character stays in the air from game to game!

USE: Press Space = ON, Press Space Again : OFF

C++:
//Basic Bhop By Habit
//Pretty sure its gonna be vac proof forever since it doesnt access any memory within the game
#include <iostream>
#include <Windows.h>
using namespace std;


int main(){
    start:

    CONST int scrolldown = -120;
    CONST int scrollup = 120;
    while (true){

        if (GetAsyncKeyState(VK_SPACE))
        {
       
            while (true)
            {               
                    Sleep(20); //play around with this for other games// 20 is best for cs 1.6
                    mouse_event(MOUSEEVENTF_WHEEL, 0, 0, scrolldown, 0); //make sure you have mwheeldown binded to +jump in game
       
           
           
       
                if (GetKeyState(VK_SPACE))
                {
                    goto start;
                }

            }
        }
   
    }





    return 0;
}
2ND VERSION - THIS ONE IS IF YOU PREFER TO HOLD SPACE TO BHOP AND WHEN YOU LET GO OF SPACE IT WILL STOP
//This one is probably better if your into the kreedz scene and trying to make record times on maps :D


Requirements: C++ compiler
In Game Console: bind mwheeldown +jump
In Game Console: unbind space




C++:
//Basic Bhop By Habit
//Pretty sure its gonna be vac proof forever since it doesnt access any memory within the game
//HOLD SPACE TO JUMP
#include <iostream>
#include <Windows.h>
using namespace std;

int main()
{
start:
    const int scrolldown = -120;

    while (true)
    {
        if (GetAsyncKeyState(VK_SPACE))
        {
            Sleep(20);
            mouse_event(MOUSEEVENTF_WHEEL,0,0,scrolldown,0);


        }


        if (GetKeyState(VK_SPACE))
        {
            goto start;
        }




    }











    return 0;
}
 
Last edited by a moderator:

habit

Newbie
Full Member
Oct 30, 2012
28
308
0
NEW VERSION - SHOULD WORK FOR EVERYGAME THAT HAS SPACE AS A DEFAULT JUMP BUTTON
NO NEED TO BIND MOUSEWHEEL ANYMORE!

NOTE-F1 is the toggle on / off key, but you can change it if you like, VK_SPACE will work as a toggle on but not as a toggle off, so if you decide to use VK_SPACE as a toggle you will need to use a different VKey for the toggle off
If by any chance in the game you play, space is not the default button, you can easily change it to a different key by changing VK within the MapVirtualKey() function, and also change the key by changing the BYTE value to whatever value your key is! But highly unlikely because like 95 % of games use space as jump :D

C++:
//Basic Bhop By Habit
//Pretty sure its gonna be vac proof forever since it doesnt access any memory within the game
#include <iostream>
#include <Windows.h>
using namespace std;


int main(){
	start: 

	
	BYTE space = 0x20;
	const int x = 2;
	const int o = 0;
	while (true){

		if (GetAsyncKeyState(VK_F1)) //Change This to whatever key you want except VK_SPACE || you can use VK_SPACE as a toggle on but not off
		{

			while (true){                                   
			
				
				Sleep(20);//play around with this for other games// 20 is best for cs 1.6

				keybd_event(space, MapVirtualKey(VK_SPACE, 0), o, 0);
				keybd_event(space, MapVirtualKey(VK_SPACE, 0), x, 0);
			
			


			if (GetKeyState(VK_F1)) //make sure this VK matches the first one if you want the same key to toggle on and off, but u dont have to
			{
				keybd_event(space, MapVirtualKey(VK_SPACE, 0), x, 0);
				
			                                                                                                                 
				goto start;
			}

		}
	}


}




	return 0;
}
Credit-
stevemk14ebr for the snippet of code that made vk_space as a keybd_event work!
 

ashv

Dank Tier Donator
Feb 24, 2020
2
222
0
NEW VERSION - SHOULD WORK FOR EVERYGAME THAT HAS SPACE AS A DEFAULT JUMP BUTTON
NO NEED TO BIND MOUSEWHEEL ANYMORE!

NOTE-F1 is the toggle on / off key, but you can change it if you like, VK_SPACE will work as a toggle on but not as a toggle off, so if you decide to use VK_SPACE as a toggle you will need to use a different VKey for the toggle off
If by any chance in the game you play, space is not the default button, you can easily change it to a different key by changing VK within the MapVirtualKey() function, and also change the key by changing the BYTE value to whatever value your key is! But highly unlikely because like 95 % of games use space as jump :D

C++:
//Basic Bhop By Habit
//Pretty sure its gonna be vac proof forever since it doesnt access any memory within the game
#include <iostream>
#include <Windows.h>
using namespace std;


int main(){
    start:

   
    BYTE space = 0x20;
    const int x = 2;
    const int o = 0;
    while (true){

        if (GetAsyncKeyState(VK_F1)) //Change This to whatever key you want except VK_SPACE || you can use VK_SPACE as a toggle on but not off
        {

            while (true){                                  
           
               
                Sleep(20);//play around with this for other games// 20 is best for cs 1.6

                keybd_event(space, MapVirtualKey(VK_SPACE, 0), o, 0);
                keybd_event(space, MapVirtualKey(VK_SPACE, 0), x, 0);
           
           


            if (GetKeyState(VK_F1)) //make sure this VK matches the first one if you want the same key to toggle on and off, but u dont have to
            {
                keybd_event(space, MapVirtualKey(VK_SPACE, 0), x, 0);
               
                                                                                                                            
                goto start;
            }

        }
    }


}




    return 0;
}
Credit-
stevemk14ebr for the snippet of code that made vk_space as a keybd_event work!
your code works great i changed sleep 20 to 800.

in game jumps are very nice.

but now i need add this to your code and i don't know how to add that :FailFish:

shift + w hold for 1-2 sec
then press 'Space' (down) 1sec then press
'D' key (down) press 'Space' (Down)
mouse move right
Space (Up) and 'D' key (up)

'A' key (down) press 'Space' (Down)
mouse move right
Space (Up) and 'A' key (up)
 

Rake

I'm not your friend
Administrator
Jan 21, 2014
12,513
78,998
2,419
but now i need add this to your code and i don't know how to add that :FailFish:

shift + w hold for 1-2 sec
then press 'Space' (down) 1sec then press
'D' key (down) press 'Space' (Down)
mouse move right
Space (Up) and 'D' key (up)

'A' key (down) press 'Space' (Down)
mouse move right
Space (Up) and 'A' key (up)
read the documentation

https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-keybd_event
https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-mapvirtualkeya
https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-sendinput
 
  • Like
Reactions: ashv
Attention! Before you post:

Read the How to Ask Questions Guide
99% of questions are answered in the Beginner's Guide, do it before asking a question.

No Hack Requests. Post in the correct section.  Search the forum first. Read the rules.

How to make a good post:

  • Fill out the form correctly
  • Tell us the game name & coding language
  • Post everything we need to know to help you
  • Ask specific questions, be descriptive
  • Post errors, line numbers & screenshots
  • Post code snippets using code tags
  • If it's a large project, zip it up and attach it

If you do not comply, your post may be deleted.  We want to help, please make a good post and we will do our best to help you.

Community Mods