Hey MPGH, today I will be teaching you how to make the HP Hack using C++.
I'm using Visual Studio Desktop 2013. So I do not know about others... Should be okay.
-
Set Up
1. Create a New Project
2. Choose Console Application
3. Click DLL and Empty Project.
4. Click Finish.
-
I'll be using @
Coder.Anonymous HP Address
If you like to view the post it will be here
https://www.mpgh.net/forum/showthread.php?t=875468
-
The address is 101E15B0.
-
1. Do the Include thing
Code:
#include <Windows.h>
2. Add the address
Code:
#define HP 0x101E15B0
3.Copy this.
Code:
BOOL Trigger;
void Name(DWORD dwH, DWORD dwA){
*(DWORD*)dwH = dwA;
}
4. Add the Hotkey
Code:
void Init_Hack()
{
while(1)
{
if(GetAsyncKeyState(VK_INSERT)&1)
_Health(HP, 999);
_Health(HP, 999);
_Health(HP, 999);
Trigger = !Trigger;
}
Sleep(10);
}
BOOL WINAPI DllMain(HMODULE hModule, DWORD dwReason, LPVOID lpReserved)
{
UNREFERENCED_PARAMETER(lpReserved);
if (dwReason == DLL_PROCESS_ATTACH)
{
CreateThread(0, 0, (LPTHREAD_START_ROUTINE)Init_Hack, 0, 0, 0);
}
return (TRUE);
}