Di ajar ngoprek C++
GAME HACKING #include <windows.h> #include <iostream> using namespace std; int main() { LONG address = 0x400589C0;//rhog ammo for haloce in bloodgulch int newvalue = 999; //value to send to game HWND hwnd; HANDLE phandle; DWORD pid; hwnd = FindWindow(NULL, "Halo"); //what window to find if (hwnd != 0) { cout << "HaloCE is running . Press enter to hack it.";//just a option SetWindowText(NULL,"HaloCE Hack"); //name of program window GetWindowThreadProcessId(hwnd, &pid); phandle = OpenProcess(PROCESS_ALL_ACCESS, 0, pid); cin.get(); } else { cout << "Open HaloCE"; //shows if game is not running cin.get(); return 0; } if (phandle != 0) { WriteProcessMemory(phandle, (LPVOID)address, (LPVOID) &newvalue, 4, 0); cout << "Done";//says done if it worked cin.get(); } else { cout << "Failed"; //if it did...