Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <Windows.h>
- #include <iostream>
- DWORD clientdll, enginedll;
- int oLocalPlayer = 0xAA8FBC;
- int flagsoffset = 0x100;
- int oEntityList = 0x4A85414;
- int jumpoffset = 0x4F1C3A4;
- int oAttack = 0x2EC77C0;
- int oClientState = 0x59E21C;
- int oCrossHairID = 0xB2B4;
- int oTeam = 0x000000F0;
- int oHealth = 0x000000FC;
- void main() {
- while(!clientdll)
- clientdll = (DWORD)GetModuleHandleA("client.dll");
- while (!enginedll)
- enginedll = (DWORD)GetModuleHandleA("engine.dll");
- while (true)
- {
- int ClientState = *(int*)(enginedll + oClientState);
- if (ClientState + 0x100 == 2) //Check if you are ingame
- {
- int LocalPlayer = *(int*)(clientdll + oLocalPlayer);
- int flags = *(int*)(LocalPlayer + flagsoffset);
- if (flags == 257 && GetAsyncKeyState(VK_SPACE) & 0x8000)
- *(int*)(clientdll + jumpoffset) = 6;
- }
- };
- };
- bool __stdcall DllMain(HINSTANCE hInstance, DWORD dwReason, LPVOID lpReserved)
- {
- if (dwReason == DLL_PROCESS_ATTACH)
- {
- Beep(750, 100);
- DisableThreadLibraryCalls(hInstance);
- CreateThread(nullptr, 0, (LPTHREAD_START_ROUTINE)main, hInstance, 0, nullptr);
- };
- return true;
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement