Infam0s
Active member
- Joined
- Apr 2, 2016
- Messages
- 66
- Reaction score
- 0
0x32789 said:this code in c++ s0b freeze my game
Code:void FreezeRotationStart() { DWORD pId; DWORD dwOldProtect = 0; HANDLE pHandle; HWND hWnd = 0; DWORD vpointer = 0; DWORD collflags; BYTE inair; float zero = 0.0; while(hWnd == 0){ hWnd = FindWindow(0, "GTA:SA:MP"); Sleep(100); } GetWindowThreadProcessId(hWnd, &pId); pHandle = OpenProcess(PROCESS_ALL_ACCESS|PROCESS_VM_OPERATION, TRUE, pId); for(;;) { if(FreezeRotation == true) { ReadProcessMemory(pHandle, (LPCVOID)0xBA18FC, &vpointer, 4, 0); if(vpointer >= 1) { collflags = vpointer + 185; ReadProcessMemory(pHandle, (LPCVOID)collflags, &inair, 1, 0); if(inair == false){ WriteProcessMemory(pHandle, (LPVOID)(vpointer + 0x50), (LPVOID)&zero, 4, NULL); WriteProcessMemory(pHandle, (LPVOID)(vpointer + 0x50 + 4), (LPVOID)&zero, 4, NULL); WriteProcessMemory(pHandle, (LPVOID)(vpointer + 0x50 + 8), (LPVOID)&zero, 4, NULL); } } Sleep(10); } } CloseHandle(pHandle); }
Help Appreciated! :computer_guy:
You just copy and pasted it.