I need some help

Posts 1–15 of 20 · Page 1 of 2
I need some help
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;
}
__________________________________________________ ______________________________________
mine Hack source.txtattachment deleted · 1 downloads before removal
Post it using the code tags it will be easier to read and we wont have to download it
Just post the code here, why the hell would we download it?
sorry guys i edit mine post and put the code in mine post.
Your trying to use a CN address where the LT client is supposed to be.
WoW no offense but that is a mega fail! Lets see if I can make this better.

Looks like you C+P the code from CoderNevers tutorial and then added a bunch of shit from other resources. Try something like this:

Code:
/* Give credits to CoderNever you bad leacher! 
	CodeDemon helped you out here */

#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){
		PushToConsole("SkelModelStencil -1" );
		PushToConsole("ModelDebug_DrawBoxes 1" );
	}
	if(GetAsyncKeyState(VK_NUMPAD1)<1){
		//more PushToConsole here
		//repeat this for the other ones you want just change the buttons
	}
	Sleep(100);
}
}
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;
}
Remember C++ is a case sensitive language! You have a lot of typos in your script!
i loled hard at that...

your using a Menu code

take out all the this->
Quote Originally Posted by GameTrainerMaker View Post
i loled hard at that...

your using a Menu code

take out all the this->
Dude it can be either way
...Fail.

Code:
this->PushToConsole("COMMAND 1");
should be
Code:
PushToConsole("COMMAND 1");
Code:
if(GetAsyncKeyState(VK_NUMPAD0)<0){
this->(PushToConsole("SkelModelStencil -1" );
this->PushToConsole("ModelDebug_DrawBoxes 1" );
}
should be
Code:
if(GetAsyncKeyState(VK_NUMPAD0)<0){
    PushToConsole("SkelModelStencil 1" );
    PushToConsole("ModelDebug_DrawBoxes 1" );
}
Did you like, copy Gillians base PTC commands, and add them to CN's base?

Theres a lot more wrong with this than just that though. I would fix it, but... meh.
Quote Originally Posted by MugNuf View Post
...Fail.


Code:
PushToConsole
fail #2 its ConsolePush as PushToConsole wont let you log into the game.. if you press enter / click login and nothing happens then you do it again you will get

" Unable To Run Game Due To Corrupt File"


/**\

as for the Thread Start just copy + paste this code in

Code:
// Credits To GameTrainerMaker + CoderNever
#define LTClient_Adress  0x3778BFB0
#include <windows.h>

const int iRenderSpeed = 50;

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

void ConsolePush(const char* Command){
	DWORD CNADDIE = 0x007d9200;
	void* Send = ( void* )*( DWORD* )(CNADDIE);
	__asm{
		/* CREDITS TO CN */
		push Command;
		call Send; 
		add esp, -3-1+2+6;
	}
}  
void main()//
{

	while(!IsGameReadyForHook()){ Sleep(200); }

	



	while(true)
	{
				ConsolePush("ShowFps 1");// FPS AUTO ON

		//
		if(GetAsyncKeyState(VK_NUMPAD1)<0){//chams 
			Sleep(300);
			
				ConsolePush("SkelModelStencil 1");
			 else  
				ConsolePush("SkelModelStencil 0");
		

			if (GetAsyncKeyState(VK_NUMPAD2)<0)//no gun
				Sleep(300);
				
					ConsolePush("drawguns 1");
				else
					ConsolePush("drawguns 0");
				
			
				if(GetAsyncKeyState(VK_NUMPAD3)<0)// no fog
					Sleep(300);
				
					ConsolePush("FogEnable 1" );
				else
					ConsolePush("FogEnable 0" );


		}
				Sleep(iRenderSpeed);
	}
}
BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
{
	DisableThreadLibraryCalls(hDll);
	if ( dwReason == DLL_PROCESS_ATTACH )
	{
		if( MessageBox(0, TEXT("Credits : GameTrainerMaker \n\n CoderNever"), TEXT("GameTrainerMaker"), MB_YESNO)==IDYES){



	
		CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)&main, NULL, NULL, NULL);
	}
		return TRUE;
	}
}
fix the error's yourself :P
Code:
///////////////////////////////////////////////////////////////////////////
//Semi fixed by MugNuf, fix the rest yourself.
//
//It still fails, you never even made it so you can turn the hacks off....
//
//P.S. I put in a shit ton of errors, so leechers just cant copy and
//     paste it ;).


