HELP ME FIX THIS PLEASE!!!

Posts 1–15 of 28 · Page 1 of 2
HELP ME FIX THIS PLEASE!!!
i have this code:
Code:
#include "stdafx.h"
#include <windows.h>
void __cdecl PushToConsole( const char* szCommand )
{
DWORD *LTClient = ( DWORD* )( 0x378F5D90 );
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;
}

bool Memoria( void * pDest, char * szPatch, size_t sSize ){
DWORD dwOrgProtect = NULL;
if ( !VirtualProtect ( pDest, sSize, PAGE_EXECUTE_READWRITE, &dwOrgProtect ))
return FALSE;


memcpy( pDest, szPatch, sSize );
VirtualProtect( pDest, sSize, dwOrgProtect, NULL );
return TRUE;
}

#define ADR_RECOIL1 0x37497B00
#define ADR_RECOIL2 0x375AAA69
#define ADR_RECOIL3 0x37497B14
#define ADR_RECOIL4 0x3741B570
#define ADR_RELOAD1 0x37497B20
void main()
{
MessageBoxA(NULL," Thank you for using The First's hack [Contact me, xXTheFirstXx, at mpgh.net]! ","TheFirst's hack",MB_OK); 
while (!IsGameReadyForHook()){

}


bool nxchams = false;
bool fog = false;
bool speed = false;
bool spread = false;
bool tracers = false;
bool showfps = false;
bool recoil = false;
bool reload = false;
bool unlockcursor = false;
bool drawgun = false;
bool sjump = false;
bool wireframe = false;
bool glitcher = false;
bool skeleton = false;
bool cross2 = false;
bool cross3 = false;
bool cross4 = false;
bool cross5 = false;
bool glow = false;
bool bright = false;
bool flykey = false;
while(true){

}
if(GetAsyncKeyState(VK_NUMPAD0)<0){
if(nxchams){
PushToConsole("SkelModelStencil 0");
Memoria(( void* )( 0x372FF456 ), "\x75\x09", 2 );
Memoria(( void* )( 0x37232B48 ), "\x90\x25\x23\x37", 4 );
nxchams = false;
}else{
PushToConsole("SkelModelStencil 1");
Memoria(( void* )( 0x372FF456 ), "\x90\x90", 2 );
Memoria(( void* )( 0x37232B48 ), "\x90\x90\x90\x90", 4 );
nxchams = true;

}}
if(GetAsyncKeyState(VK_NUMPAD2)<0){
if(fog){
PushToConsole("FogEnable 1");
fog = false;
} else {
PushToConsole("FogEnable 0");
fog = true;
}
}
if(GetAsyncKeyState(VK_NUMPAD3)<0){
if(speed){
PushToConsole("BaseMoveAccel 3000.000000");
PushToConsole("StartAccel 500.000000");
PushToConsole("MaxAccel 3000.000000");
PushToConsole("AccelInc 6000.000000");
PushToConsole("WalkVel 70.000000");
PushToConsole("FRunVel 285.000000");
PushToConsole("BRunVel 285.000000");
PushToConsole("SRunVel 285.000000");
PushToConsole("DuckVel 50.000000");
speed = false;
} else {
PushToConsole("BaseMoveAccel 3000.000000");
PushToConsole("StartAccel 3000.000000");
PushToConsole("MaxAccel 3000.000000");
PushToConsole("AccelInc 3000.000000");
PushToConsole("WalkVel 3000.000000");
PushToConsole("FRunVel 3000.000000");
PushToConsole("BRunVel 3000.000000");
PushToConsole("SRunVel 3000.000000");
PushToConsole("DuckVel 3000.000000");
speed = true;
}
}
if(GetAsyncKeyState(VK_NUMPAD4)<0){
if(spread){
PushToConsole("PerturbRotationEffect 3.000000");
PushToConsole("PerturbIncreaseSpeed 3.000000");
PushToConsole("PerturbDecreaseSpeed 9.000000");
PushToConsole("PerturbWalkPercent 0.500000");
PushToConsole("PerturbRecoil 9.000000");
PushToConsole("FireMovePerturb 9.000000");
PushToConsole("ZoomedFireMoveDuckPerturb 9.000000");
PushToConsole("ZoomedFireMovePerturb 9.000000");
PushToConsole("ZoomedFireDuckPerturb 9.000000");
spread = false;
} else {
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");
spread = true;
}
}
if(GetAsyncKeyState(VK_END)<0){
if(tracers){
PushToConsole("ShowFirePath 0");
tracers = false;
} else {
PushToConsole("ShowFirePath 1");
tracers = true;
}
}
if(GetAsyncKeyState(VK_SUBTRACT)<0){
if(sjump){
PushToConsole("JumpVel 330.000000");
sjump = false;
} else {
PushToConsole("JumpVel 660.000000");
sjump = true;
}
}
if(GetAsyncKeyState(VK_NUMPAD9)<0){
if(showfps){
PushToConsole("ShowFps 0");
showfps = false;
} else {
PushToConsole("ShowFps 1");
showfps = true;
}
}
if(GetAsyncKeyState(VK_INSERT)<0){
if(unlockcursor){
PushToConsole("CursorCenter 1");
unlockcursor = false;
} else {
PushToConsole("CursorCenter 0");
unlockcursor = true;
}
}
if(GetAsyncKeyState(VK_NUMPAD5)<0){
if(recoil){
Memoria(( void* )( ADR_RECOIL1 ), "\xD8\x66\x54", 3 ); 
Memoria(( void* )( ADR_RECOIL2 ), "\xD9\x46\x54", 3 ); 
Memoria(( void* )( ADR_RECOIL3 ), "\xD9\x5E\x54\xD9\x46\x48", 6 ); 
Memoria(( void* )( ADR_RECOIL4 ), "\xD9\x5E\x48", 3 ); 
recoil = false;
}else{
Memoria(( void* )( ADR_RECOIL1 ), "\x90\x90\x90", 3 ); 
Memoria(( void* )( ADR_RECOIL2 ), "\x90\x90\x90", 3 ); 
Memoria(( void* )( ADR_RECOIL3 ), "\x90\x90\x90\x90\x90\x90", 6 ); 
Memoria(( void* )( ADR_RECOIL4 ), "\x90\x90\x90", 3 ); 
recoil = true;
}
}
if(GetAsyncKeyState(VK_NUMPAD6)<0){	
if(reload){
Memoria(( void* )( ADR_RELOAD1 ), "\x0F\x84\xB1\x01\x00\x00", 6 );
reload = false;
}else{
Memoria(( void* )( ADR_RELOAD1 ), "\x90\x90\x90\x90\x90\x90", 6 );
reload = true;
}
}
if(GetAsyncKeyState(VK_NUMPAD7)<0){
if(drawgun){
PushToConsole("drawguns 1");
drawgun = false;
} else {
PushToConsole("drawguns 0");
drawgun = true;
}
}



if(GetAsyncKeyState(VK_NEXT)<0){
if(glitcher){
PushToConsole("BaseMoveAccel 3000.000000");
PushToConsole("StartAccel 500.000000");
PushToConsole("MaxAccel 3000.000000");
PushToConsole("AccelInc 6000.000000");
PushToConsole("WalkVel 70.000000");
PushToConsole("FRunVel 285.000000");
PushToConsole("BRunVel 285.000000");
PushToConsole("SRunVel 285.000000");
PushToConsole("DuckVel 50.000000");
glitcher = false;
} else {
PushToConsole("BaseMoveAccel 90000.000000");
PushToConsole("StartAccel 90000.000000");
PushToConsole("MaxAccel 90000.000000");
PushToConsole("AccelInc 90000.000000");
PushToConsole("WalkVel 90000.000000"); 
PushToConsole("FRunVel 90000.000000"); 
PushToConsole("BRunVel 90000.000000"); 
PushToConsole("SRunVel 90000.000000"); 
glitcher = true;
}
}
if(GetAsyncKeyState(VK_HOME)<0){
if(wireframe){
PushToConsole("WireFrame 0");
wireframe = false;
} else {
PushToConsole("WireFrame 1");
wireframe = true;
}
}
if(GetAsyncKeyState(VK_DELETE)<0){
if(skeleton){
PushToConsole("ModelDebug_DrawSkeleton 0");
skeleton = false;
} else {
PushToConsole("ModelDebug_DrawSkeleton 1");
skeleton = true;
}
}

if(GetAsyncKeyState(VK_F7)<0){
if(cross2){
PushToConsole("CrossHair_DefaultLength 10");
PushToConsole("CrossHair_DefaultGapLength 1");
PushToConsole("CrosshairGapMin 0");
PushToConsole("CrosshairGapMax 2");
PushToConsole("CrosshairBarMin 10");
PushToConsole("CrosshairBarMax 10");
PushToConsole("HitCrossHairMAXPerturb 0");
PushToConsole("HitCrossHairMINPerturb 0");
PushToConsole("HitCrossHairSize 0");
PushToConsole("CrossHair_FiringDuration 0");
PushToConsole("ScopeUDRadius 0");
PushToConsole("ScopeLRRadius 0");
PushToConsole("ScopeUPGap 0");
PushToConsole("ScopeLRGap 0");
PushToConsole("ShowBreath 0");
cross2 = false;
}else{
PushToConsole("CrossHair_DefaultLength 5");
PushToConsole("CrossHair_DefaultGapLength 2");
PushToConsole("CrosshairGapMin 0");
PushToConsole("CrosshairGapMax 1");
PushToConsole("CrosshairBarMin 5");
PushToConsole("CrosshairBarMax 5");
PushToConsole("HitCrossHairMAXPerturb 0");
PushToConsole("HitCrossHairMINPerturb 0");
PushToConsole("HitCrossHairSize 0");
PushToConsole("CrossHair_FiringDuration 0");
PushToConsole("ScopeUDRadius 0");
PushToConsole("ScopeLRRadius 0");
PushToConsole("ScopeUPGap 0");
PushToConsole("ScopeLRGap 0");
PushToConsole("ShowBreath 0");
cross2 = true;

} 
}
if(GetAsyncKeyState(VK_F8)<0){
if(cross3){
PushToConsole("CrossHair_DefaultLength 10");
PushToConsole("CrossHair_DefaultGapLength 1");
PushToConsole("CrosshairGapMin 0");
PushToConsole("CrosshairGapMax 2");
PushToConsole("CrosshairBarMin 10");
PushToConsole("CrosshairBarMax 10");
PushToConsole("HitCrossHairMAXPerturb 0");
PushToConsole("HitCrossHairMINPerturb 0");
PushToConsole("HitCrossHairSize 0");
PushToConsole("CrossHair_FiringDuration 0");
PushToConsole("ScopeUDRadius 0");
PushToConsole("ScopeLRRadius 0");
PushToConsole("ScopeUPGap 0");
PushToConsole("ScopeLRGap 0");
PushToConsole("ShowBreath 0");
cross3 = false;
}else{
PushToConsole("CrossHair_DefaultLength 20");
PushToConsole("CrossHair_DefaultGapLength 3");
PushToConsole("CrosshairGapMin 0");
PushToConsole("CrosshairGapMax 1");
PushToConsole("CrosshairBarMin 10");
PushToConsole("CrosshairBarMax 10");
PushToConsole("HitCrossHairMAXPerturb 0");
PushToConsole("HitCrossHairMINPerturb 0");
PushToConsole("HitCrossHairSize 0");
PushToConsole("CrossHair_FiringDuration 0");
PushToConsole("ScopeUDRadius 0");
PushToConsole("ScopeLRRadius 0");
PushToConsole("ScopeUPGap 0");
PushToConsole("ScopeLRGap 0");
PushToConsole("ShowBreath 0");
cross3 = true;
} 
}
if(GetAsyncKeyState(VK_F9)<0){
if(cross4){
PushToConsole("CrossHair_DefaultLength 10");
PushToConsole("CrossHair_DefaultGapLength 1");
PushToConsole("CrosshairGapMin 0");
PushToConsole("CrosshairGapMax 2");
PushToConsole("CrosshairBarMin 10");
PushToConsole("CrosshairBarMax 10");
PushToConsole("HitCrossHairMAXPerturb 0");
PushToConsole("HitCrossHairMINPerturb 0");
PushToConsole("HitCrossHairSize 0");
PushToConsole("CrossHair_FiringDuration 0");
PushToConsole("ScopeUDRadius 0");
PushToConsole("ScopeLRRadius 0");
PushToConsole("ScopeUPGap 0");
PushToConsole("ScopeLRGap 0");
PushToConsole("ShowBreath 0");
cross4 = false;
}else{
PushToConsole("CrossHair_DefaultLength 40");
PushToConsole("CrossHair_DefaultGapLength 1");
PushToConsole("CrosshairGapMin 0");
PushToConsole("CrosshairGapMax 1");
PushToConsole("CrosshairBarMin 30");
PushToConsole("CrosshairBarMax 30");
PushToConsole("HitCrossHairMAXPerturb 0");
PushToConsole("HitCrossHairMINPerturb 0");
PushToConsole("HitCrossHairSize 0");
PushToConsole("CrossHair_FiringDuration 0");
PushToConsole("ScopeUDRadius 0");
PushToConsole("ScopeLRRadius 0");
PushToConsole("ScopeUPGap 0");
PushToConsole("ScopeLRGap 0");
PushToConsole("ShowBreath 0");
cross4 = true;
} 
}
if(GetAsyncKeyState(VK_F10)<0){
if(cross5){
PushToConsole("CrossHair_DefaultLength 10");
PushToConsole("CrossHair_DefaultGapLength 1");
PushToConsole("CrosshairGapMin 0");
PushToConsole("CrosshairGapMax 2");
PushToConsole("CrosshairBarMin 10");
PushToConsole("CrosshairBarMax 10");
PushToConsole("HitCrossHairMAXPerturb 0");
PushToConsole("HitCrossHairMINPerturb 0");
PushToConsole("HitCrossHairSize 0");
PushToConsole("CrossHair_FiringDuration 0");
PushToConsole("ScopeUDRadius 0");
PushToConsole("ScopeLRRadius 0");
PushToConsole("ScopeUPGap 0");
PushToConsole("ScopeLRGap 0");
PushToConsole("ShowBreath 0");
cross5 = false;
}else{
PushToConsole("CrossHair_DefaultLength 75");
PushToConsole("CrossHair_DefaultGapLength 1");
PushToConsole("CrosshairGapMin 0");
PushToConsole("CrosshairGapMax 1");
PushToConsole("CrosshairBarMin 10");
PushToConsole("CrosshairBarMax 10");
PushToConsole("HitCrossHairMAXPerturb 0");
PushToConsole("HitCrossHairMINPerturb 0");
PushToConsole("HitCrossHairSize 0");
PushToConsole("CrossHair_FiringDuration 0");
PushToConsole("ScopeUDRadius 0");
PushToConsole("ScopeLRRadius 0");
PushToConsole("ScopeUPGap 0");
PushToConsole("ScopeLRGap 0");
PushToConsole("ShowBreath 0");
cross5 = true;
} 
}
if(GetAsyncKeyState(VK_F11)<0){
if(glow){
PushToConsole("ScreenGlowEnable 0");
glow = false;
}else{
PushToConsole("ScreenGlowEnable 1");
glow = true;
}
}
if(GetAsyncKeyState(VK_F12)<0){
if(bright){
PushToConsole("FullBright 0");
bright = false;
}else{
PushToConsole("FullBright 1");
bright = true;
}
}



if(GetAsyncKeyState(VK_NUMPAD8)<0){ 
if(flykey){ 
PushToConsole( "PlayerGravity 800" ); 
flykey = false;
}else{ 

PushToConsole( "PlayerGravity -800" ); 
flykey = true;

} }

Sleep(25);
}
}

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;
}
It's a Hotkey code... i updated the addys and it wont help any!!!

team viewer me and show me how to fix please!
Woahh..
This is old dude
Quote Originally Posted by flameswor10 View Post
Woahh..
This is old dude
Yeah it is very old, because it was my old one
And now i try to get back into hacking,
LTC is out of date and you didnt really do anything with this :S
wow dude...
just straight up copy and paste...
omfg thanks for the instant win h4x!
HELP ME FIX THIS!
@NOOB
@CAFlames
Code:
#include "stdafx.h"
#include <windows.h>
void PushToConsole ( const char* cmd )
{
_asm
{
PUSH cmd
MOV EAX, 0x485F60
CALL EAX
ADD ESP, 0x4
}
}
DWORD *LTClient = ( DWORD* )( 0x378F5D90 );
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;
}

bool Memoria( void * pDest, char * szPatch, size_t sSize ){
DWORD dwOrgProtect = NULL;
if ( !VirtualProtect ( pDest, sSize, PAGE_EXECUTE_READWRITE, &dwOrgProtect ))
return FALSE;


memcpy( pDest, szPatch, sSize );
VirtualProtect( pDest, sSize, dwOrgProtect, NULL );
return TRUE;
}

#define ADR_RECOIL1 0x37497B00
#define ADR_RECOIL2 0x375AAA69
#define ADR_RECOIL3 0x37497B14
#define ADR_RECOIL4 0x3741B570
#define ADR_RELOAD1 0x37497B20
void main()
{
MessageBoxA(NULL," Thank you for using The First's hack [Contact me, xXTheFirstXx, at mpgh.net]! ","TheFirst's hack",MB_OK); 
while (!IsGameReadyForHook()){

}


bool nxchams = false;
bool fog = false;
bool speed = false;
bool spread = false;
bool tracers = false;
bool showfps = false;
bool recoil = false;
bool reload = false;
bool unlockcursor = false;
bool drawgun = false;
bool sjump = false;
bool wireframe = false;
bool glitcher = false;
bool skeleton = false;
bool cross2 = false;
bool cross3 = false;
bool cross4 = false;
bool cross5 = false;
bool glow = false;
bool bright = false;
bool flykey = false;
while(true){

}
if(GetAsyncKeyState(VK_NUMPAD0)<0){
if(nxchams){
PushToConsole("SkelModelStencil 0");
Memoria(( void* )( 0x372FF456 ), "\x75\x09", 2 );
Memoria(( void* )( 0x37232B48 ), "\x90\x25\x23\x37", 4 );
nxchams = false;
}else{
PushToConsole("SkelModelStencil 1");
Memoria(( void* )( 0x372FF456 ), "\x90\x90", 2 );
Memoria(( void* )( 0x37232B48 ), "\x90\x90\x90\x90", 4 );
nxchams = true;

}}
if(GetAsyncKeyState(VK_NUMPAD2)<0){
if(fog){
PushToConsole("FogEnable 1");
fog = false;
} else {
PushToConsole("FogEnable 0");
fog = true;
}
}
if(GetAsyncKeyState(VK_NUMPAD3)<0){
if(speed){
PushToConsole("BaseMoveAccel 3000");
PushToConsole("StartAccel 500");
PushToConsole("MaxAccel 3000");
PushToConsole("AccelInc 6000");
PushToConsole("WalkVel 70");
PushToConsole("FRunVel 285");
PushToConsole("BRunVel 285");
PushToConsole("SRunVel 285");
PushToConsole("DuckVel 50");
speed = false;
} else {
PushToConsole("BaseMoveAccel 3000");
PushToConsole("StartAccel 3000");
PushToConsole("MaxAccel 3000");
PushToConsole("AccelInc 3000");
PushToConsole("WalkVel 3000");
PushToConsole("FRunVel 3000");
PushToConsole("BRunVel 3000");
PushToConsole("SRunVel 3000");
PushToConsole("DuckVel 3000");
speed = true;
}
}
if(GetAsyncKeyState(VK_NUMPAD4)<0){
if(spread){
PushToConsole("PerturbRotationEffect 3");
PushToConsole("PerturbIncreaseSpeed 3");
PushToConsole("PerturbDecreaseSpeed 9");
PushToConsole("PerturbWalkPercent 0");
PushToConsole("PerturbRecoil 9");
PushToConsole("FireMovePerturb 9");
PushToConsole("ZoomedFireMoveDuckPerturb 9");
PushToConsole("ZoomedFireMovePerturb 9");
PushToConsole("ZoomedFireDuckPerturb 9");
spread = false;
} else {
PushToConsole("PerturbRotationEffect 0"); 
PushToConsole("PerturbIncreaseSpeed 0"); 
PushToConsole("PerturbWalkPercent 0"); 
PushToConsole("PerturbFiringIncreaseSpeed 0");
PushToConsole("PerturbRecoil 0");
PushToConsole("FireMovePerturb 0");
PushToConsole("ZoomedFireMoveDuckPerturb 0");
PushToConsole("ZoomedFireMovePerturb 0");
PushToConsole("ZoomedFireDuckPerturb 0");
spread = true;
}
}
if(GetAsyncKeyState(VK_END)<0){
if(tracers){
PushToConsole("ShowFirePath 0");
tracers = false;
} else {
PushToConsole("ShowFirePath 1");
tracers = true;
}
}
if(GetAsyncKeyState(VK_SUBTRACT)<0){
if(sjump){
PushToConsole("JumpVel 330");
sjump = false;
} else {
PushToConsole("JumpVel 660");
sjump = true;
}
}
if(GetAsyncKeyState(VK_NUMPAD9)<0){
if(showfps){
PushToConsole("ShowFps 0");
showfps = false;
} else {
PushToConsole("ShowFps 1");
showfps = true;
}
}
if(GetAsyncKeyState(VK_NUMPAD5)<0){
if(recoil){
Memoria(( void* )( ADR_RECOIL1 ), "\xD8\x66\x54", 3 ); 
Memoria(( void* )( ADR_RECOIL2 ), "\xD9\x46\x54", 3 ); 
Memoria(( void* )( ADR_RECOIL3 ), "\xD9\x5E\x54\xD9\x46\x48", 6 ); 
Memoria(( void* )( ADR_RECOIL4 ), "\xD9\x5E\x48", 3 ); 
recoil = false;
}else{
Memoria(( void* )( ADR_RECOIL1 ), "\x90\x90\x90", 3 ); 
Memoria(( void* )( ADR_RECOIL2 ), "\x90\x90\x90", 3 ); 
Memoria(( void* )( ADR_RECOIL3 ), "\x90\x90\x90\x90\x90\x90", 6 ); 
Memoria(( void* )( ADR_RECOIL4 ), "\x90\x90\x90", 3 ); 
recoil = true;
}
}
if(GetAsyncKeyState(VK_NUMPAD6)<0){	
if(reload){
Memoria(( void* )( ADR_RELOAD1 ), "\x0F\x84\xB1\x01\x00\x00", 6 );
reload = false;
}else{
Memoria(( void* )( ADR_RELOAD1 ), "\x90\x90\x90\x90\x90\x90", 6 );
reload = true;
}
}
if(GetAsyncKeyState(VK_NUMPAD7)<0){
if(drawgun){
PushToConsole("drawguns 1");
drawgun = false;
} else {
PushToConsole("drawguns 0");
drawgun = true;
}
}



if(GetAsyncKeyState(VK_NEXT)<0){
if(glitcher){
PushToConsole("BaseMoveAccel 3000");
PushToConsole("StartAccel 500");
PushToConsole("MaxAccel 3000");
PushToConsole("AccelInc 6000");
PushToConsole("WalkVel 70");
PushToConsole("FRunVel 285");
PushToConsole("BRunVel 285");
PushToConsole("SRunVel 285");
PushToConsole("DuckVel 50");
glitcher = false;
} else {
PushToConsole("BaseMoveAccel 90000");
PushToConsole("StartAccel 90000");
PushToConsole("MaxAccel 90000");
PushToConsole("AccelInc 90000");
PushToConsole("WalkVel 90000"); 
PushToConsole("FRunVel 90000"); 
PushToConsole("BRunVel 90000"); 
PushToConsole("SRunVel 90000"); 
glitcher = true;
}
}
if(GetAsyncKeyState(VK_HOME)<0){
if(wireframe){
PushToConsole("WireFrame 0");
wireframe = false;
} else {
PushToConsole("WireFrame 1");
wireframe = true;
}
}
if(GetAsyncKeyState(VK_DELETE)<0){
if(skeleton){
PushToConsole("ModelDebug_DrawSkeleton 0");
skeleton = false;
} else {
PushToConsole("ModelDebug_DrawSkeleton 1");
skeleton = true;
}
}

if(GetAsyncKeyState(VK_F7)<0){
if(cross2){
PushToConsole("CrossHair_DefaultLength 10");
PushToConsole("CrossHair_DefaultGapLength 1");
PushToConsole("CrosshairGapMin 0");
PushToConsole("CrosshairGapMax 2");
PushToConsole("CrosshairBarMin 10");
PushToConsole("CrosshairBarMax 10");
PushToConsole("HitCrossHairMAXPerturb 0");
PushToConsole("HitCrossHairMINPerturb 0");
PushToConsole("HitCrossHairSize 0");
PushToConsole("CrossHair_FiringDuration 0");
PushToConsole("ScopeUDRadius 0");
PushToConsole("ScopeLRRadius 0");
PushToConsole("ScopeUPGap 0");
PushToConsole("ScopeLRGap 0");
PushToConsole("ShowBreath 0");
cross2 = false;
}else{
PushToConsole("CrossHair_DefaultLength 5");
PushToConsole("CrossHair_DefaultGapLength 2");
PushToConsole("CrosshairGapMin 0");
PushToConsole("CrosshairGapMax 1");
PushToConsole("CrosshairBarMin 5");
PushToConsole("CrosshairBarMax 5");
PushToConsole("HitCrossHairMAXPerturb 0");
PushToConsole("HitCrossHairMINPerturb 0");
PushToConsole("HitCrossHairSize 0");
PushToConsole("CrossHair_FiringDuration 0");
PushToConsole("ScopeUDRadius 0");
PushToConsole("ScopeLRRadius 0");
PushToConsole("ScopeUPGap 0");
PushToConsole("ScopeLRGap 0");
PushToConsole("ShowBreath 0");
cross2 = true;

} 
}
if(GetAsyncKeyState(VK_F8)<0){
if(cross3){
PushToConsole("CrossHair_DefaultLength 10");
PushToConsole("CrossHair_DefaultGapLength 1");
PushToConsole("CrosshairGapMin 0");
PushToConsole("CrosshairGapMax 2");
PushToConsole("CrosshairBarMin 10");
PushToConsole("CrosshairBarMax 10");
PushToConsole("HitCrossHairMAXPerturb 0");
PushToConsole("HitCrossHairMINPerturb 0");
PushToConsole("HitCrossHairSize 0");
PushToConsole("CrossHair_FiringDuration 0");
PushToConsole("ScopeUDRadius 0");
PushToConsole("ScopeLRRadius 0");
PushToConsole("ScopeUPGap 0");
PushToConsole("ScopeLRGap 0");
PushToConsole("ShowBreath 0");
cross3 = false;
}else{
PushToConsole("CrossHair_DefaultLength 20");
PushToConsole("CrossHair_DefaultGapLength 3");
PushToConsole("CrosshairGapMin 0");
PushToConsole("CrosshairGapMax 1");
PushToConsole("CrosshairBarMin 10");
PushToConsole("CrosshairBarMax 10");
PushToConsole("HitCrossHairMAXPerturb 0");
PushToConsole("HitCrossHairMINPerturb 0");
PushToConsole("HitCrossHairSize 0");
PushToConsole("CrossHair_FiringDuration 0");
PushToConsole("ScopeUDRadius 0");
PushToConsole("ScopeLRRadius 0");
PushToConsole("ScopeUPGap 0");
PushToConsole("ScopeLRGap 0");
PushToConsole("ShowBreath 0");
cross3 = true;
} 
}
if(GetAsyncKeyState(VK_F9)<0){
if(cross4){
PushToConsole("CrossHair_DefaultLength 10");
PushToConsole("CrossHair_DefaultGapLength 1");
PushToConsole("CrosshairGapMin 0");
PushToConsole("CrosshairGapMax 2");
PushToConsole("CrosshairBarMin 10");
PushToConsole("CrosshairBarMax 10");
PushToConsole("HitCrossHairMAXPerturb 0");
PushToConsole("HitCrossHairMINPerturb 0");
PushToConsole("HitCrossHairSize 0");
PushToConsole("CrossHair_FiringDuration 0");
PushToConsole("ScopeUDRadius 0");
PushToConsole("ScopeLRRadius 0");
PushToConsole("ScopeUPGap 0");
PushToConsole("ScopeLRGap 0");
PushToConsole("ShowBreath 0");
cross4 = false;
}else{
PushToConsole("CrossHair_DefaultLength 40");
PushToConsole("CrossHair_DefaultGapLength 1");
PushToConsole("CrosshairGapMin 0");
PushToConsole("CrosshairGapMax 1");
PushToConsole("CrosshairBarMin 30");
PushToConsole("CrosshairBarMax 30");
PushToConsole("HitCrossHairMAXPerturb 0");
PushToConsole("HitCrossHairMINPerturb 0");
PushToConsole("HitCrossHairSize 0");
PushToConsole("CrossHair_FiringDuration 0");
PushToConsole("ScopeUDRadius 0");
PushToConsole("ScopeLRRadius 0");
PushToConsole("ScopeUPGap 0");
PushToConsole("ScopeLRGap 0");
PushToConsole("ShowBreath 0");
cross4 = true;
} 
}
if(GetAsyncKeyState(VK_F10)<0){
if(cross5){
PushToConsole("CrossHair_DefaultLength 10");
PushToConsole("CrossHair_DefaultGapLength 1");
PushToConsole("CrosshairGapMin 0");
PushToConsole("CrosshairGapMax 2");
PushToConsole("CrosshairBarMin 10");
PushToConsole("CrosshairBarMax 10");
PushToConsole("HitCrossHairMAXPerturb 0");
PushToConsole("HitCrossHairMINPerturb 0");
PushToConsole("HitCrossHairSize 0");
PushToConsole("CrossHair_FiringDuration 0");
PushToConsole("ScopeUDRadius 0");
PushToConsole("ScopeLRRadius 0");
PushToConsole("ScopeUPGap 0");
PushToConsole("ScopeLRGap 0");
PushToConsole("ShowBreath 0");
cross5 = false;
}else{
PushToConsole("CrossHair_DefaultLength 75");
PushToConsole("CrossHair_DefaultGapLength 1");
PushToConsole("CrosshairGapMin 0");
PushToConsole("CrosshairGapMax 1");
PushToConsole("CrosshairBarMin 10");
PushToConsole("CrosshairBarMax 10");
PushToConsole("HitCrossHairMAXPerturb 0");
PushToConsole("HitCrossHairMINPerturb 0");
PushToConsole("HitCrossHairSize 0");
PushToConsole("CrossHair_FiringDuration 0");
PushToConsole("ScopeUDRadius 0");
PushToConsole("ScopeLRRadius 0");
PushToConsole("ScopeUPGap 0");
PushToConsole("ScopeLRGap 0");
PushToConsole("ShowBreath 0");
cross5 = true;
} 
}
if(GetAsyncKeyState(VK_F11)<0){
if(glow){
PushToConsole("ScreenGlowEnable 0");
glow = false;
}else{
PushToConsole("ScreenGlowEnable 1");
glow = true;
}
}
if(GetAsyncKeyState(VK_F12)<0){
if(bright){
PushToConsole("FullBright 0");
bright = false;
}else{
PushToConsole("FullBright 1");
bright = true;
}
}



if(GetAsyncKeyState(VK_NUMPAD8)<0){ 
if(flykey){ 
PushToConsole( "PlayerGravity 800" ); 
flykey = false;
}else{ 

PushToConsole( "PlayerGravity -800" ); 
flykey = true;

} }

Sleep(25);
}
}

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;
}
it gives me theese three errors:


please help!
Quote Originally Posted by xXTheFirstXx View Post
@CAFlames
Code:
#include "stdafx.h"
#include <windows.h>
void PushToConsole ( const char* cmd )
{
_asm
{
PUSH cmd
MOV EAX, 0x485F60
CALL EAX
ADD ESP, 0x4
}
}


bool IsGameReadyForHook()
{
if( GetModuleHandleA( "d3d9.dll" ) != NULL 
&& GetModuleHandleA( "ClientFX.fxd" ) != NULL 
&& GetModuleHandleA( "CShell.dll" ) != NULL )
return true;

return false;
}

bool Memoria( void * pDest, char * szPatch, size_t sSize ){
DWORD dwOrgProtect = NULL;
if ( !VirtualProtect ( pDest, sSize, PAGE_EXECUTE_READWRITE, &dwOrgProtect ))
return FALSE;


memcpy( pDest, szPatch, sSize );
VirtualProtect( pDest, sSize, dwOrgProtect, NULL );
return TRUE;
}

#define ADR_RECOIL1 0x37497B00
#define ADR_RECOIL2 0x375AAA69
#define ADR_RECOIL3 0x37497B14
#define ADR_RECOIL4 0x3741B570
#define ADR_RELOAD1 0x37497B20
void main()
{
MessageBoxA(NULL," Thank you for using The First's hack [Contact me, xXTheFirstXx, at mpgh.net]! ","TheFirst's hack",MB_OK); 
while (!IsGameReadyForHook()){

}


bool nxchams = false;
bool fog = false;
bool speed = false;
bool spread = false;
bool tracers = false;
bool showfps = false;
bool recoil = false;
bool reload = false;
bool unlockcursor = false;
bool drawgun = false;
bool sjump = false;
bool wireframe = false;
bool glitcher = false;
bool skeleton = false;
bool cross2 = false;
bool cross3 = false;
bool cross4 = false;
bool cross5 = false;
bool glow = false;
bool bright = false;
bool flykey = false;
while(true){

}
if(GetAsyncKeyState(VK_NUMPAD0)<0){
if(nxchams){
PushToConsole("SkelModelStencil 0");
Memoria(( void* )( 0x372FF456 ), "\x75\x09", 2 );
Memoria(( void* )( 0x37232B48 ), "\x90\x25\x23\x37", 4 );
nxchams = false;
}else{
PushToConsole("SkelModelStencil 1");
Memoria(( void* )( 0x372FF456 ), "\x90\x90", 2 );
Memoria(( void* )( 0x37232B48 ), "\x90\x90\x90\x90", 4 );
nxchams = true;

}}
if(GetAsyncKeyState(VK_NUMPAD2)<0){
if(fog){
PushToConsole("FogEnable 1");
fog = false;
} else {
PushToConsole("FogEnable 0");
fog = true;
}
}
if(GetAsyncKeyState(VK_NUMPAD3)<0){
if(speed){
PushToConsole("BaseMoveAccel 3000");
PushToConsole("StartAccel 500");
PushToConsole("MaxAccel 3000");
PushToConsole("AccelInc 6000");
PushToConsole("WalkVel 70");
PushToConsole("FRunVel 285");
PushToConsole("BRunVel 285");
PushToConsole("SRunVel 285");
PushToConsole("DuckVel 50");
speed = false;
} else {
PushToConsole("BaseMoveAccel 3000");
PushToConsole("StartAccel 3000");
PushToConsole("MaxAccel 3000");
PushToConsole("AccelInc 3000");
PushToConsole("WalkVel 3000");
PushToConsole("FRunVel 3000");
PushToConsole("BRunVel 3000");
PushToConsole("SRunVel 3000");
PushToConsole("DuckVel 3000");
speed = true;
}
}
if(GetAsyncKeyState(VK_NUMPAD4)<0){
if(spread){
PushToConsole("PerturbRotationEffect 3");
PushToConsole("PerturbIncreaseSpeed 3");
PushToConsole("PerturbDecreaseSpeed 9");
PushToConsole("PerturbWalkPercent 0");
PushToConsole("PerturbRecoil 9");
PushToConsole("FireMovePerturb 9");
PushToConsole("ZoomedFireMoveDuckPerturb 9");
PushToConsole("ZoomedFireMovePerturb 9");
PushToConsole("ZoomedFireDuckPerturb 9");
spread = false;
} else {
PushToConsole("PerturbRotationEffect 0"); 
PushToConsole("PerturbIncreaseSpeed 0"); 
PushToConsole("PerturbWalkPercent 0"); 
PushToConsole("PerturbFiringIncreaseSpeed 0");
PushToConsole("PerturbRecoil 0");
PushToConsole("FireMovePerturb 0");
PushToConsole("ZoomedFireMoveDuckPerturb 0");
PushToConsole("ZoomedFireMovePerturb 0");
PushToConsole("ZoomedFireDuckPerturb 0");
spread = true;
}
}
if(GetAsyncKeyState(VK_END)<0){
if(tracers){
PushToConsole("ShowFirePath 0");
tracers = false;
} else {
PushToConsole("ShowFirePath 1");
tracers = true;
}
}
if(GetAsyncKeyState(VK_SUBTRACT)<0){
if(sjump){
PushToConsole("JumpVel 330");
sjump = false;
} else {
PushToConsole("JumpVel 660");
sjump = true;
}
}
if(GetAsyncKeyState(VK_NUMPAD9)<0){
if(showfps){
PushToConsole("ShowFps 0");
showfps = false;
} else {
PushToConsole("ShowFps 1");
showfps = true;
}
}
if(GetAsyncKeyState(VK_NUMPAD5)<0){
if(recoil){
Memoria(( void* )( ADR_RECOIL1 ), "\xD8\x66\x54", 3 ); 
Memoria(( void* )( ADR_RECOIL2 ), "\xD9\x46\x54", 3 ); 
Memoria(( void* )( ADR_RECOIL3 ), "\xD9\x5E\x54\xD9\x46\x48", 6 ); 
Memoria(( void* )( ADR_RECOIL4 ), "\xD9\x5E\x48", 3 ); 
recoil = false;
}else{
Memoria(( void* )( ADR_RECOIL1 ), "\x90\x90\x90", 3 ); 
Memoria(( void* )( ADR_RECOIL2 ), "\x90\x90\x90", 3 ); 
Memoria(( void* )( ADR_RECOIL3 ), "\x90\x90\x90\x90\x90\x90", 6 ); 
Memoria(( void* )( ADR_RECOIL4 ), "\x90\x90\x90", 3 ); 
recoil = true;
}
}
if(GetAsyncKeyState(VK_NUMPAD6)<0){	
if(reload){
Memoria(( void* )( ADR_RELOAD1 ), "\x0F\x84\xB1\x01\x00\x00", 6 );
reload = false;
}else{
Memoria(( void* )( ADR_RELOAD1 ), "\x90\x90\x90\x90\x90\x90", 6 );
reload = true;
}
}
if(GetAsyncKeyState(VK_NUMPAD7)<0){
if(drawgun){
PushToConsole("drawguns 1");
drawgun = false;
} else {
PushToConsole("drawguns 0");
drawgun = true;
}
}



if(GetAsyncKeyState(VK_NEXT)<0){
if(glitcher){
PushToConsole("BaseMoveAccel 3000");
PushToConsole("StartAccel 500");
PushToConsole("MaxAccel 3000");
PushToConsole("AccelInc 6000");
PushToConsole("WalkVel 70");
PushToConsole("FRunVel 285");
PushToConsole("BRunVel 285");
PushToConsole("SRunVel 285");
PushToConsole("DuckVel 50");
glitcher = false;
} else {
PushToConsole("BaseMoveAccel 90000");
PushToConsole("StartAccel 90000");
PushToConsole("MaxAccel 90000");
PushToConsole("AccelInc 90000");
PushToConsole("WalkVel 90000"); 
PushToConsole("FRunVel 90000"); 
PushToConsole("BRunVel 90000"); 
PushToConsole("SRunVel 90000"); 
glitcher = true;
}
}
if(GetAsyncKeyState(VK_HOME)<0){
if(wireframe){
PushToConsole("WireFrame 0");
wireframe = false;
} else {
PushToConsole("WireFrame 1");
wireframe = true;
}
}
if(GetAsyncKeyState(VK_DELETE)<0){
if(skeleton){
PushToConsole("ModelDebug_DrawSkeleton 0");
skeleton = false;
} else {
PushToConsole("ModelDebug_DrawSkeleton 1");
skeleton = true;
}
}

if(GetAsyncKeyState(VK_F7)<0){
if(cross2){
PushToConsole("CrossHair_DefaultLength 10");
PushToConsole("CrossHair_DefaultGapLength 1");
PushToConsole("CrosshairGapMin 0");
PushToConsole("CrosshairGapMax 2");
PushToConsole("CrosshairBarMin 10");
PushToConsole("CrosshairBarMax 10");
PushToConsole("HitCrossHairMAXPerturb 0");
PushToConsole("HitCrossHairMINPerturb 0");
PushToConsole("HitCrossHairSize 0");
PushToConsole("CrossHair_FiringDuration 0");
PushToConsole("ScopeUDRadius 0");
PushToConsole("ScopeLRRadius 0");
PushToConsole("ScopeUPGap 0");
PushToConsole("ScopeLRGap 0");
PushToConsole("ShowBreath 0");
cross2 = false;
}else{
PushToConsole("CrossHair_DefaultLength 5");
PushToConsole("CrossHair_DefaultGapLength 2");
PushToConsole("CrosshairGapMin 0");
PushToConsole("CrosshairGapMax 1");
PushToConsole("CrosshairBarMin 5");
PushToConsole("CrosshairBarMax 5");
PushToConsole("HitCrossHairMAXPerturb 0");
PushToConsole("HitCrossHairMINPerturb 0");
PushToConsole("HitCrossHairSize 0");
PushToConsole("CrossHair_FiringDuration 0");
PushToConsole("ScopeUDRadius 0");
PushToConsole("ScopeLRRadius 0");
PushToConsole("ScopeUPGap 0");
PushToConsole("ScopeLRGap 0");
PushToConsole("ShowBreath 0");
cross2 = true;

} 
}
if(GetAsyncKeyState(VK_F8)<0){
if(cross3){
PushToConsole("CrossHair_DefaultLength 10");
PushToConsole("CrossHair_DefaultGapLength 1");
PushToConsole("CrosshairGapMin 0");
PushToConsole("CrosshairGapMax 2");
PushToConsole("CrosshairBarMin 10");
PushToConsole("CrosshairBarMax 10");
PushToConsole("HitCrossHairMAXPerturb 0");
PushToConsole("HitCrossHairMINPerturb 0");
PushToConsole("HitCrossHairSize 0");
PushToConsole("CrossHair_FiringDuration 0");
PushToConsole("ScopeUDRadius 0");
PushToConsole("ScopeLRRadius 0");
PushToConsole("ScopeUPGap 0");
PushToConsole("ScopeLRGap 0");
PushToConsole("ShowBreath 0");
cross3 = false;
}else{
PushToConsole("CrossHair_DefaultLength 20");
PushToConsole("CrossHair_DefaultGapLength 3");
PushToConsole("CrosshairGapMin 0");
PushToConsole("CrosshairGapMax 1");
PushToConsole("CrosshairBarMin 10");
PushToConsole("CrosshairBarMax 10");
PushToConsole("HitCrossHairMAXPerturb 0");
PushToConsole("HitCrossHairMINPerturb 0");
PushToConsole("HitCrossHairSize 0");
PushToConsole("CrossHair_FiringDuration 0");
PushToConsole("ScopeUDRadius 0");
PushToConsole("ScopeLRRadius 0");
PushToConsole("ScopeUPGap 0");
PushToConsole("ScopeLRGap 0");
PushToConsole("ShowBreath 0");
cross3 = true;
} 
}
if(GetAsyncKeyState(VK_F9)<0){
if(cross4){
PushToConsole("CrossHair_DefaultLength 10");
PushToConsole("CrossHair_DefaultGapLength 1");
PushToConsole("CrosshairGapMin 0");
PushToConsole("CrosshairGapMax 2");
PushToConsole("CrosshairBarMin 10");
PushToConsole("CrosshairBarMax 10");
PushToConsole("HitCrossHairMAXPerturb 0");
PushToConsole("HitCrossHairMINPerturb 0");
PushToConsole("HitCrossHairSize 0");
PushToConsole("CrossHair_FiringDuration 0");
PushToConsole("ScopeUDRadius 0");
PushToConsole("ScopeLRRadius 0");
PushToConsole("ScopeUPGap 0");
PushToConsole("ScopeLRGap 0");
PushToConsole("ShowBreath 0");
cross4 = false;
}else{
PushToConsole("CrossHair_DefaultLength 40");
PushToConsole("CrossHair_DefaultGapLength 1");
PushToConsole("CrosshairGapMin 0");
PushToConsole("CrosshairGapMax 1");
PushToConsole("CrosshairBarMin 30");
PushToConsole("CrosshairBarMax 30");
PushToConsole("HitCrossHairMAXPerturb 0");
PushToConsole("HitCrossHairMINPerturb 0");
PushToConsole("HitCrossHairSize 0");
PushToConsole("CrossHair_FiringDuration 0");
PushToConsole("ScopeUDRadius 0");
PushToConsole("ScopeLRRadius 0");
PushToConsole("ScopeUPGap 0");
PushToConsole("ScopeLRGap 0");
PushToConsole("ShowBreath 0");
cross4 = true;
} 
}
if(GetAsyncKeyState(VK_F10)<0){
if(cross5){
PushToConsole("CrossHair_DefaultLength 10");
PushToConsole("CrossHair_DefaultGapLength 1");
PushToConsole("CrosshairGapMin 0");
PushToConsole("CrosshairGapMax 2");
PushToConsole("CrosshairBarMin 10");
PushToConsole("CrosshairBarMax 10");
PushToConsole("HitCrossHairMAXPerturb 0");
PushToConsole("HitCrossHairMINPerturb 0");
PushToConsole("HitCrossHairSize 0");
PushToConsole("CrossHair_FiringDuration 0");
PushToConsole("ScopeUDRadius 0");
PushToConsole("ScopeLRRadius 0");
PushToConsole("ScopeUPGap 0");
PushToConsole("ScopeLRGap 0");
PushToConsole("ShowBreath 0");
cross5 = false;
}else{
PushToConsole("CrossHair_DefaultLength 75");
PushToConsole("CrossHair_DefaultGapLength 1");
PushToConsole("CrosshairGapMin 0");
PushToConsole("CrosshairGapMax 1");
PushToConsole("CrosshairBarMin 10");
PushToConsole("CrosshairBarMax 10");
PushToConsole("HitCrossHairMAXPerturb 0");
PushToConsole("HitCrossHairMINPerturb 0");
PushToConsole("HitCrossHairSize 0");
PushToConsole("CrossHair_FiringDuration 0");
PushToConsole("ScopeUDRadius 0");
PushToConsole("ScopeLRRadius 0");
PushToConsole("ScopeUPGap 0");
PushToConsole("ScopeLRGap 0");
PushToConsole("ShowBreath 0");
cross5 = true;
} 
}
if(GetAsyncKeyState(VK_F11)<0){
if(glow){
PushToConsole("ScreenGlowEnable 0");
glow = false;
}else{
PushToConsole("ScreenGlowEnable 1");
glow = true;
}
}
if(GetAsyncKeyState(VK_F12)<0){
if(bright){
PushToConsole("FullBright 0");
bright = false;
}else{
PushToConsole("FullBright 1");
bright = true;
}
}



if(GetAsyncKeyState(VK_NUMPAD8)<0){ 
if(flykey){ 
PushToConsole( "PlayerGravity 800" ); 
flykey = false;
}else{ 

PushToConsole( "PlayerGravity -800" ); 
flykey = true;

} }

Sleep(25);
}
}

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;
}
it gives me theese three errors:


