Skip to content
MPGHThe Dark Arts
/
RegisterLog in
Forum
Community
What's NewLatest posts across the boardTrendingHottest threads right nowSubscribedThreads you follow
Discussion
GeneralIntroductionsEntertainmentDebate FortFlaming & Rage
Board
News & AnnouncementsMPGH TimesSuggestions & HelpGiveaways
More Sections
Art & Graphic DesignProgrammingHackingCryptocurrency
Hacks & Cheats
Games
ValorantCS2 / CS:GOCall of Duty / WarzoneFortniteApex LegendsEscape From Tarkov
+14 moreLeague of LegendsGTA VMinecraftRustROTMGBattlefieldTroveBattleOnCombat ArmsCrossFireBlackshotRuneScapeDayZDead by Daylight
Resources
Game Hacking TutorialsReverse EngineeringGeneral Game HackingAnti-CheatConsole Game Hacking
Tools
Game Hacking ToolsTrainers & CheatsHack/Release NewsNew
Submit a release →Share your cheat, tool, or config with the community.
AINEW
AI Tools
General & DiscussionPrompt EngineeringLLM JailbreaksHotAI Agents & AutomationLocal / Open Models
AI × Gaming
AI Aimbots & VisionML Anti-CheatGame Bots & Automation
Create
AI Coding / Vibe CodingAI Art & MediaAI Voice & TTS
The AI frontier →Where game hacking meets modern machine learning. Jump in.
Marketplace
Buy & Sell
SellingBuyingTradingUser Services
Trust & Safety
Middleman LoungeMarketplace TalkVouch Copy Profiles
Money
Cryptocurrency TalkCurrency ExchangeWork & Job Offers
Start selling →List accounts, services, and goods. Use the middleman to trade safe.
MPGH The Dark Arts

A community for offensive security research, reverse engineering, and AI.

Community

ForumMarketplaceSearch

Account

RegisterLog in

Legal

Privacy PolicyForum RulesHelp & FAQ
© 2026 MPGH · All rights reserved.Built by the community, for the community. For educational purposes onlyContent is shared for security research and education — we don't condone illegal use. You're responsible for complying with applicable laws. Use at your own risk.
Home › Forum › MultiPlayer Game Hacks & Cheats › Call of Duty Hacks & Cheats › Call of Duty 6 - Modern Warfare 2 (MW2) Hacks › Call of Duty Modern Warfare 2 Coding / Programming / Source Code › [Help]Send Command To Console Function

[Help]Send Command To Console Function

Posts 1–11 of 11 · Page 1 of 1
♪~ ᕕ(ᐛ)ᕗ
♪~ ᕕ(ᐛ)ᕗ
[Help]Send Command To Console Function
hey guys i need some help from you cause i want to make a send command to console function xD
but im not pro so i get an error!
Which is: GAME CRASH!

Well i tried to use the hahaz's function that i saw here, but its the same
Now im using this:
Code:
static DWORD sndTc = 0x4CA0F0;

void SendCommand(char *command)
{
       _asm{
            push command
            push 1
            call sndTc
       }
}
As i said above im not pro so please don't be so rude like other persons do.
#1 · 15y ago
Melodia
Melodia
[html]DWORD dwCall = MelEngine.Cmd;
__asm
{
PUSH dCmd;
PUSH 0;
PUSH 0;
CALL dwCall;
ADD ESP, 0x0C;
}[/html]

Enjoy Yourself.
#2 · 15y ago
♪~ ᕕ(ᐛ)ᕗ
♪~ ᕕ(ᐛ)ᕗ
Quote Originally Posted by Melodia View Post
[html]DWORD dwCall = MelEngine.Cmd;
__asm
{
PUSH dCmd;
PUSH 0;
PUSH 0;
CALL dwCall;
ADD ESP, 0x0C;
}[/html]

Enjoy Yourself.
idk, maybe you will laugh for my question but.....MelEngine.Cmd?? if you can explain, or should i replace it with the Send Command To Console function offset? please!
#3 · 15y ago
Melodia
Melodia
Same Thing, Mine just uses a SigScan.
#4 · 15y ago
♪~ ᕕ(ᐛ)ᕗ
♪~ ᕕ(ᐛ)ᕗ
Quote Originally Posted by Melodia View Post
Same Thing, Mine just uses a SigScan.
Well, if i recieved your message then i think that its no needed to add a offset?
#5 · 15y ago
Melodia
Melodia
~Sighs.

You need everything done for you don't yas ?

[html]void SendCommandToConsole(char * dCmd)
{
DWORD dwCall = 0x4CA0F0;
__asm
{
PUSH dCmd;
PUSH 0;
PUSH 0;
CALL dwCall;
ADD ESP, 0x0C;
}
}
[/html]
That's what I Meant was good for you.
#6 · 15y ago
♪~ ᕕ(ᐛ)ᕗ
♪~ ᕕ(ᐛ)ᕗ
Quote Originally Posted by Melodia View Post
~Sighs.

You need everything done for you don't yas ?

[html]void SendCommandToConsole(char * dCmd)
{
DWORD dwCall = 0x4CA0F0;
__asm
{
PUSH dCmd;
PUSH 0;
PUSH 0;
CALL dwCall;
ADD ESP, 0x0C;
}
}
[/html]
That's what I Meant was good for you.

Well, thanks, tbh, i already tried it but it crashes again -.-", huh?
OK, anyway thanks!
PS:
its the first time that you didn't insult me in one of my posts!
#7 · 15y ago
BO
bomb21
It is crashing because you (usually) need to call this in an engine function (EndFrame or RenderScene) otherwise it causes a race condition and crashes

ps.

i use this
Code:
typedef void (__cdecl *tSendCommandToConsole)(int a1, int a2, char *cvar);
tSendCommandToConsole oSendCommandToConsole = 0x4CA0F0;

EndframeDetour( )
{
oSendCommandToConsole(1, 1, "cg_DrawFPS 1");
}
#8 · edited 15y ago · 15y ago
Melodia
Melodia
Quote Originally Posted by AcE.bu50t View Post
Well, thanks, tbh, i already tried it but it crashes again -.-", huh?
OK, anyway thanks!
PS:
its the first time that you didn't insult me in one of my posts!
Check the Addie and the rest of your thingies, Function's Good.

If you can't manage to get it working, Leave ASM as you don't understand it and use the cpp Push one witch is public.
#9 · 15y ago
♪~ ᕕ(ᐛ)ᕗ
♪~ ᕕ(ᐛ)ᕗ
WELL!
THANKS A LOT!!!!
I WILL NEVER FORGET YOUR HELP!
#10 · 15y ago
BI
big_buka
if i hoocked IDirect3DDevice9::EndScene()
can i use you function of inputing commands?
#11 · 15y ago
Posts 1–11 of 11 · Page 1 of 1

Post a Reply

Similar Threads

  • [Help] PTC commands fail to function!By NOOBJr in Combat Arms Coding Help & Discussion
    13Last post 15y ago
  • [?] Send commands to console by writeprocessmemory !?By WhiteLionATX in Call of Duty Black Ops Coding, Programming & Source Code
    3Last post 15y ago
  • Send command to console in VB.netBy pyton789 in Call of Duty Black Ops Help
    12Last post 15y ago
  • Help! turning off shadows console command Dvar command!By GoDZeN in Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    1Last post 15y ago
  • Helpful Cod4 Config Guide/ Console CommandsBy Moto in Call of Duty 4 - Modern Warfare (MW) Hacks
    2Last post 15y ago

Tags for this Thread

None