SHARE
TWEET

Untitled

a guest Jan 23rd, 2019 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. struct gameOffsets
  2. {
  3.     DWORD lPlayer = 0xCBD6A4;
  4.     DWORD fJump = 0x5170DF0;
  5.     DWORD flags = 0x104;
  6. }offsets;
  7.  
  8. struct values
  9. {
  10.     DWORD localPlayer;
  11.     DWORD process;
  12.     DWORD gameModule;
  13.     BYTE flag;
  14. }val;
  15.  
  16. int main()
  17. {
  18.     val.process = MemClass.getProcess("csgo.exe");
  19.     val.gameModule = MemClass.getModule(val.process, "client_panorama.dll");
  20.  
  21.     val.localPlayer = MemClass.readMem<DWORD>(val.gameModule + offsets.lPlayer);
  22.  
  23.     if (val.localPlayer == NULL)
  24.         while (val.localPlayer == NULL)
  25.             val.localPlayer = MemClass.readMem<DWORD>(val.gameModule + offsets.lPlayer);
  26.  
  27.     while (true)
  28.     {
  29.         val.flag = MemClass.readMem<BYTE>(val.localPlayer + offsets.flags);
  30.  
  31.         if (GetAsyncKeyState(VK_SPACE) && val.flag & (1 << 0))
  32.         MemClass.writeMem<DWORD>(val.gameModule + offsets.fJump, 6);
  33.  
  34.         Sleep(1);
  35.     }
  36.     return 0;
  37. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top