Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <Windows.h>
- DWORD clientdll, enginedll;
- int localplayeroffset = 0xAAD704;
- int flagsoffset = 0x100;
- int jumpoffset = 0x4F6746C;
- void main() { //Hier kommt dann der hackie stuff rein
- clientdll = (DWORD)GetModuleHandleA("client.dll");
- enginedll = (DWORD)GetModuleHandleA("engine.dll");
- while (true)
- {
- int localplayer = *(int*)(clientdll + localplayeroffset);
- int flags = *(int*)(localplayer + flagsoffset);
- if (flags == 256) // bedeuted wenn wir in der luft sind
- MessageBoxA(NULL, "test", NULL, NULL);
- }
- }
- //DllMain wird gecallt wenn die dll injected wird
- bool __stdcall DllMain(HINSTANCE hInstance, DWORD dwReason, LPVOID lpReserved)
- {
- if (dwReason == DLL_PROCESS_ATTACH) // Wenn der cheat attacht wird wird "main()" ausgeführt
- {
- Beep(750, 100); //Beep geräusch wenn wir injecten
- DisableThreadLibraryCalls(hInstance);
- CreateThread(nullptr, 0, (LPTHREAD_START_ROUTINE)main, hInstance, 0, nullptr);
- }
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement