[php]#include <shellapi.h>
#include <stdio.h>
#include <fstream>
#include <Winuser.h>
#pragma comment(lib,"shell32.lib")
void __cdecl PushToConsole(const char* szCommand )
{
DWORD dwCShell = (DWORD)GetModuleHandleA("CShell.dll");
if( dwCShell != NULL )
{
DWORD *LTClient = ( DWORD* )( 0x377ED910 );
void* CONoff = ( void* )*( DWORD* )( *LTClient + 0x208 );
__asm
{
push szCommand;
call CONoff;
add esp, 4;
}
}
}
bool IsGameReadyForHook()
{
if( GetModuleHandleA( "d3d9.dll" ) != NULL
&& GetModuleHandleA( "ClientFX.fxd" ) != NULL
&& GetModuleHandleA( "CShell.dll" ) != NULL )
return true;
return false;
}
void main()
{
bool Chams = false;
bool Fog = false;
while(true){//Hacks go in here
//////////////////// Automatically On
PushToConsole("ShowFPS 1");//Shows FPS
PushToConsole("WeaponSway 0.000000");//No Sway
PushToConsole("PerturbRotationEffect 0.000000");//No Spread 1
PushToConsole("PerturbIncreaseSpeed 0.000000"); //No Spread 2
PushToConsole("PerturbWalkPercent 0.000000"); //No Spread 3
PushToConsole("PerturbFiringIncreaseSpeed 0.000000");//No Spread 4
PushToConsole("ActivationDistance 999999");//Pickup Hack(Activation Distance)
if( GetAsyncKeyState(VK_NUMPAD1) < 0 )//If you Press Numpad 2
#include <shellapi.h>
#include <stdio.h>
#include <fstream>
#include <Winuser.h>
#pragma comment(lib,"shell32.lib")
void __cdecl PushToConsole(const char* szCommand )
{
DWORD dwCShell = (DWORD)GetModuleHandleA("CShell.dll");
if( dwCShell != NULL )
{
DWORD *LTClient = ( DWORD* )( 0x377ED910 );
void* CONoff = ( void* )*( DWORD* )( *LTClient + 0x208 );
__asm
{
push szCommand;
call CONoff;
add esp, 4;
}
}
}
bool IsGameReadyForHook()
{
if( GetModuleHandleA( "d3d9.dll" ) != NULL
&& GetModuleHandleA( "ClientFX.fxd" ) != NULL
&& GetModuleHandleA( "CShell.dll" ) != NULL )
return true;
return false;
}
void main()
{
bool Chams = false;
bool Fog = false;
while(true){//Hacks go in here
//////////////////// Automatically On
PushToConsole("ShowFPS 1");//Shows FPS
PushToConsole("WeaponSway 0.000000");//No Sway
PushToConsole("PerturbRotationEffect 0.000000");//No Spread 1
PushToConsole("PerturbIncreaseSpeed 0.000000"); //No Spread 2
PushToConsole("PerturbWalkPercent 0.000000"); //No Spread 3
PushToConsole("PerturbFiringIncreaseSpeed 0.000000");//No Spread 4
PushToConsole("ActivationDistance 999999");//Pickup Hack(Activation Distance)
{
if( GetAsyncKeyState(VK_NUMPAD1) < 0 )//If you Press Numpad 2
{
if(Chams){
PushToConsole("SkelModelStencil 0");//Chams Will be off
Chams = false;
}else{//else you dont press it, or press it again
PushToConsole("SkelModelStencil 1");//Turn Chams on
Chams = true;
}
}
if( GetAsyncKeyState(VK_NUMPAD2) < 0 )//If you Press Numpad 2
{
if(Fog){
PushToConsole("FogEnable 1");//You will see Fog
Fog = false;
}else{//else you dont press it, or press it again
PushToConsole("FogEnable 0");//Fog Will be removed
Fog = true;
}
}
Sleep(100);
}
}
DWORD WINAPI HackStart(LPVOID)
{
while( !IsGameReadyForHook() )
Sleep(400);
main();
return 0;
}
if(Chams){
PushToConsole("SkelModelStencil 0");//Chams Will be off
Chams = false;
}else{//else you dont press it, or press it again
PushToConsole("SkelModelStencil 1");//Turn Chams on
Chams = true;
}
}
if( GetAsyncKeyState(VK_NUMPAD2) < 0 )//If you Press Numpad 2
{
if(Fog){
PushToConsole("FogEnable 1");//You will see Fog
Fog = false;
}else{//else you dont press it, or press it again
PushToConsole("FogEnable 0");//Fog Will be removed
Fog = true;
}
}
Sleep(100);
}
}
DWORD WINAPI HackStart(LPVOID)
{
while( !IsGameReadyForHook() )
Sleep(400);
main();
return 0;
}[/php]
What i do wrong ??