Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<Windows.h>
- #include<iostream>
- #include"HackProcess.h"
- CHackProcess fProcess;
- using namespace std;
- const DWORD Player_Base = 0x00A7AFBC;
- const DWORD dw_jump = 0x04AAE0C8;
- const DWORD dw_JumpOffset = 0x34C;
- #define FL_ONGROUND 257
- #define SPACE_BAR 0x20
- #define F6_Key 0x75
- bool b_true = true;
- bool b_false = false;
- bool BunnyHopStatus = false;
- struct MyPlayer_t
- {
- DWORD CLocalPlayer;
- int m_fFlags;
- void ReadInformation()
- {
- ReadProcessMemeory(fProcess.__HandleProcess, (PBYTE*)(fProcess.__dwordClient + Player_Base), &CLocalPlayer, sizeof(DWORD), 0)
- ReadProcessMemeory(fProcess.__HandleProcess, (PBYTE*)(CLocalPlayer + dw_JumpOffset), &m_fFlags sizeof(int), 0)
- }
- }
- }MyPlayer;
- void BunnyHop();
- {
- if (GetAsyncKeyState(SPACE_BAR))
- {
- BunnyHopStatus = !BunnyHopStatus;
- Sleep(250);
- }
- if(!BunnyHopStatus)
- return;
- if (MyPlayer.m_fFlags == FL_ONGROUND)
- {
- WriteProcessMemeory(fProcess.__HandleProcess, (PBYTE*)(fProcess.__dwordClient + dw_jump), &b_true, sizeof(bool), NULL);
- }
- else if (MyPlayer.m_fFlags != FL_ONGROUND)
- {
- WriteProcessMemeory(fProcess.__HandleProcess, (PBYTE*)(fProcess.__dwordClient + dw_jump), &b_false, sizeof(bool), NULL);
- }
- }
- int main();
- {
- fProcess.RunProcess();
- cout << "Game found : BHOP ON..." << endl
- while (!GetAsyncKeyState(F6_Key));
- {
- MyPlayer.ReadInformation();
- //BunnyHop();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement