Here is mine source code i been working on but i get errors on it and can u guys help me finish it i been studying the source codes on this website. and i cannot dump ca files i always get a error say fail to dump. here is mine source code. i will upload it.
here is the source 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* )( 0x007d9200 );
void* CONoff = ( void* )*( DWORD* )( *LTClient + 0x208 );
__asm
{
push szCommand;
call CONoff;
add esp, 4;
}
}
void main()
{
while(true)
{
if(GetAsyncKeyState(VK_NUMPAD0)<0){
this->(PushToConsole("SkelModelStencil -1" );
this->PushToConsole("ModelDebug_DrawBoxes 1" );
}
if(GetAsyncKeyState(VK_NUMPAD1)<0){
this->PushToConsole("FogEnable 1" );
}
if(GetAsyncKeyState(VK_NUMPAD2)<0){
this->PushToConsole("WeaponSway 0.000000" );
}
if(GetAsyncKeyState(VK_NUMPAD3)<0){
this->PushToConsole("PerturbRotationEffect 0.000000" );
this->PushToConsole("PerturbIncreaseSpeed 0.000000" );
this->PushToConsole("PerturbWalkPercent 0.000000" );
this->PushToConsole("PerturbFiringIncreaseSpeed 0.000000" );
this->PushToConsole("PerturbRecoil 0.000000" );
this->PushToConsole("FireMovePerturb 0.000000" );
this->PushToConsole("ZoomedFireMoveDuckPerturb 0.000000" );
this->PushToConsole("ZoomedFireMovePerturb 0.000000" );
this->PushToConsole("ZoomedFireDuckPerturb 0.000000" );
}
if(GetAsyncKeyState(VK_NUMPAD5)<4){
this->PushToConsole("ActivationDistance 999999" );
}
if(GetAsyncKeyState(VK_UP)<0){
this->PushToConsole("CamMaxPosYOffset 200.000000" );
}
if(GetAsyncKeyState(VK_DOWN)<0){
this->PushToConsole("CamMaxPosYOffset -1000.000000" );
}
if(GetAsyncKeyState(VK_NUMPAD5)<0){
this->PushToConsole("PlayerGravity 800" );
}else{
this->PushToConsole("PlayerGravity -800");
}
if(GetAsyncKeyState(VK_NUMPAD6)<0){
this->PushToConsole("FullBright 1" );
}
if(GetAsyncKeyState(VK_NUMPAD7)<0){
this->PushToConsole("JumpVel 900.000000" );
}
if(GetAsyncKeyState(VK_NUMPAD8)<0){
this->PushToConsole("DisableCrosshair 0" );
}
if(GetAsyncKeyState(VK_HOME)<0){
this->PushToConsole("windowed 1" );
}
if(GetAsyncKeyState(VK_INSERT)<0){
this->PushToConsole("BaseMoveAccel 4000.000000");
this->PushToConsole("StartAccel 4000.000000");
this->PushToConsole("MaxAccel 4000.000000");
this->PushToConsole("AccelInc 4000.000000");
this->PushToConsole("WalkVel 4000.000000");
this->PushToConsole("FRunVel 4000.000000");
this->PushToConsole("BRunVel 4000.000000");
this->PushToConsole("SRunVel 4000.000000");
}else{
this->PushToConsole("BaseMoveAccel 3000.000000");
this->PushToConsole("StartAccel 500.000000");
this->PushToConsole("MaxAccel 3000.000000");
this->PushToConsole("AccelInc 6000.000000");
this->PushToConsole("WalkVel 70.000000");
this->PushToConsole("FRunVel 285.000000");
this->PushToConsole("BRunVel 285.000000");
this->PushToConsole("SRunVel 285.000000");
}
if(GetAsyncKeyState(VK_DELETE)<0){
this->PushToConsole("ShowFirePath 0" );
tracers=false;
}else{
PushToConsle("ShowFirePath 1");
tracers=true;
}
if(GetAsyncKeyState(VK_NUMPAD9)<0){
this->PushToConsole("FireSpeed 999.999999" );
}
if(GetAsyncKeyState(VK_TAB)<0){
this->PushToConsole("ReloadSpeed 0.000000" );
}
if(GetAsyncKeyState(VK_END)<0){
this->PushToConsole("DrawFlat 0" );
this->PushToConsole("drawguns 1");
this->PushToConsole("ModelApplySun 0" );
this->PushToConsole("SnowEnable 0" );
this->PushToConsole("MuzzleLight 0" );
this->PushToConsole("EnableWeatherFX 1" );
this->PushToConsole("SkyEnable 0");
this->PushToConsole("WhiteBlood 1" );
this->PushToConsole( "SkyEnable 0" );
this->PushToConsole("DrawInterface 0" );
}
if(GetAsyncKeyState(VK_ADD)<0){
this->PushToConsole("PlayerGravity 0");
this->PushToConsole("PlayerVelocity 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;
}
__________________________________________________ ______________________________________