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;
}
}
Use Ollydbg to find other console commands such as skeleton, no fog, wireframe, no guns, sky, etc.
**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-
Console commands. What don't you get? What this is? You don't get the code?
Originally Posted by V3CT0R
Console commands. What don't you get? What this is? You don't get the code?
He's right, console applications are the most basic of the c++ applications, that i know of, when i started learning c++ i started w/basic console commands