Advertisement
RazerXJosh18

TESTMODE12334567890

Jul 16th, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  1. //1345467890-098765432134567897654
  2. #include <Windows.h>
  3.  
  4.  
  5. void testfly()
  6. {
  7. DWORD CShell = (DWORD)GetModuleHandleA("CShell.dll");
  8. DWORD pPlayerClient = *(DWORD *)(CShell + 0x1169768);
  9. *(DWORD*)(pPlayerClient + 0xBEA) = 257; /// Jump SPace
  10. *(DWORD*)(pPlayerClient + 0x624) = 1;
  11. DWORD offset1 = (DWORD)(pPlayerClient + 0x4C4);
  12. DWORD valuefly = (DWORD)(offset1 + 0x154);
  13. if (valuefly = 0)
  14. {
  15. *(DWORD*)(pPlayerClient + 0x628) = 768; //for jump higher
  16. }
  17.  
  18. }
  19.  
  20. bool IsGameReadyForHook()
  21. {
  22. if (GetModuleHandleA("CShell.dll") != NULL && GetModuleHandleA("ClientFx.fxd") != NULL)
  23. return true;
  24. return false;
  25. }
  26.  
  27. void Engine()
  28. {
  29. while (!IsGameReadyForHook()) {
  30. Sleep(200);
  31. }
  32. while (true)
  33. {
  34. testfly();
  35. }
  36.  
  37. }
  38.  
  39. extern "C" __declspec(dllexport) BOOL WINAPI DllMain(HMODULE hDLL, DWORD dwReason, LPVOID lpvRe)
  40. {
  41.  
  42. switch (dwReason)
  43. {
  44. case DLL_PROCESS_ATTACH:
  45. DisableThreadLibraryCalls(hDLL);
  46. CreateThread(0, 0, (LPTHREAD_START_ROUTINE)Engine, 0, 0, 0);
  47. break;
  48. case DLL_PROCESS_DETACH:
  49. break;
  50. }
  51.  
  52. return true;
  53. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement