Please look at my code plz?

Posts 1–12 of 12 · Page 1 of 1
Please look at my code plz?
it builds without any error but when i inject it and goo in game i dont get the chams any ideas plz!!

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* )( 0x377A0198 );
void* CONoff = ( void* )*( DWORD* )( *LTClient + 0x208 );
__asm
{
push szCommand;
call CONoff;
add esp, 4;
}
}    
void main()
{
while(true)
{
PushToConsole("SkelModelStencil 1");
}
}
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;
}
u need to hook a D3D function of the game and call the ptc there
can i um pm u and u tell me were i put tht?
u need a D3D hook >.> nothing more
Quote Originally Posted by Sixx93 View Post
u need a D3D hook >.> nothing more
No he doesn't. Its not a D3D Menu. PTC Function is detected.

Don't listen to this guy.

Code:
#include <windows.h>
bool IsGameReadyForHook()
{
	if( GetModuleHandleA( "d3d9.dll"		) != NULL )
		return true;

	return false;
}
void __cdecl RunConsoleCommand( const char* cCommand )
{
	void* address = ( void* )0x00485FA0;

	__asm
	{
		Push cCommand
		call address
		add esp, 0x4
	}
}   
void main()
{
	if ( GetAsyncKeyState( VK_NUMPAD1 ) & 1 )
	{
		RunConsoleCommand("SkelModelStencil 1");
	}
}
DWORD WINAPI dwHackThread( LPVOID )
{
	while( !IsGameReadyForHook() )
		Sleep( 25 );

	main();

	return EXIT_SUCCESS;
}
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;
}
God, don't act like you know how to code. Enjoy.
can i add u on msn?
ty so much XD

Demensions were in tht is the ner LTC adress to be place XD sorry kind of a noob to it im getting the hang tho
void* address = ( void* )0x00485FA0; <====is tht were the LTC adress is placed?
Quote Originally Posted by racardo View Post
ty so much XD

Demensions were in tht is the ner LTC adress to be place XD sorry kind of a noob to it im getting the hang tho
void* address = ( void* )0x00485FA0; <====is tht were the LTC adress is placed?

yes that is were it goes and if you need help making an off function just pm me i learned how to make off functions last week lol
Quote Originally Posted by Skaterforeva1 View Post
yes that is were it goes and if you need help making an off function just pm me i learned how to make off functions last week lol
Thats where the Unwrapped Console goes...
im confused a bit to be honest were does my ltc adress go? and i tried the code u posted it runs without a error but no chams in game
You guys are really helping this guy

You have an incorrect PTC function(keep it simple you dont need all that dword crap), You also need a hook or nexon will detect it
um if i wanted someone to bash me i woulda asked for a bashing i asked for help as i recalled this is a help section
Posts 1–12 of 12 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us