You need to hook an internal D3D function.
what did i do for it not to work?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 dwCShell = (DWORD)GetModuleHandleA("CShell.dll"); if( dwCShell != NULL ) { DWORD *LTClient = ( DWORD* )( 0x3780CB90 ); void* CONoff = ( void* )*( DWORD* )( *LTClient + 0x208 ); __asm { push szCommand; call CONoff; add esp, 4; } } } void main() { bool flyhack = false; while(true) { PushToConsole("PlayerGravity -800" ); if(GetAsyncKeyState(VK_NUMPAD0)<0) // fly if(flyhack){ PushToConsole("PlayerGravity -800"); flyhack = false; } else { PushToConsole("PlayerGravity -1"); flyhack = true; } } Sleep(350); } DWORD WINAPI dwHackThread(LPVOID) { while( !IsGameReadyForHook() ) Sleep(300); 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; }
bmxman2 (12-15-2010)
is every thing else right and where do i put the internal D3D function
can u put up an Ex.
sry for all the ?s im just new to making hacks
Your ptc method isnt working anymore i think.
Thanks Cosmos
NOOBJr (12-16-2010)
Kongomonga is correct! I bet you 100% that you leeched this and not even looking at the code immediately went here for us to fix it!I will explain.If your a coder you will no what to do!
Instructions:
Since your Bypass( PushToConsole Method ) is outdated you will need to update it a diffrent way! Credits to Gordan'
You will need to define this first line of code!
[php]#Define ENGINE LTC = PUT ENGINE LTC HERE[/php]
Next, You will need add this ass ( Yes i said ass big woop ) your first line of code for your PTC Method!
[php]typedef int (__cdecl* RunConsoleCommand_t)(char* cmd);
[/php]
Next, you go to add this below the first line of code in your ptc method.
[php]RunBoobCommand_t pRunConsoleCommand = (RunConsoleCommand_t)ENGINE LTC;[/php]
There ya go now to make a hack all you need is:
[php]If(getasynckeystate(VK_f12)<>0{
pRunConsoleCommand("Showfps 1");
}else{
pRunConsoleCommand("???? 0");// i wonder what goes here?
}[/php]
Last edited by NOOBJr; 12-16-2010 at 01:31 PM.
Member since September 25, 2010
Current Objectives:
- Graduate college with a degree in Computer Science
- Find a decent job in the Computer Science Field
- Learn more programming languages
Looking for Elo Boosting Job - League of Legends
Looking for Bronze -> Gold Jobs
Skype: whatthedream