ItsMods

Full Version: C++ Mw3 SP SendCommandToConsole 1.9.433
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Just a little function used to send commands to console:

*Assuming you have injected your code into the game!

CPLUSPLUS Code
  1. void SendCommandToConsole( char* Cmd )
  2. {
  3. DWORD dwCall = 0x004AC6A0;
  4.  
  5. __asm
  6. {
  7. push Cmd;
  8. push 0;
  9. call dwCall;
  10. add esp, 0x8;
  11. }
  12. }


Example:

CPLUSPLUS Code
  1. SendCommandToConsole("g_speed 600");


CVAR's list for SP:

CVARS's List

Credits:

godly(UC) - CVAR's list.
@Nukem - Teaching me Happy cry
Me - Updating.
SendCommandToConsole( OMA );
(07-21-2012, 19:48)Yamato Wrote: [ -> ]SendCommandToConsole( OMA , "sucks");

FTFY
(07-21-2012, 20:02)Pozzuh Wrote: [ -> ]
(07-21-2012, 19:48)Yamato Wrote: [ -> ]SendCommandToConsole( OMA , "sucks");

FTFY

Syntax error.