Originally Posted by
Presiden
1. 0x5527C0.
2. That's your cvar value, you can rename it to int a, b, c, etc. It doesn't matter.
3. BlackOpsMP.exe.
4. The address is correct but where you execute it in C++? Also have you update your BO client?
this is my source so far...:
Code:
#include <windows.h>
bool IsGameReadyForHook()
{
if(GetModuleHandleA("cshell.dll") != NULL)
return true;
return false;
}
int (__cdecl *execConsoleComand)(int a1, int a2, char *command) = (int (__cdecl*)(int, int, char*))0x5527C0;
void main()
{
//*(long*)0x???????? = ?;
while(true)
{
if(GetAsyncKeyState(VK_NUMPAD0)&1)
{
execConsoleComand(0, 0, "god");
}
if(GetAsyncKeyState(VK_NUMPAD1)&1)
{
execConsoleComand(0, 0, "noclip");
}
Sleep(200);
}
}
DWORD WINAPI dwHackThread(LPVOID)
{
while(!IsGameReadyForHook())
Sleep(100);
main();
return 0;
}
BOOL WINAPI DllMain (HMODULE hDll, DWORD dwReason, LPVOID lpReserved)
{
DisableThreadLibraryCalls(hDll);
if (dwReason == DLL_PROCESS_ATTACH)
{
MessageBox(0, TEXT("Hack Attached"), TEXT("Attached"), MB_ICONINFORMATION);
CreateThread(NULL, NULL, dwHackThread, NULL, NULL, NULL);
}
return TRUE;
}
I have not testing the address you just gave me yet, but will this work in BO Zombies?
EDIT: I have a lot of experience with C++... I just wanted to tell you that because you said, "2. That's your cvar value, you can rename it to int a, b, c, etc. It doesn't matter."
I'm not one of those fake noobs...