Advertisement
Hydrox

Untitled

May 30th, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.13 KB | None | 0 0
  1. #include <Windows.h>
  2. #include <iostream>
  3.  
  4. DWORD clientdll, enginedll;
  5.  
  6.  
  7. int oLocalPlayer = 0xAA8FBC;
  8. int flagsoffset = 0x100;
  9. int oEntityList = 0x4A85414;
  10. int jumpoffset = 0x4F1C3A4;
  11. int oAttack = 0x2EC77C0;
  12. int oClientState = 0x59E21C;
  13.  
  14. int oCrossHairID = 0xB2B4;
  15. int oTeam = 0x000000F0;
  16. int oHealth = 0x000000FC;
  17.  
  18.  
  19. void main() {
  20. while(!clientdll)
  21. clientdll = (DWORD)GetModuleHandleA("client.dll");
  22. while (!enginedll)
  23. enginedll = (DWORD)GetModuleHandleA("engine.dll");
  24.  
  25. while (true)
  26. {
  27. int ClientState = *(int*)(enginedll + oClientState);
  28. if (ClientState + 0x100 == 2) //Check if you are ingame
  29. {
  30. int LocalPlayer = *(int*)(clientdll + oLocalPlayer);
  31. int flags = *(int*)(LocalPlayer + flagsoffset);
  32.  
  33. if (flags == 257 && GetAsyncKeyState(VK_SPACE) & 0x8000)
  34. *(int*)(clientdll + jumpoffset) = 6;
  35. }
  36. };
  37. };
  38.  
  39. bool __stdcall DllMain(HINSTANCE hInstance, DWORD dwReason, LPVOID lpReserved)
  40. {
  41. if (dwReason == DLL_PROCESS_ATTACH)
  42. {
  43. Beep(750, 100);
  44. DisableThreadLibraryCalls(hInstance);
  45. CreateThread(nullptr, 0, (LPTHREAD_START_ROUTINE)main, hInstance, 0, nullptr);
  46. };
  47. return true;
  48. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement