1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
|
cout << "press F3 to add 750 points\n";
system("pause");
// I want it to reset back to here
while (true)
{
if (GetAsyncKeyState(VK_F3))
{
DWORD oldProtect;
DWORD value = 0;
VirtualProtect((LPVOID)0x018EF124, 4, PAGE_READWRITE, &oldProtect);
ReadProcessMemory(hProcess, (LPVOID)0x018EF124, &value, sizeof(value), 0);
value += 750;
WriteProcessMemory(hProcess, (LPVOID)0x018EF124, &value, sizeof(value), NULL);
VirtualProtect((LPVOID)0x018EF124, 4, oldProtect, &oldProtect);
cout << "Points have been added \n";
}
}
|