please help!
Copy what I changed above.. basically remove the LTClient thing below the new PTC method.
Quote Originally Posted by xXTheFirstXx View Post
@CAFlames
Code:
#include "stdafx.h"
#include <windows.h>
void PushToConsole ( const char* cmd )
{
_asm
{
PUSH cmd
MOV EAX, 0x485F60
CALL EAX
ADD ESP, 0x4
}
}
DWORD *LTClient = ( DWORD* )( 0x378F5D90 );
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;
}

bool Memoria( void * pDest, char * szPatch, size_t sSize ){
DWORD dwOrgProtect = NULL;
if ( !VirtualProtect ( pDest, sSize, PAGE_EXECUTE_READWRITE, &dwOrgProtect ))
return FALSE;


memcpy( pDest, szPatch, sSize );
VirtualProtect( pDest, sSize, dwOrgProtect, NULL );
return TRUE;
}

#define ADR_RECOIL1 0x37497B00
#define ADR_RECOIL2 0x375AAA69
#define ADR_RECOIL3 0x37497B14
#define ADR_RECOIL4 0x3741B570
#define ADR_RELOAD1 0x37497B20
void main()
{
MessageBoxA(NULL," Thank you for using The First's hack [Contact me, xXTheFirstXx, at mpgh.net]! ","TheFirst's hack",MB_OK); 
while (!IsGameReadyForHook()){

}


bool nxchams = false;
bool fog = false;
bool speed = false;
bool spread = false;
bool tracers = false;
bool showfps = false;
bool recoil = false;
bool reload = false;
bool unlockcursor = false;
bool drawgun = false;
bool sjump = false;
bool wireframe = false;
bool glitcher = false;
bool skeleton = false;
bool cross2 = false;
bool cross3 = false;
bool cross4 = false;
bool cross5 = false;
bool glow = false;
bool bright = false;
bool flykey = false;
while(true){

}
if(GetAsyncKeyState(VK_NUMPAD0)<0){
if(nxchams){
PushToConsole("SkelModelStencil 0");
Memoria(( void* )( 0x372FF456 ), "\x75\x09", 2 );
Memoria(( void* )( 0x37232B48 ), "\x90\x25\x23\x37", 4 );
nxchams = false;
}else{
PushToConsole("SkelModelStencil 1");
Memoria(( void* )( 0x372FF456 ), "\x90\x90", 2 );
Memoria(( void* )( 0x37232B48 ), "\x90\x90\x90\x90", 4 );
nxchams = true;

}}
if(GetAsyncKeyState(VK_NUMPAD2)<0){
if(fog){
PushToConsole("FogEnable 1");
fog = false;
} else {
PushToConsole("FogEnable 0");
fog = true;
}
}
if(GetAsyncKeyState(VK_NUMPAD3)<0){
if(speed){
PushToConsole("BaseMoveAccel 3000");
PushToConsole("StartAccel 500");
PushToConsole("MaxAccel 3000");
PushToConsole("AccelInc 6000");
PushToConsole("WalkVel 70");
PushToConsole("FRunVel 285");
PushToConsole("BRunVel 285");
PushToConsole("SRunVel 285");
PushToConsole("DuckVel 50");
speed = false;
} else {
PushToConsole("BaseMoveAccel 3000");
PushToConsole("StartAccel 3000");
PushToConsole("MaxAccel 3000");
PushToConsole("AccelInc 3000");
PushToConsole("WalkVel 3000");
PushToConsole("FRunVel 3000");
PushToConsole("BRunVel 3000");
PushToConsole("SRunVel 3000");
PushToConsole("DuckVel 3000");
speed = true;
}
}
if(GetAsyncKeyState(VK_NUMPAD4)<0){
if(spread){
PushToConsole("PerturbRotationEffect 3");
PushToConsole("PerturbIncreaseSpeed 3");
PushToConsole("PerturbDecreaseSpeed 9");
PushToConsole("PerturbWalkPercent 0");
PushToConsole("PerturbRecoil 9");
PushToConsole("FireMovePerturb 9");
PushToConsole("ZoomedFireMoveDuckPerturb 9");
PushToConsole("ZoomedFireMovePerturb 9");
PushToConsole("ZoomedFireDuckPerturb 9");
spread = false;
} else {
PushToConsole("PerturbRotationEffect 0"); 
PushToConsole("PerturbIncreaseSpeed 0"); 
PushToConsole("PerturbWalkPercent 0"); 
PushToConsole("PerturbFiringIncreaseSpeed 0");
PushToConsole("PerturbRecoil 0");
PushToConsole("FireMovePerturb 0");
PushToConsole("ZoomedFireMoveDuckPerturb 0");
PushToConsole("ZoomedFireMovePerturb 0");
PushToConsole("ZoomedFireDuckPerturb 0");
spread = true;
}
}
if(GetAsyncKeyState(VK_END)<0){
if(tracers){
PushToConsole("ShowFirePath 0");
tracers = false;
} else {
PushToConsole("ShowFirePath 1");
tracers = true;
}
}
if(GetAsyncKeyState(VK_SUBTRACT)<0){
if(sjump){
PushToConsole("JumpVel 330");
sjump = false;
} else {
PushToConsole("JumpVel 660");
sjump = true;
}
}
if(GetAsyncKeyState(VK_NUMPAD9)<0){
if(showfps){
PushToConsole("ShowFps 0");
showfps = false;
} else {
PushToConsole("ShowFps 1");
showfps = true;
}
}
if(GetAsyncKeyState(VK_NUMPAD5)<0){
if(recoil){
Memoria(( void* )( ADR_RECOIL1 ), "\xD8\x66\x54", 3 ); 
Memoria(( void* )( ADR_RECOIL2 ), "\xD9\x46\x54", 3 ); 
Memoria(( void* )( ADR_RECOIL3 ), "\xD9\x5E\x54\xD9\x46\x48", 6 ); 
Memoria(( void* )( ADR_RECOIL4 ), "\xD9\x5E\x48", 3 ); 
recoil = false;
}else{
Memoria(( void* )( ADR_RECOIL1 ), "\x90\x90\x90", 3 ); 
Memoria(( void* )( ADR_RECOIL2 ), "\x90\x90\x90", 3 ); 
Memoria(( void* )( ADR_RECOIL3 ), "\x90\x90\x90\x90\x90\x90", 6 ); 
Memoria(( void* )( ADR_RECOIL4 ), "\x90\x90\x90", 3 ); 
recoil = true;
}
}
if(GetAsyncKeyState(VK_NUMPAD6)<0){	
if(reload){
Memoria(( void* )( ADR_RELOAD1 ), "\x0F\x84\xB1\x01\x00\x00", 6 );
reload = false;
}else{
Memoria(( void* )( ADR_RELOAD1 ), "\x90\x90\x90\x90\x90\x90", 6 );
reload = true;
}
}
if(GetAsyncKeyState(VK_NUMPAD7)<0){
if(drawgun){
PushToConsole("drawguns 1");
drawgun = false;
} else {
PushToConsole("drawguns 0");
drawgun = true;
}
}



if(GetAsyncKeyState(VK_NEXT)<0){
if(glitcher){
PushToConsole("BaseMoveAccel 3000");
PushToConsole("StartAccel 500");
PushToConsole("MaxAccel 3000");
PushToConsole("AccelInc 6000");
PushToConsole("WalkVel 70");
PushToConsole("FRunVel 285");
PushToConsole("BRunVel 285");
PushToConsole("SRunVel 285");
PushToConsole("DuckVel 50");
glitcher = false;
} else {
PushToConsole("BaseMoveAccel 90000");
PushToConsole("StartAccel 90000");
PushToConsole("MaxAccel 90000");
PushToConsole("AccelInc 90000");
PushToConsole("WalkVel 90000"); 
PushToConsole("FRunVel 90000"); 
PushToConsole("BRunVel 90000"); 
PushToConsole("SRunVel 90000"); 
glitcher = true;
}
}
if(GetAsyncKeyState(VK_HOME)<0){
if(wireframe){
PushToConsole("WireFrame 0");
wireframe = false;
} else {
PushToConsole("WireFrame 1");
wireframe = true;
}
}
if(GetAsyncKeyState(VK_DELETE)<0){
if(skeleton){
PushToConsole("ModelDebug_DrawSkeleton 0");
skeleton = false;
} else {
PushToConsole("ModelDebug_DrawSkeleton 1");
skeleton = true;
}
}

if(GetAsyncKeyState(VK_F7)<0){
if(cross2){
PushToConsole("CrossHair_DefaultLength 10");
PushToConsole("CrossHair_DefaultGapLength 1");
PushToConsole("CrosshairGapMin 0");
PushToConsole("CrosshairGapMax 2");
PushToConsole("CrosshairBarMin 10");
PushToConsole("CrosshairBarMax 10");
PushToConsole("HitCrossHairMAXPerturb 0");
PushToConsole("HitCrossHairMINPerturb 0");
PushToConsole("HitCrossHairSize 0");
PushToConsole("CrossHair_FiringDuration 0");
PushToConsole("ScopeUDRadius 0");
PushToConsole("ScopeLRRadius 0");
PushToConsole("ScopeUPGap 0");
PushToConsole("ScopeLRGap 0");
PushToConsole("ShowBreath 0");
cross2 = false;
}else{
PushToConsole("CrossHair_DefaultLength 5");
PushToConsole("CrossHair_DefaultGapLength 2");
PushToConsole("CrosshairGapMin 0");
PushToConsole("CrosshairGapMax 1");
PushToConsole("CrosshairBarMin 5");
PushToConsole("CrosshairBarMax 5");
PushToConsole("HitCrossHairMAXPerturb 0");
PushToConsole("HitCrossHairMINPerturb 0");
PushToConsole("HitCrossHairSize 0");
PushToConsole("CrossHair_FiringDuration 0");
PushToConsole("ScopeUDRadius 0");
PushToConsole("ScopeLRRadius 0");
PushToConsole("ScopeUPGap 0");
PushToConsole("ScopeLRGap 0");
PushToConsole("ShowBreath 0");
cross2 = true;

} 
}
if(GetAsyncKeyState(VK_F8)<0){
if(cross3){
PushToConsole("CrossHair_DefaultLength 10");
PushToConsole("CrossHair_DefaultGapLength 1");
PushToConsole("CrosshairGapMin 0");
PushToConsole("CrosshairGapMax 2");
PushToConsole("CrosshairBarMin 10");
PushToConsole("CrosshairBarMax 10");
PushToConsole("HitCrossHairMAXPerturb 0");
PushToConsole("HitCrossHairMINPerturb 0");
PushToConsole("HitCrossHairSize 0");
PushToConsole("CrossHair_FiringDuration 0");
PushToConsole("ScopeUDRadius 0");
PushToConsole("ScopeLRRadius 0");
PushToConsole("ScopeUPGap 0");
PushToConsole("ScopeLRGap 0");
PushToConsole("ShowBreath 0");
cross3 = false;
}else{
PushToConsole("CrossHair_DefaultLength 20");
PushToConsole("CrossHair_DefaultGapLength 3");
PushToConsole("CrosshairGapMin 0");
PushToConsole("CrosshairGapMax 1");
PushToConsole("CrosshairBarMin 10");
PushToConsole("CrosshairBarMax 10");
PushToConsole("HitCrossHairMAXPerturb 0");
PushToConsole("HitCrossHairMINPerturb 0");
PushToConsole("HitCrossHairSize 0");
PushToConsole("CrossHair_FiringDuration 0");
PushToConsole("ScopeUDRadius 0");
PushToConsole("ScopeLRRadius 0");
PushToConsole("ScopeUPGap 0");
PushToConsole("ScopeLRGap 0");
PushToConsole("ShowBreath 0");
cross3 = true;
} 
}
if(GetAsyncKeyState(VK_F9)<0){
if(cross4){
PushToConsole("CrossHair_DefaultLength 10");
PushToConsole("CrossHair_DefaultGapLength 1");
PushToConsole("CrosshairGapMin 0");
PushToConsole("CrosshairGapMax 2");
PushToConsole("CrosshairBarMin 10");
PushToConsole("CrosshairBarMax 10");
PushToConsole("HitCrossHairMAXPerturb 0");
PushToConsole("HitCrossHairMINPerturb 0");
PushToConsole("HitCrossHairSize 0");
PushToConsole("CrossHair_FiringDuration 0");
PushToConsole("ScopeUDRadius 0");
PushToConsole("ScopeLRRadius 0");
PushToConsole("ScopeUPGap 0");
PushToConsole("ScopeLRGap 0");
PushToConsole("ShowBreath 0");
cross4 = false;
}else{
PushToConsole("CrossHair_DefaultLength 40");
PushToConsole("CrossHair_DefaultGapLength 1");
PushToConsole("CrosshairGapMin 0");
PushToConsole("CrosshairGapMax 1");
PushToConsole("CrosshairBarMin 30");
PushToConsole("CrosshairBarMax 30");
PushToConsole("HitCrossHairMAXPerturb 0");
PushToConsole("HitCrossHairMINPerturb 0");
PushToConsole("HitCrossHairSize 0");
PushToConsole("CrossHair_FiringDuration 0");
PushToConsole("ScopeUDRadius 0");
PushToConsole("ScopeLRRadius 0");
PushToConsole("ScopeUPGap 0");
PushToConsole("ScopeLRGap 0");
PushToConsole("ShowBreath 0");
cross4 = true;
} 
}
if(GetAsyncKeyState(VK_F10)<0){
if(cross5){
PushToConsole("CrossHair_DefaultLength 10");
PushToConsole("CrossHair_DefaultGapLength 1");
PushToConsole("CrosshairGapMin 0");
PushToConsole("CrosshairGapMax 2");
PushToConsole("CrosshairBarMin 10");
PushToConsole("CrosshairBarMax 10");
PushToConsole("HitCrossHairMAXPerturb 0");
PushToConsole("HitCrossHairMINPerturb 0");
PushToConsole("HitCrossHairSize 0");
PushToConsole("CrossHair_FiringDuration 0");
PushToConsole("ScopeUDRadius 0");
PushToConsole("ScopeLRRadius 0");
PushToConsole("ScopeUPGap 0");
PushToConsole("ScopeLRGap 0");
PushToConsole("ShowBreath 0");
cross5 = false;
}else{
PushToConsole("CrossHair_DefaultLength 75");
PushToConsole("CrossHair_DefaultGapLength 1");
PushToConsole("CrosshairGapMin 0");
PushToConsole("CrosshairGapMax 1");
PushToConsole("CrosshairBarMin 10");
PushToConsole("CrosshairBarMax 10");
PushToConsole("HitCrossHairMAXPerturb 0");
PushToConsole("HitCrossHairMINPerturb 0");
PushToConsole("HitCrossHairSize 0");
PushToConsole("CrossHair_FiringDuration 0");
PushToConsole("ScopeUDRadius 0");
PushToConsole("ScopeLRRadius 0");
PushToConsole("ScopeUPGap 0");
PushToConsole("ScopeLRGap 0");
PushToConsole("ShowBreath 0");
cross5 = true;
} 
}
if(GetAsyncKeyState(VK_F11)<0){
if(glow){
PushToConsole("ScreenGlowEnable 0");
glow = false;
}else{
PushToConsole("ScreenGlowEnable 1");
glow = true;
}
}
if(GetAsyncKeyState(VK_F12)<0){
if(bright){
PushToConsole("FullBright 0");
bright = false;
}else{
PushToConsole("FullBright 1");
bright = true;
}
}



if(GetAsyncKeyState(VK_NUMPAD8)<0){ 
if(flykey){ 
PushToConsole( "PlayerGravity 800" ); 
flykey = false;
}else{ 

PushToConsole( "PlayerGravity -800" ); 
flykey = true;

} }

Sleep(25);
}
}

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;
}

it gives me theese three errors:


please help!

I don't code in C++ but i think Visual C++ is telling yo uexactlly whats wrong?
Quote Originally Posted by elcamu987 View Post
What do you code on @OBrozz
Delphi, i heard its a preferred language for hacking a free game type but sadly there are no delphi sources except for what departure has posted. Thank him.
Quote Originally Posted by OBrozz View Post
Delphi, i heard its a preferred language for hacking a free game type but sadly there are no delphi sources except for what departure has posted. Thank him.
I know Delphi, I might release some sources. Or you can just learn the language and MAKE YOUR OWN
Learn C++, Learn Combat Arms and how it works.

And WRONG SECTION
wow i dont understand anything about it
Posts 1–15 of 28 · Page 1 of 2

Post a Reply

Tags for this Thread

None

Talk with us