ive used this for the dead linger, contagion and a few others and have had no issues with it but when i set it for world at war zombies it cant find the window, ive had the same issue as it wont find the multiplayer part either
Code:
#include "stdafx.h"
#include <iostream>
#include <Windows.h>
#pragma comment(lib, "user32.lib")
using namespace std;
int _tmain(int argc, _TCHAR* argv[])
{
cout << "gogogokitty199's contagion ammo modifier\n";
cout << " \n";
HWND hWnd = FindWindow(0, L"CoDWaW");
if (hWnd == 0){
cout << "could not find World at War.exe . Please verify that your game is running!\n";
}
else {
cout << "Found World at War \n";
DWORD proc_id;
GetWindowThreadProcessId(hWnd, &proc_id);
HANDLE hProc = OpenProcess(PROCESS_ALL_ACCESS, FALSE, proc_id);
if (!hProc) {
cout << "error could not find the process \n";
}
else {
cout << "Opened World at War \n";
DWORD Pointer = 0x19BB3244;
DWORD Pointed;
WORD Offset = 0x13D0;
int CurrentAmmo = 0;
int newValue;
ReadProcessMemory(hProc, (LPCVOID)(Pointer), &Pointed, 4, NULL);
ReadProcessMemory(hProc, (LPCVOID)(Pointer + Offset), &CurrentAmmo, 4, NULL);
cout << "Enter your desired amount of points: ";
cin >> newValue;
int Success = WriteProcessMemory(hProc, (LPVOID)(Pointed + Offset), &newValue, (DWORD) sizeof(newValue), NULL);
while (1)
if (Success > 0){
ReadProcessMemory(hProc, (LPCVOID)(Pointer), &Pointed, 4, NULL);
ReadProcessMemory(hProc, (LPCVOID)(Pointer + Offset), &CurrentAmmo, 4, NULL);
cout << "your ammo has been loaded into your mag \n";
cin.get();
cout << "Press Enter to close! \n";
}
else{
cout << "Error could not write to process memory \n";
cout << "Press Enter to close!";
cin.get();
}
}
}
cin.get();
return 0;
}