Cod4 SendConsole Command
Posted matt1985
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Cod4 SendConsole Command相关的知识,希望对你有一定的参考价值。
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
}
# Usage
if(GetAsyncKeyState(VK_F11))
{
MessageBoxA(0, "", "Closing", 4);
EngGameHook.CG_trap_SendConsoleCommand(1, 1, "quit"); // if we press F11 then it‘ll quit
}
以上是关于Cod4 SendConsole Command的主要内容,如果未能解决你的问题,请参考以下文章
安卓编译出错: Process 'command 'C:Javajdk1.8.0_51injava.exe'' finished with non-zero (示例代
IntellJ IDEAidea启动测试类报错Error running 'Test1.test': Command line is too long. Shorten comma(代
DB2If ‘db2‘ is not a typo you can run the following command to lookup the package that contains th(代