I need some help ???

Posts 1–15 of 19 · Page 1 of 2
I need some help ???
I am using combine base v3 mine problem is every time I turn on No Recoil and other address hacks it crashes mine game but the PTC hacks does not crash mine game.
here is the source.
Code:
typedef bool (*IsConnected_t)(void);
bool IsIngame()
{
	DWORD* LTBase = (DWORD*) 0x3781BE50;
	IsConnected_t pConnected = *(IsConnected_t*)(*LTBase + 0x8C);

	return pConnected();
}
void WINAPIV RunConsoleCommand( const char* cmd )
{
	_asm
	{
		PUSH cmd
		MOV EAX, 0x485E10
		CALL EAX
		ADD ESP, 0x4
	}
}
void cHacks::RenderHacks(LPDIRECT3DDEVICE9 Device)//Renders your hacks
{
	if(IsIngame())
	{
	switch ( Hack.cross ) //Draws Simple crosshair when Hack.cross equals the case
	{
	case 1:
		Tools.xhair(Device, Red);//Red Crosshair FTW
		break;
	case 2:
		Tools.xhair(Device, Blue);//Blue GAY!!!
		break;
	case 3:
		Tools.xhair(Device, Green);
		break;
	}
		if(IsIngame())
	{
		if(Hack.test1)
		{
			RunConsoleCommand("SkelModelStencil 1" );
		}else{
			RunConsoleCommand("SkelModelStencil 0" );
		}
	}
	if(IsIngame())
	{
		if(Hack.test2)
		{
			RunConsoleCommand("PerturbRotationEffect  0.000000"); 
			RunConsoleCommand("PerturbIncreaseSpeed 0.000000"); 
			RunConsoleCommand("PerturbWalkPercent 0.000000"); 
			RunConsoleCommand("PerturbFiringIncreaseSpeed 0.000000");
		}else{
			RunConsoleCommand("PerturbRotationEffect 3.000000");
			RunConsoleCommand("PerturbIncreaseSpeed 3.000000");
			RunConsoleCommand("PerturbDecreaseSpeed 9.000000");
			RunConsoleCommand("PerturbWalkPercent 0.500000");
		}
	}
	if(IsIngame())
	{
		if(Hack.test3)
		{
			RunConsoleCommand("FogEnable 0");
		}else{
			if(IsIngame())
			{
			RunConsoleCommand("FogEnable 1");
		}
	}
	if(IsIngame())
	{
		switch(Hack.test4)
		{
		case 0:
			RunConsoleCommand("BaseMoveAccel 3000.000000");
			RunConsoleCommand("StartAccel 500.000000");
			RunConsoleCommand("MaxAccel 3000.000000");
			RunConsoleCommand("AccelInc 6000.000000");
			RunConsoleCommand("WalkVel 70.000000");
			RunConsoleCommand("FRunVel 285.000000");
			RunConsoleCommand("BRunVel 285.000000");
			RunConsoleCommand("SRunVel 285.000000");
			break;
		case 1:
			RunConsoleCommand("BaseMoveAccel 1000.000000");
			RunConsoleCommand("StartAccel 1000.000000");
			RunConsoleCommand("MaxAccel 1000.000000");
			RunConsoleCommand("AccelInc 1000.000000");
			RunConsoleCommand("WalkVel 1000.000000");
			RunConsoleCommand("FRunVel 1000.000000");
			RunConsoleCommand("BRunVel 1000.000000");
			RunConsoleCommand("SRunVel 1000.000000");
			break;
		case 2:
			RunConsoleCommand("BaseMoveAccel 2000.000000");
			RunConsoleCommand("StartAccel 2000.000000");
			RunConsoleCommand("MaxAccel 2000.000000");
			RunConsoleCommand("AccelInc 2000.000000");
			RunConsoleCommand("WalkVel 2000.000000");
			RunConsoleCommand("FRunVel 2000.000000");
			RunConsoleCommand("BRunVel 2000.000000");
			RunConsoleCommand("SRunVel 2000.000000");
			break;
		case 3:
			RunConsoleCommand("BaseMoveAccel 3000.000000");
			RunConsoleCommand("StartAccel 3000.000000");
			RunConsoleCommand("MaxAccel 3000.000000");
			RunConsoleCommand("AccelInc 3000.000000");
			RunConsoleCommand("WalkVel 3000.000000");
			RunConsoleCommand("FRunVel 3000.000000");
			RunConsoleCommand("BRunVel 3000.000000");
			RunConsoleCommand("SRunVel 3000.000000");
			break;
		case 4:
			RunConsoleCommand("BaseMoveAccel 4000.000000");
			RunConsoleCommand("StartAccel 4000.000000");
			RunConsoleCommand("MaxAccel 4000.000000");
			RunConsoleCommand("AccelInc 4000.000000");
			RunConsoleCommand("WalkVel 4000.000000");
			RunConsoleCommand("FRunVel 4000.000000");
			RunConsoleCommand("BRunVel 4000.000000");
			RunConsoleCommand("SRunVel 4000.000000");
			break;
		case 5:
			RunConsoleCommand("BaseMoveAccel 5000.000000");
			RunConsoleCommand("StartAccel 5000.000000");
			RunConsoleCommand("MaxAccel 5000.000000");
			RunConsoleCommand("AccelInc 5000.000000");
			RunConsoleCommand("WalkVel 5000.000000");
			RunConsoleCommand("FRunVel 5000.000000");
			RunConsoleCommand("BRunVel 5000.000000");
			RunConsoleCommand("SRunVel 5000.000000");
			break;
		case 6:
			RunConsoleCommand("BaseMoveAccel 6000.000000");
			RunConsoleCommand("StartAccel 6000.000000");
			RunConsoleCommand("MaxAccel 6000.000000");
			RunConsoleCommand("AccelInc 6000.000000");
			RunConsoleCommand("WalkVel 6000.000000");
			RunConsoleCommand("FRunVel 6000.000000");
			RunConsoleCommand("BRunVel 6000.000000");
			RunConsoleCommand("SRunVel 6000.000000");
			break;
		case 7:
			RunConsoleCommand("BaseMoveAccel 7000.000000");
			RunConsoleCommand("StartAccel 7000.000000");
			RunConsoleCommand("MaxAccel 7000.000000");
			RunConsoleCommand("AccelInc 7000.000000");
			RunConsoleCommand("WalkVel 7000.000000");
			RunConsoleCommand("FRunVel 7000.000000");
			RunConsoleCommand("BRunVel 7000.000000");
			RunConsoleCommand("SRunVel 7000.000000");
			break;
		case 8:
			RunConsoleCommand("BaseMoveAccel 8000.000000");
			RunConsoleCommand("StartAccel 8000.000000");
			RunConsoleCommand("MaxAccel 8000.000000");
			RunConsoleCommand("AccelInc 8000.000000");
			RunConsoleCommand("WalkVel 8000.000000");
			RunConsoleCommand("FRunVel 8000.000000");
			RunConsoleCommand("BRunVel 8000.000000");
			RunConsoleCommand("SRunVel 8000.000000");
			break;
		case 9:
			RunConsoleCommand("BaseMoveAccel 9000.000000");
			RunConsoleCommand("StartAccel 9000.000000");
			RunConsoleCommand("MaxAccel 9000.000000");
			RunConsoleCommand("AccelInc 9000.000000");
			RunConsoleCommand("WalkVel 9000.000000");
			RunConsoleCommand("FRunVel 9000.000000");
			RunConsoleCommand("BRunVel 9000.000000");
			RunConsoleCommand("SRunVel 9000.000000");
			break;
		case 10:
			RunConsoleCommand("BaseMoveAccel 10000.000000");
			RunConsoleCommand("StartAccel 10000.000000");
			RunConsoleCommand("MaxAccel 10000.000000");
			RunConsoleCommand("AccelInc 10000.000000");
			RunConsoleCommand("WalkVel 10000.000000");
			RunConsoleCommand("FRunVel 10000.000000");
			RunConsoleCommand("BRunVel 10000.000000");
			RunConsoleCommand("SRunVel 10000.000000");
			break;
			}
			}
	if(IsIngame())
	{
		switch(Hack.test5)
		{
		case 0:
			RunConsoleCommand("JumpVel 330.000000");
			break;
		case 1:
			RunConsoleCommand("JumpVel 100.000000");
			break;
		case 2:
			RunConsoleCommand("JumpVel 200.000000");
			break;
		case 3:
			RunConsoleCommand("JumpVel 300.000000");
			break;
		case 4:
			RunConsoleCommand("JumpVel 400.000000");
			break;
		case 5:
			RunConsoleCommand("JumpVel 500.000000");
			break;
		case 6:
			RunConsoleCommand("JumpVel 600.000000");
			break;
		case 7:
			RunConsoleCommand("JumpVel 700.000000");
			break;
		case 8:
			RunConsoleCommand("JumpVel 800.000000");
			break;
		case 9:
			RunConsoleCommand("JumpVel 900.000000");
			break;
		case 10:
			RunConsoleCommand("JumpVel 1000.000000");
			break;
		}
	}
	if(IsIngame())
	{
		if(Hack.test6)
		{
			if( GetAsyncKeyState( VK_SPACE )<0)
			RunConsoleCommand( "PlayerGravity -800" );
		}else{
			if(IsIngame())
			{
			RunConsoleCommand( "PlayerGravity  800" );
		}
	}
	if(IsIngame())
	{
		if(Hack.test7)
		{
			RunConsoleCommand("ShowFps 1");
		}else{
			RunConsoleCommand("ShowFps 0");
		}
	}
	if(IsIngame())
	{
		if(Hack.test8)
		{
			memcpy((LPVOID)(0x3746F630),"x90\x90\x90",3);
			memcpy((LPVOID)(0x3745F489),"x90\x90\x90",3);
			memcpy((LPVOID)(0x3746F644),"x90\x90\x90",3);
			memcpy((LPVOID)(0x3746F647),"x90\x90\x90",3);
			memcpy((LPVOID)(0x3746F650),"x90\x90\x90",3);
		}else{
			memcpy((LPVOID)(0x3746F630),"xD8\x66\x58",3);
			memcpy((LPVOID)(0x3745F489),"xD9\x46\x54",3);
			memcpy((LPVOID)(0x3746F644),"xD9\x5E\x58",3);
			memcpy((LPVOID)(0x3746F647),"xD9\x46\x4C",3);
			memcpy((LPVOID)(0x3746F650),"xD9\x5E\x4C",3);
	}
	}
	if(IsIngame())
	{
		if(Hack.test9)
		{
			memcpy((LPVOID)(0x374BBB79),"x90\x90\x90\x90\x90\x90",3);
			memcpy((LPVOID)(0x374BBEF9),"x90\x90\x90\x90\x90\x90",3);
		}else{
			memcpy((LPVOID)(0x374BBB79),"x8B\x80\xC8\x02\x00\x00",3);
			memcpy((LPVOID)(0x374BBEF9),"x8B\x80\xC8\x02\x00\x00",3);
		}
	}
	if(IsIngame())
	{
		if(Hack.test10)
		{
			memcpy((LPVOID)(0x374B65D6),"x90\x90\x90",3);
		}else{
			memcpy((LPVOID)(0x374B65D6),"x0F\x94\xC0",3);
		}
	}
	if(IsIngame())
	{
		if(Hack.test11)
		{
			RunConsoleCommand("ActivationDistance 1000000000");
		}else{
			RunConsoleCommand("ActivationDistance 100");
		}
Ohh BOY how many times do i have to tell you ASM and C++ are two different languages.
Quote Originally Posted by topblast View Post
Ohh BOY how many times do i have to tell you ASM and C++ are two different languages.
Lol are you referring to the "0x" used before two values?
omg isn't that flamesworl10's PTC he said not to give it out
He post it here
http://www.mpgh.net/forum/334-coding...cks-crash.html
and I try his PTC it is working I am not giving it out I am trying to find way the Addresses hacks like no recoil is crashing CA and the PTC hacks works fine. when I get the hacks working 100% I will credit him if i release the hack.
Quote Originally Posted by ProGamerX View Post
He post it here
http://www.mpgh.net/forum/334-coding...cks-crash.html
and I try his PTC it is working I am not giving it out I am trying to find way the Addresses hacks like no recoil is crashing CA and the PTC hacks works fine. when I get the hacks working 100% I will credit him if i release the hack.
oh excuse me
you copied pasted to much i dont see a ingame function and a memcfy function...
Quote Originally Posted by topblast View Post
Ohh BOY how many times do i have to tell you ASM and C++ are two different languages.
It doesn't matter if I use ASM or C, if I allocate 28979827482394678267892634782304282039842348709872 34 bytes of memory, I will still end up with bad things happening. In this case, both operations(to which you are referring to) are manipulating memory, just one is doing it correctly(not resulting in a crash) and the other is apparently not. If he were to patch the bytes in assembly, he would still crash.

Quote Originally Posted by nucks View Post
you copied pasted to much i dont see a ingame function and a memcfy function...
The ingame function is like the first 5 lines of his code, and the memcpy function is located in the windows SDK.
me c&p. u c&p and never give the right credit when u release. u never give credit for the isingame function u act like u made it when u never did.
^ just to tell you i didnt use flame works ingame function...
OHHHHHH!!!!!!!!!!!!!! SHIT!!@!@!@!@!


NOOB FIGHT..

It is just like a chick fight...
But WAY!!!!!!! MORE EXCITING!!!!!!!!!!!
BECAUSE THEY DONT KNOW HALF THE THINGS THEY FIGHTING ABOUT..
Code:
if(Hack.test4 > 0) {
    char temp;
    sprintf(temp, "BaseMoveAccel %i", Hack.test4 * 1000);
    RunConsoleCommand(temp);
    //etc..
}else{
    default..
}

if(Hack.test5 > 0) {
    char temp;
    sprintf(temp, "JumpVel %i", Hack.test4 * 100);
    RunConsoleCommand(temp);
}else{
    RunConsoleCommand("JumpVel 330");
}
Quote Originally Posted by NOOB View Post
Code:
if(Hack.test4 > 0) {
    char temp;
    sprintf(temp, "BaseMoveAccel %i", Hack.test4 * 1000);
    RunConsoleCommand(temp);
    //etc..
}else{
    default..
}

if(Hack.test5 > 0) {
    char temp;
    sprintf(temp, "JumpVel %i", Hack.test4 * 100);
    RunConsoleCommand(temp);
}else{
    RunConsoleCommand("JumpVel 330");
}
Code:
if(Jump.Enabled && GUI.show)
		{
			sprintf(buf1,"JumpVel %i",((330)*(JumpS.Slider.value + 1)));
			Hack.Misc****nConsoleCommand(buf1);
		}else if(!Jump.Enabled && GUI.show)
			Hack.Misc****nConsoleCommand("JumpVel 330");
Quote Originally Posted by kotentopf View Post
Code:
if(Jump.Enabled && GUI.show)
		{
			sprintf(buf1,"JumpVel %i",((330)*(JumpS.Slider.value + 1)));
			Hack.Misc****nConsoleCommand(buf1);
		}else if(!Jump.Enabled && GUI.show)
			Hack.Misc****nConsoleCommand("JumpVel 330");
but he dunt know wat a slider is.
Quote Originally Posted by NOOB View Post


but he dunt know wat a slider is.
he just need to know what a struct is xD
Posts 1–15 of 19 · Page 1 of 2

Post a Reply

Tags for this Thread

None

Talk with us