Results 1 to 1 of 1
  1. #1
    Dwar
    Dwar is offline
    Veteran Dwar's Avatar
    Join Date
    2010 Mar
    Posts
    2,221
    Thanks
    211
    Thanked 2,224 Times in 289 Posts
    Rep Power
    10

    [Snippet] Cod4 SendConsole Command

    Cod4 Send Console Command Snippet

    void SendConsoleCommand(int x,int y,char *cvar)
    {

    _asm push cvar //push the arguments to stack
    _asm push x2 //push the arguments to stack
    _asm push x //push the arguments to stack
    _asm mov esi,0x4F9AB0 //Set up the call
    _asm call esi //Do the call
    }


    Quick Usage Example:
    Inside EndScene
    if(GetAsyncKeyState(VK_F11))
    {
    MessageBoxA(0,"","Closing",4);
    EngGameHook.CG_trap_SendConsoleCommand(1,1,"quit") ; //if we press F11 it will send quit to console and shut down the game
    }

    Credits mOwl
    Please, post your questions on forum, not by PM or mail

    I spend my time, so please pay a little bit of your time to keep world in equilibrium

  2. The Following User Says Thank You to Dwar For This Useful Post:


Visitors found this page by searching for:

cod4 send command to console

cod4 sendCommandToConsole

cod4 send to console

sendcommandtoconsole cod4

cod4 snd commands

pro command cod4

cod4 send command

how to send commands in cod4

send comand to console cod4

sendcommandtoconsole

cod4 x command

cod4 pro commands

cod4 console commands

cod4 sendconsolecommand

cod 4 send command to console

cod4 stacking commandsendtoconsole CoD4cod 4 CG_trap_SendConsoleCommandgame engine sendconsolecommand hooksend command to call of dutysend command console cod4cod4 pro sndcod 4 pro config commandsos x cod4 console commandssendcommand to console cod4 cvar

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •