[Snippet]Console Command Hack [Box|Wireframe|Etc]
I have made this copy and paste proof. You'll need to figure out the basics of this yourself. I'll only be providing snippets and you can do the rest yourself.
PushToConsole
Code:
if( dwCShell != NULL ) //First do a check for module
{
DWORD *FailClient = ( DWOD* )( dwCShell + 0x000000 );
__asm
{
mov edx, FialClint
mov eax, [edx+offset] //put the offset in there...
push szCommand; //const char* szCommand
call eax;
add esp, 4;
}
}
GetModuleHandle Function (Windows)
How to use this
Code:
PushToConsole("ModelDebug_DrawBoxes 0"); //Off
PushToConsole("ModelDebug_DrawBoxes 1"); //On
**Note : Don't comment on saying you get errors. I did that to eliminate the 95% of copy and pasters. The rest 4.9% of the copy and pasters can't do anything else because they don't know how to check for modules. The 0.1% can find it useful.
-V3CT0R Out-

