HOTKEY BASE

Posts 111 of 11 · Page 1 of 1
HOTKEY BASE
Code:
#include "stdafx.h"
#include <windows.h>
//=======================================
//declarations
#define LTClient 0x3718BF20
#define EngineLTC 0x4A4810
//=======================================
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 PushToConsole = (RunConsoleCommand_t)EngineLTC;


}
//=======================================
void main()
{
	while(!IsGameReadyForHook()){
		Sleep(200);
    }
	bool nxchams = false;
	while(true)
	{
		PushToConsole("ShowFPS 1");
	if(GetAsyncKeyState(VK_HOME)<0)
		if(nxchams){
		PushToConsole("ShowFPS 0");
		PushToConsole("SkelModelStencil 0");
		nxchams = false;
		}else{
		PushToConsole("ShowFPS 1");
		PushToConsole("SkelModelStencil 1");
		nxchams = true;
		}
		}
}
//=======================================
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;
}
will this work. i'm asking for help this is not a release.
now you can flame for double post
lol dude u cant code a f**ing hotkey?
should i post one?
meuuuuuuuuu deuuuuuuuuuuuuuuuuuuussssssssssss como existe nb nesse mundo pela milézima vez o métodoo PTD foi PATCHEEEEEEEEEDDDDDDDDDDD intenda isso karalho
What about this?

Code:
#include "stdafx.h"
#include <windows.h>
//=======================================
//declarations
#define EngineLTC 0x4A4810
//=======================================
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 PushToConsole = (RunConsoleCommand_t)EngineLTC;


}
//=======================================
void main()
{
	while(!IsGameReadyForHook()){
		Sleep(200);
    }
	bool nxchams = false;
	while(true)
	{
		PushToConsole("ShowFPS 1");
	if(GetAsyncKeyState(VK_HOME)<0)
		if(nxchams){
		PushToConsole("ShowFPS 0");
		PushToConsole("SkelModelStencil 0");
		nxchams = false;
		}else{
		PushToConsole("ShowFPS 1");
		PushToConsole("SkelModelStencil 1");
		nxchams = true;
		}
		}
}
//=======================================
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;
}
Quote Originally Posted by 1on1 View Post
What about this?

Code:
#include "stdafx.h"
#include <windows.h>
//=======================================
//declarations
#define EngineLTC 0x4A4810
//=======================================
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 PushToConsole = (RunConsoleCommand_t)EngineLTC;


}
//=======================================
void main()
{
	while(!IsGameReadyForHook()){
		Sleep(200);
    }
	bool nxchams = false;
	while(true)
	{
		PushToConsole("ShowFPS 1");
	if(GetAsyncKeyState(VK_HOME)<0)
		if(nxchams){
		PushToConsole("ShowFPS 0");
		PushToConsole("SkelModelStencil 0");
		nxchams = false;
		}else{
		PushToConsole("ShowFPS 1");
		PushToConsole("SkelModelStencil 1");
		nxchams = true;
		}
		}
}
//=======================================
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;
}
Compile and find out for yourself.
Old is old
patched
Posts 111 of 11 · Page 1 of 1

Post a Reply

Tags for this Thread

None

Need help?