Can u teach me how to and where to put hotkeys?
Here is my code
Code:
#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 *LTClient = ( DWORD* )( 0x3778BFB0 );
void* CONoff = ( void* )*( DWORD* )( *LTClient + 0x208 );
__asm
{
push szCommand;
call CONoff;
add esp, 4;
}
}
void main()
{
while(true)
{
PushToConsole("SkelModelStencil 1");
PushToConsole("drawguns 1");
PushToConsole("FogEnable 1" );
PushToConsole("ModelDebug_DrawBoxes 1" );
PushToConsole("PlayerGravity -800" );
PushToConsole("WeaponSway 0.000000" );
PushToConsole("MuzzleLight 0" );
PushToConsole("ActivationDistance 999999" );
PushToConsole("JumpVel 600.000000" );
PushToConsole("FragSelf 1" );
PushToConsole("ReloadSpeed 0.000000" );
PushToConsole("FireSpeed 999.999999" );
//No spread
PushToConsole("PerturbRotationEffect 0.000000" );
PushToConsole("PerturbIncreaseSpeed 0.000000" );
PushToConsole("PerturbWalkPercent 0.000000" );
PushToConsole("PerturbFiringIncreaseSpeed 0.000000" );
PushToConsole("PerturbRecoil 0.000000" );
PushToConsole("FireMovePerturb 0.000000" );
PushToConsole("ZoomedFireMoveDuckPerturb 0.000000" );
PushToConsole("ZoomedFireMovePerturb 0.000000" );
PushToConsole("ZoomedFireDuckPerturb 0.000000" );
PushToConsole("PlayerGravity 0");
PushToConsole("PlayerVelocity 0");
}
}
DWORD WINAPI HackThread(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, HackThread, NULL, NULL, NULL);
}
return TRUE;
}