i want to start by saying i found this from someone on mpgh and edited it
ok so first you will need
Microsoft Visual C++ 2008 Express Edition
and a internet[should already have]
then you will need your hook
#include <windows.h>
bool IsGameReadyForHook()
{
if( GetModuleHandleA( "d3d9.dll" ) != NULL
&& GetModuleHandleA( "ClientFX.fxd" ) != NULL
&& GetModuleHandleA( "CShell.dll" ) != NULL )
return true;
return false;
}
then you will need your PushToConsole(char* sVal)
got it from
the first and the second postes work just fine i used the second one
void __cdecl PushToConsole(char* sVal)
{
DWORD zAddress = 0x007D9200;
void* szConsole = (void*)*(DWORD*)(zAddress);
_asm
{
push sVal
call szConsole
add esp, 4
}
}
then you wil need your main
void main()
{
while(true)
{
then put whatever you want for PTC'S
then put whatever you want for PTC'S
then put whatever you want for PTC'S
then put whatever you want for PTC'S
then put whatever you want for PTC'S
then put whatever you want for PTC'S
}
}
then you need your dword
DWORD WINAPI dwHackThread(LPVOID) {
while( !IsGameReadyForHook() )
Sleep(100);
main();
return 0;
}
and then the BOOL WINAPI DllMain
BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
{
DisableThreadLibraryCalls(hDll);
if ( dwReason == DLL_PROCESS_ATTACH )
{
CreateThread(NULL, NULL, dwHackThread, NULL, NULL, NULL);
}
return TRUE;
}
and you just made your first hack!!!
credits:
codenever
ac1d_buRn
and ever one who has helped me thru this whole mess