CN tut help

Posts 1–11 of 11 · Page 1 of 1
CN tut help
so ok i got throught the whole tut i read it kinda fast but every time i inject it and click a game it closes so whats wrong

Code:
#include "stdafx.h"
#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)
{
PushToConsole("SkelModelStencil 1");
}
}
DWORD WINAPI dwHackThread(LPVOID)
{
while( !IsGameReadyForHook() )
Sleep(100);
main();
return 0;
}
DWORD *LTClient = ( DWORD* )( 0x3778BFB0 );


0x3778BFB0 is the wrong one, its an old one 0x007d9200 is the new one i think, hell im still trying to learn this
Quote Originally Posted by perseaus View Post
DWORD *LTClient = ( DWORD* )( 0x3778BFB0 );


0x3778BFB0 is the wrong one, its an old one 0x007d9200 is the new one i think, hell im still trying to learn this
no its not that eu i na and thats the new one
Yep, you have to update your addie.
Quote Originally Posted by carterv View Post
Yep, you have to update your addie.
you dont know what you talking about
That ptc way is detected use the one coder never posted
Quote Originally Posted by whit+ View Post
That ptc way is detected use the one coder never posted
isnt this the on he posted i used his tut on it
C+P this into your code
Code:
void __cdecl ConsolePush(char* sVal)
{
DWORD zAddress = 0x007D9200;
void* szConsole = (void*)*(DWORD*)(zAddress);
_asm
{
push sVal
call szConsole
add esp, 4
}
}
Dont use that one. First try CN's one then try.
Code:
void __cdecl SetConsoleVariable(char* szVal){
        void* vSetVar = (void*) 0x4169C0;
        _asm
        {
            push szVal
            call vSetVar
            add esp, 4
        }
    }
Creds to Tyrannus.
Quote Originally Posted by whatup777 View Post
Dont use that one. First try CN's one then try.
Code:
void __cdecl SetConsoleVariable(char* szVal){
        void* vSetVar = (void*) 0x4169C0;
        _asm
        {
            push szVal
            call vSetVar
            add esp, 4
        }
    }
Creds to Tyrannus.
so i replace this
Code:
void __cdecl PushToConsole( const char* szCommand )
{
DWORD *LTClient = ( DWORD* )( 0x3778BFB0 );
void* CONoff = ( void* )*( DWORD* )( *LTClient + 0x208 );
__asm
{
push szCommand;
call CONoff;
add esp, 4;
with cn one
Learn c++.
/Closed .
Posts 1–11 of 11 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us