HelpC++ Bunny Hope

Posts 1–6 of 6 · Page 1 of 1
C++ Bunny Hope
so recently i decided to start making hacks for cs go , so i started with bunny hope , i made my own code but he problem is that while i am pressing space bar he jump only one time and he stop if some one can point me to my error i will be thankfull
here is the section of the source code where it cosing problem




Code:
while(true){

		  while(GetAsyncKeyState(0x20) > 0)
				 {								       				 		
		    int jump   = 5;
            int unjump = 4;
			 WriteProcessMemory(csProcess,(LPVOID)(procadr + instrjump),&jump,(DWORD)sizeof(int),0); #procadr is csgo client base adress
		     Sleep(20);			 
	         WriteProcessMemory(csProcess,(LPVOID)(procadr + instrjump),&unjump,(DWORD)sizeof(int),0);	
				 
		
		  }
		}
Code:
void BupHask()
{
	CLocalPlayer* pLocal = new CLocalPlayer();
	pLocal->Read();

	if (GetAsyncKeyState(0x20) && pLocal->flags == 257) 
	{
		Mem.WriteInt(dwClient + dwForceJump, 5);
	} else {
		Mem.WriteInt(dwClient + dwForceJump, 4);
	}
}
tnk's man i will try it and feedback as fast as possible

- - - Updated - - -

Quote Originally Posted by Hacker Fail View Post
Code:
void BupHask()
{
	CLocalPlayer* pLocal = new CLocalPlayer();
	pLocal->Read();

	if (GetAsyncKeyState(0x20) && pLocal->flags == 257) 
	{
		Mem.WriteInt(dwClient + dwForceJump, 5);
	} else {
		Mem.WriteInt(dwClient + dwForceJump, 4);
	}
}
worked like charme thx man , my mistake was i should of use " if " instead of while and checking for the flagstatus "if (GetAsyncKeyState(0x20) &&pLocal->flags == 257) "
/Moved to the correct section.
Quote Originally Posted by Hunter View Post
/Moved to the correct section.
This thread need to be closed i already fixed the problem with the help of HackerFly , thx again
/Solved & closed.
Posts 1–6 of 6 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Talk with us