Originally Posted by
TheExGamer
Hello
I already study Cheat engine, and learned how to pin point address change values .ect
But I had a hard time making an Application for the nametage changer.
So i'm looking for someone who have more experience on C++ then me.
Info on what i'm looking for:
*Application looks like CMD
*Dectate if game is running
*Will change the nametag with the nametag you enter
If you need the Memory Address or if you need help finding an Memory Address Feel free to repy/Pm me
Application looks like CMD : Every C++ Normal App seems like CMD....
Detect if game is running :
Code:
#include <iostream>
#include <windows.h>
using namespace std;
int main()
{
LPCWSTR WindowName = L"Modern Warfare 2";
HWND hwnd = FindWindow(0 , WindowName);
if (hwnd == 0)
{
cout << "Game is not opened!";
std:Exit();
}
else
{
cout << "Game is opened!";
system("Pause");
}
return 0;
}
Sorry if the above code looks bad its because I wrote directly here on MPGH..
Will change the ?player name?
Just make a function that writes to the address of the "nametag" <- whatever that is example ...
Code:
DWORD process_ID;
GetWindowThreadProcessID(hwnd, &process_ID);
HANDLE hProcess = OpenProcess(PROCESS_ALL_ACCESS, FALSE, process_ID);
int nametag;
DWORD newdatasize = sizeof(nametag);
//here il turn it to a if function to ignore errors...
if(WriteProcessMemory(hProcess , (LPVOID)OFFSETHERE , &nametag , newdatasize , NULL))
{
cout << "Congrats!" << endl;
system("Pause");
}
else
{
cout << "Oops" << endl;
}
If you want add a main(); func to it so it doesnt close ....
That should do it , unless that "nametag" requires any special math...