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 › Combat Arms Hacks & Cheats › Combat Arms Hack Coding / Programming / Source Code › Combat Arms Coding Help & Discussion › Needing Help With Code

Needing Help With Code

Posts 1–8 of 8 · Page 1 of 1
damien1234
damien1234
Needing Help With Code
#include <windows.h>

#define dwpLTClient 0x377F47C4
bool IsGameReadyForHook()
{
if( GetModuleHandleA( "d3d9.dll" ) != NULL
&& GetModuleHandleA( "ClientFX.fxd" ) != NULL
&& GetModuleHandleA( "CShell.dll" ) != NULL )
return true;
return false;
}

void __cdecl PTC( const char* szCommand )
{
if( !IsGameReadyForHook || dwpLTClient == NULL )
return;

DWORD dwConsoleFunc = *( DWORD* )( dwpLTClient + 0x208 );
DWORD dwRealCallA = ( dwConsoleFunc + 0x26 );//JMP to real func
DWORD dwRealCallB = *(DWORD*)( dwRealCallA + 0x1 );
DWORD dwRealCall = ( dwRealCallA + dwRealCallB + 0x5 );

if( *(BYTE*)dwRealCallA == 0xE9 )
dwConsoleFunc = dwRealCall;

__asm
{
push szCommand;
call dwConsoleFunc;
add esp, 4;
}
}
void main()
{
while(true)
{
PTC("ShowFps 1");
}

Sleep(200);
}
DWORD WINAPI dwHackThread(LPVOID)
{
while( !IsGameReadyForHook() )
Sleep(100);
main();
return 0;
}
BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
{
DisableThreadLibraryCalls(hDll);
if ( dwReason == DLL_PROCESS_ATTACH )
{
CreateThread(NULL, NULL, dwHackThread, NULL, NULL, NULL);
}
return TRUE;
}




// Note This Is My First Hack Attempted So Plz Keep Flamming To A Minimum Thanx
//Problem Im Having Is That It Builds Perfect But Crashs At Running Man
//Ive Tryed RuntoConsole sz_command & Push But All 3 Crash Can Someone Plz Lend A Hand For Anyone That Does Help Get This Going I Will Give Credits For Sure
#1 · 15y ago
Aqollo
Aqollo
Read this:

http://www.mpgh.net/forum/207-combat...t-arms-na.html
#2 · 15y ago
eXaLtIc™
eXaLtIc™
You C + P that code make sure you find a new ptc method and a bypass so you wont dc
#3 · 15y ago
HiddenoO
HiddenoO
You need to update the addies, and find a method for the bypass..
#4 · 15y ago
BuRnYoUrSoUl
BuRnYoUrSoUl
Needs to update that boi and coding is jk
#5 · 15y ago
kainoa
kainoa
Quote Originally Posted by damien1234 View Post
#include <windows.h>

#define dwpLTClient 0x377F47C4
bool IsGameReadyForHook()
{
if( GetModuleHandleA( "d3d9.dll" ) != NULL
&& GetModuleHandleA( "ClientFX.fxd" ) != NULL
&& GetModuleHandleA( "CShell.dll" ) != NULL )
return true;
return false;
}

void __cdecl PTC( const char* szCommand )
{
if( !IsGameReadyForHook || dwpLTClient == NULL )
return;

DWORD dwConsoleFunc = *( DWORD* )( dwpLTClient + 0x208 );
DWORD dwRealCallA = ( dwConsoleFunc + 0x26 );//JMP to real func
DWORD dwRealCallB = *(DWORD*)( dwRealCallA + 0x1 );
DWORD dwRealCall = ( dwRealCallA + dwRealCallB + 0x5 );

if( *(BYTE*)dwRealCallA == 0xE9 )
dwConsoleFunc = dwRealCall;

__asm
{
push szCommand;
call dwConsoleFunc;
add esp, 4;
}
}
void main()
{
while(true)
{
PTC("ShowFps 1");
}

Sleep(200);
}
DWORD WINAPI dwHackThread(LPVOID)
{
while( !IsGameReadyForHook() )
Sleep(100);
main();
return 0;
}
BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
{
DisableThreadLibraryCalls(hDll);
if ( dwReason == DLL_PROCESS_ATTACH )
{
CreateThread(NULL, NULL, dwHackThread, NULL, NULL, NULL);
}
return TRUE;
}
This PTC method is towards CShell get a bypass or use gordon's toward Engine

BYPASS
Code:
//Bypass Cshell
typedef bool (*IsConnected_t)(void);

bool IsIngame()
{
    DWORD* LTBase = (DWORD*)LTClient;
    IsConnected_t pConnected = *(IsConnected_t*)(*LTBase + 0x8C);

    return pConnected();
}
#define dwpLTClient 0x377F47C4
addy is wrong should be 0x377F4930 //(for ca na)

#define EngLtc 0x4C8540 //Engine LTC
#define LTClient 0x377F4930 //Only used for bypass

gordon's engine PTC (aka RunConsoleCommand) method
Code:
//Push To Console Method Use Engine LTC By Gordon
typedef int (__cdecl* RunConsoleCommand_t)(char* cmd);
RunConsoleCommand_t pRunConsoleCommand = (RunConsoleCommand_t)EngLtc;
if used be sure to cred!

find a new EngineLTC ive looked around cant find one... (unable to dump engine idk y , i can dumb Cshell just find) ask around!

Decided to help let me know how it goes is working for me.
#6 · 15y ago
AVGN
[MPGH]AVGN
wrong section dude
#7 · 15y ago
damien1234
damien1234
thanx kainoa for helping i will try first thing in the morning and ill let you know what accurses :P
#8 · 15y ago
Posts 1–8 of 8 · Page 1 of 1

Post a Reply

Similar Threads

  • I need help with codesBy MATTHEW4422 in Combat Arms Help
    0Last post 16y ago
  • [HELP] Need help with code. REWARDBy deadskulz in Visual Basic Programming
    14Last post 16y ago
  • need help with coding vip consoleBy GER-Domi. in CrossFire Hack Coding / Programming / Source Code
    13Last post 16y ago
  • need help with codeBy rangg in Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    8Last post 15y ago
  • need help with codeBy rangg in Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    3Last post 15y ago

Tags for this Thread

None