SolvedNeed Help On Some Code??

Posts 1–3 of 3 · Page 1 of 1
Need Help On Some Code??
I dont work with C++ only recently started using it but I coded 3 sqf scripts for arma 2 cherno life that are quite simple (money and other shit)
How would I be able to create a console that executes these in game? do I need to find the static address for the money then code in C++ using pointers to locate it and to write over it? If so how can I?.......
Would really appreciate[B]
Coding Level: visual basic, Sqf.
if you want the console to execute the scripts i cant help you as im at a very early level. im not sure how arma 2 works or how battleye detects things but if its like most games you will need to find the static address and the pointers to write to that address. i guess you could use something like this but im not sure

Code:
if (GetAsyncKeyState(0x31) & 0x0001)
				{
					DWORD value = 0;
					ReadProcessMemory(hProcess, (LPVOID)0x0F49F3D8, &value, sizeof(value), 0);
					value += 2000;
					WriteProcessMemory(hProcess, (LPVOID)0x0F49F3D8, &value, sizeof(value), NULL);
					cout << "+2000 Kills\n";
					cout << " \n";
				}
or get ride of the + so you can make it set to 1000000 dollars or whatever you want, or get the user input and have it write the amount the user entered. im no expert in anyway
No reply from OP, assuming solved.

/Closed.
Posts 1–3 of 3 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us