Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- #include <windows.h>
- #include <iostream>
- #include "HackProcess.h"
- #define SPACE_BAR 0x20
- #define F6_Key 0x75
- CHackProcess fProcess;
- using namespace std;
- const DWORD r_drawothermodels = 0x53C270;
- bool WHStatus = false;
- int wh_int = 2;
- void Wallhack();
- int main()
- {
- fProcess.RunProcess();
- cout << "Found game! Starting hack..." << endl;
- while(!GetAsyncKeyState(F6_Key))
- {
- Wallhack();
- }
- return 0;
- }
- void Wallhack()
- {
- if(GetAsyncKeyState(SPACE_BAR))
- {
- WHStatus = !WHStatus;
- Sleep(250);
- }
- if(!WHStatus)
- return;
- WriteProcessMemory(fProcess.__HandleProcess,(PBYTE*)(fProcess.__dwordClient + r_drawothermodels), &wh_int,sizeof(INT),NULL);
- if (wh_int == 1) wh_int = 2;
- if (wh_int == 2) wh_int = 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement