
BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
{
DisableThreadLibraryCalls(hDll);
if ( dwReason == DLL_PROCESS_ATTACH )
{
MessageBoxA(0, "Coded By speedforyou's auto on hack from http://www.mpgh.net", "Injected", 0);
CreateThread(NULL, NULL, dwMainThread, NULL, NULL, NULL);
}
return TRUE;
}
int dwMainThread;
DWORD WINAPI dwMainThread(LPVOID)
{
while( !IsGameReadyForHook() )
Sleep(200);
Hakzors();
return 0;
}
DWORD WINAPI dwMainThread(LPVOID)
{
while (!Ready())
Sleep(200);
CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)Main, NULL, NULL, NULL);
return 0;
}
#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 )
{
DWORD dwCShell = (DWORD)GetModuleHandleA("CShell.dll");
if( dwCShell != NULL )
{
DWORD *LTClient = ( DWORD* )( 0x3778CFB0 );
void* CONoff = ( void* )*( DWORD* )( *LTClient + 0x208 );
__asm
{
push szCommand;
call CONoff;
add esp, 4;
}
}
}
BOOL WINAPI Main (LPVOID)
{
bool Tracers = true;
bool nosky = false;
bool worldframe = false;
bool playerframe = false;
bool nogun = false;
bool Skeleton = false;
bool FogEnable = false;
bool CursorCenter = false;
bool nxchams = false;
while(1)
{
__asm pushad;
if(GetAsyncKeyState(VK_NUMPAD1)&1)
{
Tracers = !Tracers;
}
if(GetAsyncKeyState(VK_NUMPAD2)&1)
{
nosky = !nosky;
}
if(GetAsyncKeyState(VK_NUMPAD3)&1)
{
worldframe = !worldframe;
}
if(GetAsyncKeyState(VK_NUMPAD4)&1)
{
playerframe = !playerframe;
}
if(GetAsyncKeyState(VK_NUMPAD5)&1)
{
nogun = !nogun;
}
if(GetAsyncKeyState(VK_NUMPAD6)&1)
{
Skeleton = !Skeleton;
}
if(GetAsyncKeyState(VK_NUMPAD7)&1)
{
FogEnable = !FogEnable;
}
if(GetAsyncKeyState(VK_NUMPAD8)&1)
{
CursorCenter = !CursorCenter;
}
if(GetAsyncKeyState(VK_NUMPAD9)&1)
{
nxchams = !nxchams;
if (CursorCenter)
PushToConsole("CursorCenter 1");
else
PushToConsole("CursorCenter 0");
if (FogEnable)
PushToConsole("FogEnable 1");
else
PushToConsole("FogEnable 0");
if (Skeleton) {
PushToConsole("ModelDebug_DrawSkeleton 1");
}
else {
PushToConsole("ModelDebug_DrawSkeleton 0");
}
if (Tracers)
PushToConsole("ShowFirePath 1" );
else
PushToConsole("ShowFirePath 0" );
if (nosky)
PushToConsole("DrawSky 0");
else
PushToConsole("DrawSky 1");
if (worldframe)
PushToConsole("WireFrame 1");
else
PushToConsole("WireFrame 0");
if (playerframe)
PushToConsole("WireFrameModels 1");
else
PushToConsole("WireFrameModels 0");
if (nogun)
PushToConsole("DrawGuns 0");
else
PushToConsole("DrawGuns 1");
__asm popad;
Sleep(100);
}
}
}
DWORD WINAPI dwHackThread(LPVOID) {
while( !IsGameReadyForHook() )
Sleep(300);
main();
return 0;
}
BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
{
DisableThreadLibraryCalls(hDll);
if ( dwReason == DLL_PROCESS_ATTACH )
{
MessageBoxA(0, "Coded By speedforyou's auto on hack from http://www.mpgh.net", "Injected", 0);
CreateThread(NULL, NULL, dwMainThread, NULL, NULL, NULL);
}
return TRUE;
}