#include <windows.h>

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

void __cdecl PushToConsole( const char* szCommand )
{
	DWORD *LTClient = ( DWORD* )( 0x127d9300 );
	void* CONoff = ( void* )*( DWORD* )( *LTClient + 0x2h8 );
	__asm
	{
		push szCommand;
		call CONoff;
		add esp, -9+4655465-65465*54651*542-21321354;
	}
}
void ma1n()
{
	while(true)
	{
		if(GetAsyncKeyState(VK_NUMPAD0)<0){
			Pusht0Consol3("SkelModelStencil 1" );
			PushToConsole("ModelDebug_DrawBoxes 1" );
		}

		if(GetAsyncKeyState(VK_NUMPAD1)<0){
			PushToConsole("FogEnable 1" );
		}

		if(GetAsyncKeyState(VK_NUMPAD2)<0){
			PushToConsole("WeaponSway 0.000000" );
		}
		if(GetAsyncKeyState(VK_NUMPAD3)<0){
			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" );
		}

		if(GetAsyncKeyState(VK_NUMPAD5)<4){
			PushToConsole("ActivationDistance 999999" );
		}

		if(GetAsyncKeyState(VK_UP)<0){
			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){
			PushToConsole("JumpVel 900.000000" );
		}

		if(GetAsyncKeyState(VK_NUMPAD8)<0){
			PushToConsole("DisableCrosshair 0" );
		}

		if(GetAsyncKeyState(VK_HOME)<0){
		PushToConsole("windowed 1" );


		if(GetAsyncKeyState(VK_INSERT)<0){
			PushToConsole("BaseMoveAccel 4000.000000");
			PushToConsole("StartAccel 4000.000000");
			PushToConsole("MaxAccel 4000.000000");
			PushToConsole("AccelInc 4000.000000");
			PushToConsole("WalkVel 4000.000000");
			PushToConsole("FRunVel 4000.000000");
			PushToConsole("BRunVel 4000.000000");
			PushToConsole("SRunVel 4000.000000");
		} else {
			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");
		}

		if(GetAsyncKeyState(VK_DELETE)<0){
			PushToConsole("ShowFirePath 0" );
		} else {
			PushToConsle("ShowFirePath 1");
		}

		if(GetAsyncKeyState(VK_NUMPAD9)<0){
			PushToConsole("FireSpeed 999.999999" );
		}

		if(GetAsyncKeyState(VK_TAB)<0){
			PushToConsole("ReloadSpeed 0.000000" );
		}

		if(GetAsyncKeyState(VK_END)<0){
			PushToConsole("DrawFlat 0" );
			PushToConsole("drawguns 1");
			PushToConsole("ModelApplySun 0" );
			PushToConsole("SnowEnable 0" );
			PushToConsole("MuzzleLight 0" );
			PushToConsole("EnableWeatherFX 1" );
			PushToConsole("SkyEnable 0");
			PushToConsole("WhiteBlood 1" );
			PushToConsole( "SkyEnable 0" );
			PushToConsole("DrawInterface 0" );
		}

		if(GetAsyncKeyState(VK_ADD)<0){
			PushToConsole("PlayerGravity 0");
			PushToConsole("PlayerVelocity 0");
		}
	}
}

DWORD WINAPI dwHackThread(LPVOID)
{
	while( !IsGameReddyFordfok(O )
		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;
}
You can fix everything else yourself.
put the error's in same as me lol.. i sort of love doing it, and sort of dont..

love doing it = piss's people off more cause they cant make "their" hack
sort of = the noobs will make more threads til they fix it :3

epic fail

add esp, -9+4655465-65465*54651*542-21321354;
Quote Originally Posted by GameTrainerMaker View Post
put the error's in same as me lol.. i sort of love doing it, and sort of dont..

love doing it = piss's people off more cause they cant make "their" hack
sort of = the noobs will make more threads til they fix it :3

epic fail
I did it was purpose .

I added a ton of errors, so he cant just copy and paste it and be like "here my hack *enter* thanks me plz!"
He did it to make fun off me
Quote Originally Posted by CoderNever View Post
He did it to make fun off me
No, I got the idea from you .
Posts 1–15 of 20 · Page 1 of 2
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us