Is this method patched or is it just fail coding?
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* )( 0x3778BFB0 );
void* CONoff = ( void* )*( DWORD* )( *LTClient + 0x208 );
__asm
{
push szCommand;
call CONoff;
add esp, 4;
}
}
void main()
{
while(true)
Sleep(1);
{
//hacks
}
}
DWORD WINAPI dwHackThread(LPVOID)
{
while( !IsGameReadyForHook() )
Sleep(1);
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;
}
Credits to CN, /
It always disconnects in game, it didn't disconnect yesterday but it started to do so today.. Any ideas on how to improve this?
Read the sticky...
There is a reason as to why its there.
*cough
old LTC address
and code demon isnt that way ptc command patched?
READ MY SIG (not to be mean just do it)
i would have to press numpad 0 for 2 seconds to turn on if i did ur sig O.o
That LTClient Address is a spy!
Haha, sorry. I should have read your useless signature but I couldn't take the time to. It isn't that I am a slow reader or anything, it is just very trivial code. I was tripped up.