use code tags it drives me crazy when people paste code without code tags
Wow can't believe RunConsoleCommands or ie (PTC) don't work anymore..
Guy's how to we get them working?
has latest LT Client but nothing in game works...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* )( 0x37832ED0 ); void* CONoff = ( void* )*( DWORD* )( *LTClient + 0x208 ); __asm { push szCommand; call CONoff; add esp, 4; } } void main() { while(true) { PushToConsole("ShowFPS 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; }
Last edited by GameArena; 04-04-2011 at 09:17 AM. Reason: code tag
use code tags it drives me crazy when people paste code without code tags
Dude This Is A Very Very Very Old, Because U Can Not Download A Newer Bases?
GameArena (04-04-2011)
well pushtoconsole isnt the 'basics'. i would start with warrock and look at the hack sources there
Hackshield checks where console commands are called from so I would advise you to call it from endscene or present.
https://www.mpgh.net/forum/207-combat...ml#post3030792
Last edited by NOOB; 04-04-2011 at 03:03 PM.
hmm maybe im wrong but isn't there a new command for this? wich is;
note: i do not own any credits from this code.void WINAPIV hkRunConsoleCommand( const char* cmd )
{
_asm
{
PUSH cmd
MOV EAX, 0x485E10
CALL EAX
ADD ESP, 0x4
}
}
[highlight=asm]
; this is for 32bit 64bit below
mov eax, LTC
mov edx, {eax+208h}
push Command
call edx
sub esp, 4h
add esp, 8h
[/highlight]
this should work., replace the '{''}' with '['']', the highlighter got problems......
HERE IS 64bit
[highlight=asm]
; this is for 64bit 32bit above
mov rax, LTC
mov rdx, {rax+208h}
push Command
call rdx
sub rsp, 4h
add rsp, 8h
[/highlight]
Last edited by topblast; 04-04-2011 at 10:15 PM.
I just like programming, that is all.
Current Stuff:
- GPU Programmer (Cuda)
- Client/Server (Cloud Server)
- Mobile App Development
GameArena (04-04-2011)