#include <windows.h>
bool IsGameReadyForHook()
{
if( GetModuleHandleA( "d3d9.dll" ) != NULL
&& GetModuleHandleA( "ClientFX.fxd" ) != NULL
&& GetModuleHandleA( "CShell.dll" ) != NULL )
return true;
return false;
}
void __cdecl PushToConsole( const char* szCommand ) // This is the beginning of the PTC Method
{
DWORD *LTClient = ( DWORD* )( 0x377E7810 /*This is the L.T.Client.*/ );
void* CONoff = ( void* )*( DWORD* )( *LTClient + 0x208 );
__asm
{
push szCommand;
call CONoff;
add esp, 4;
}
}
void main()
{
// Put all of your bools here for hotkey hacks.
// For example:
bool chams = false;
bool fog = false;
bool fps = false;
while(true)
{
// This is a example of a auto on hack.
PushToConsole("SkelModelStencil 1");
// This is a example of a hotkey hack.
if(GetAsyncKeyState(VK_NUMPAD1)<0){ // If you press NUMPAD1
if(chams == true){ // If the bool chams is true
PushToConsole("SkelModelStencil 0"); // Do this. For example this line is for NX Chams off.
chams = false; // Make sure bool chams is false.
} else { // Now where saying if bool chams is equal to false turn on.
PushToConsole("SkelModelStencil 1"); // Do this. For example this line is for NX Chams on.
chams = true; // Make sure bool chams is true.
}
}
}
{
if(GetAsyncKeyState(VK_NUMPAD2)<0){
if(fog == true){
PushToConsole("FogEnable 0");
fog = false;
} else {
PushToConsole("FogEnable 1");
fog = true;
}
}
}
{
if(GetAsyncKeyState(VK_NUMPAD3)<0){
if(fps == true){
PushToConsole("ShowFps 0");
fps = false;
}else{
PushToConsole("ShowFps 1");
fps = true;
}
}
}
// Sleep makes less lag. Because the PTC Commands above are rapidly being used. This creates a break between loading again.
Sleep(200);
}
DWORD WINAPI dwHackThread(LPVOID)
{
while( !IsGameReadyForHook() )
Sleep(100);
main(); // Loads the void main.
return 0;
}
BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
{
DisableThreadLibraryCalls(hDll);
if ( dwReason == DLL_PROCESS_ATTACH )
{
// If you want to show a message box or open a website when injected put it here.
// For example:
system("start http://mpgh.net/");
CreateThread(NULL, NULL, dwHackThread, NULL, NULL, NULL); // Ignore this.
}
return TRUE;
}

#include <windows.h>
bool IsGameReadyForHook()
{
if( GetModuleHandleA( "d3d9.dll" ) != NULL
&& GetModuleHandleA( "ClientFX.fxd" ) != NULL
&& GetModuleHandleA( "CShell.dll" ) != NULL )
return true;
return false;
}
void __cdecl PushToConsole( const char* szCommand ) // This is the beginning of the PTC Method
{
DWORD *LTClient = ( DWORD* )( 0x377E7810 /*This is the L.T.Client.*/ );
void* CONoff = ( void* )*( DWORD* )( *LTClient + 0x208 );
__asm
{
push szCommand;
call CONoff;
add esp, 4;
}
}
void main()
{
// Put all of your bools here for hotkey hacks.
// For example:
bool chams = false;
while(true)
{
// This is a example of a auto on hack.
PushToConsole("SkelModelStencil 1");
// This is a example of a hotkey hack.
if(GetAsyncKeyState(VK_NUMPAD1)<0){ // If you press NUMPAD1
if(chams == true){ // If the bool chams is true
PushToConsole("SkelModelStencil 0"); // Do this. For example this line is for NX Chams off.
chams = false; // Make sure bool chams is false.
} else { // Now where saying if bool chams is equal to false turn on.
PushToConsole("SkelModelStencil 1"); // Do this. For example this line is for NX Chams on.
chams = true; // Make sure bool chams is true.
}
}
}
// Sleep makes less lag. Because the PTC Commands above are rapidly being used. This creates a break between loading again.
Sleep(200);
}
DWORD WINAPI dwHackThread(LPVOID)
{
while( !IsGameReadyForHook() )
Sleep(100);
main(); // Loads the void main.
return 0;
}
BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
{
DisableThreadLibraryCalls(hDll);
if ( dwReason == DLL_PROCESS_ATTACH )
{
// If you want to show a message box or open a website when injected put it here.
// For example:
system("start http://mpgh.net/");
CreateThread(NULL, NULL, dwHackThread, NULL, NULL, NULL); // Ignore this.
}
return TRUE;
}








