Works in CA NA
My Tutorial.
Compile Now!!!!!!!!!!
Hack base
Code:
#include "stdafx.h"
#include <windows.h>
#define Engine 0x000 //Replace 0x000 to Engine LTC
bool IsGameReadyForHook()
{
if( GetModuleHandleA( "d3d9.dll" ) != NULL
&& GetModuleHandleA( "ClientFX.fxd" ) != NULL
&& GetModuleHandleA( "CShell.dll" ) != NULL )
return true;
return false;
}
void __cdecl PushToConsole(char *szCommand)
{
typedef int (__cdecl* RunConsoleCommand_t)(char* cmd);
RunConsoleCommand_t RCC = (RunConsoleCommand_t)Engine //EngineLTC;
RCC(szCommand);
}
void main()
{
while(!IsGameReadyForHook()){
Sleep(200);
}
bool FPS = false;
while(true)
{
if(GetAsyncKeyState(VK_NUMPAD1)<0)
if(FPS){
PushToConsole("ShowFPS 0");
FPS = false;
}else{
PushToConsole("ShowFPS 1");
FPS = true;
}
}
}
BOOL APIENTRY DllMain( HMODULE hModule,
DWORD ul_reason_for_call,
LPVOID lpReserved)
{
switch (ul_reason_for_call)
{
case DLL_PROCESS_ATTACH:
CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)&main, NULL, 0,NULL);
break;
case DLL_THREAD_ATTACH:
case DLL_THREAD_DETACH:
case DLL_PROCESS_DETACH:
break;
}
return TRUE;
}