Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Release C++ Mw3 SP SendCommandToConsole 1.9.433
#1
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.
Don't worry if things aren't the way you planned, in the end everything will solve itself...
Reply

#2
SendCommandToConsole( OMA );
Reply

#3
(07-21-2012, 19:48)Yamato Wrote: SendCommandToConsole( OMA , "sucks");

FTFY
[Image: MaEIQ.png]
Reply

#4
(07-21-2012, 20:02)Pozzuh Wrote:
(07-21-2012, 19:48)Yamato Wrote: SendCommandToConsole( OMA , "sucks");

FTFY

Syntax error.
[Image: 30xhrep.png]

A casual conversation between barata and I about Nukem.
Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.