problem

Posts 110 of 10 · Page 1 of 1
problem
Code:
#include <windows.h>

//DEFINES
my shit here
//DEFINES

//BOOLs
bool Tracers, FPS, Fog, SuperJump, NXChams, GunSway, Pickup, Prediction, FullBright, NoSpread, SpawnDelay, NoSky, NoHands, Speed;
//BOOLs

//INTs

//INTs


//DWORD's

//DWORD's

//pragma
#pragma warning(disable: 4311)
#pragma warning(disable: 4312)
#pragma warning(disable: 4244)
//pragma





bool IsGameReadyForHook()
{
	if( GetModuleHandleA( "d3d9.dll"     ) != NULL 
		&& GetModuleHandleA( "ClientFX.fxd" ) != NULL 
		&& GetModuleHandleA( "CShell.dll"   ) != NULL )
		return true;
	return false;
}
void Memoria( void* pvAddress, void* pvBuffer, size_t len )
{
	if( *(BYTE*)pvAddress == *(BYTE*)pvBuffer )
		return;

	memcpy( ( void* )pvAddress, ( void* )pvBuffer, len );
}



void __cdecl PushToConsole( const char* szCommand )
{
DWORD *LTClient = ( DWORD* )( ADR_EngineLTC );
void* CONoff = ( void* )*( DWORD* )( *LTClient + 0x208 );
__asm
{
push szCommand;
call CONoff;
add esp, 4;
}
} 

void main() 
{
	while(true)
	{
	my shit here
	}
	
}


DWORD WINAPI HackThread(LPVOID)
{
while( !IsGameReadyForHook() )
Sleep(70);
main();
return 0;
}

BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
{
DisableThreadLibraryCalls(hDll);
if ( dwReason == DLL_PROCESS_ATTACH )
{
CreateThread(NULL, NULL, HackThread, NULL, NULL, NULL);
}
return TRUE;
}
anyone wanna tell me whats wrong? (yes all addies are up to date)

i think its with the looping
No, not particularly. But I'll tell you because I'm in a nice mood today. The following is syntactically incorrect code:

Code:
	while(true)
	{
	my shit here
	}
sigh

thats not whats there, thats just where my hacks go. same with defines.

i still need some helppp
Quote Originally Posted by Wilds View Post
sigh

thats not whats there, thats just where my hacks go. same with defines.

i still need some helppp
No, not particularly. But I'll tell you because I'm in a nice mood today. The following is syntactically incorrect code:

Code:
	while(true)
	{
	my shit here
	}
hint: Just in case you didn't realise - I meant that what replace your "my shit here" may be causing the "issue", and since you're too afraid to show us your "pro" code, we can't really help
yu dont need pragma warnings....
Hmm, seems alot of peoples hacks arent working from my msn

I think its the looping/threads, nexon did something big
my shit here isn't properly defined, I'm sure you are getting a build error from that
Quote Originally Posted by markoj View Post
my shit here isn't properly defined, I'm sure you are getting a build error from that
my shit here is defined in NFD.h

but really guys i need some help, this isnt d3d but it might need a hook?
Quote Originally Posted by Wilds View Post
my shit here is defined in NFD.h

but really guys i need some help, this isnt d3d but it might need a hook?
Yea, I meant we need to see the whole source not a summary. And now that you mentioned that, you DO need a hook for PTC to work, how are you using the PTC hacks?
When u tell us what happens or what NOT happens if u use it i will help u
Posts 110 of 10 · Page 1 of 1

Post a Reply

Tags for this Thread

None

Need help?