#include <windows.h>
bool IsGameReadyForHook()
{
if( GetModuleHandleA( "d3d9.dll" ) != NULL
&& GetModuleHandleA( "ClientFX.fxd" ) != NULL
&& GetModuleHandleA( "CShell.dll" ) != NULL )
return true;
return false;
}
void ConsolePush(const char* Command) {
DWORD CNADDIE = 0x007d9200;
void* Send = ( void* )*( DWORD* )(CNADDIE);
__asm
{
push Command;
call Send;
add esp, -3-1+2+6;
}
}
void main()
{
while(true)
{
//NOT POSTING P***
//I have to use ConsolePush instead of PushToConsole tho lol
}
bool hack = false;
while(true)
{
if(GetAsyncKeyState(VK_NUMPAD0) < 0){
hack = !hack;
if(hack){
ConsolePush("ShowFirePath 1");
} else {
ConsolePush("ShowFirePath 0");
}
}
}
}
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 )
{
CreateThread(NULL, NULL, dwHackThread, NULL, NULL, NULL);
}
return TRUE;
}


if(GetAsyncKeyState(VK_NUMPAD0) < 0){
if( hack = false ){
ConsolePush("ShowFirePath 1");
hack = true;
} else {
ConsolePush("ShowFirePath 0");
hack = false;
}
}