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 › What's wrong with this?

What's wrong with this?

Posts 1–7 of 7 · Page 1 of 1
FV
fvestrgenrl
What's wrong with this?
Here i put this together, but it crashes immediately after loading...
Code:
#include <windows.h>
bool IsGameReadyForHook()
{
if( GetModuleHandleA( "d3d9.dll"     ) != NULL 
&& GetModuleHandleA( "ClientFX.fxd" ) != NULL 
&& GetModuleHandleA( "CShell.dll"   ) != NULL )
return true;
return false;
}
void PTC(const char* Command) {
DWORD CNADDIE = 0x007d9200;
void* Send = ( void* )*( DWORD* )(CNADDIE);
__asm
{
/* CREDITS TO CN */
push Command;
call Send; 
add esp, -4+2+6-1+1;
}
} 
void main()
{
while(true)
{
PTC("SkelModelStencil 1");
}
}
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;
}
And i packed it with UPX that didn't fix it anything else i should do?
#1 · 16y ago
BL
BloodSkin
PTC("SkelModelStencil 1");

next line, add
Sleep(100)

see if that fixes it. i dont think it will, but it will kill lag, which may be where ur problem lies.
#2 · 16y ago
FV
fvestrgenrl
Quote Originally Posted by BloodSkin View Post
PTC("SkelModelStencil 1");

next line, add
Sleep(100)

see if that fixes it. i dont think it will, but it will kill lag, which may be where ur problem lies.
HAHA that did it thanks dude! thanks/ +rep
One More question... if i add multiple PTC commands, should i just toss that at the end, or after each one?
#3 · edited 16y ago · 16y ago
MugNuf
MugNuf
Quote Originally Posted by fvestrgenrl View Post
HAHA that did it thanks dude! thanks/ +rep
One More question... if i add multiple PTC commands, should i just toss that at the end, or after each one?
Well, if your C+Ping code together to make an auto on hack, sure.

If your going to make a hotkey hack, make GetAsyncKeyState functions.
#4 · 16y ago
FV
fvestrgenrl
i know that, i'm just learning how a hack works before i code my own
#5 · 16y ago
CA
carterv
Keep the sleep right before the closing brace of your while statement.
#6 · 16y ago
zmansquared
zmansquared
your hook is bad also...i think
#7 · 16y ago
Posts 1–7 of 7 · Page 1 of 1

Post a Reply

Similar Threads

  • what is wrong with this source?By Petros in C++/C Programming
    6Last post 19y ago
  • What's wrong with this guy?By Mr.Magicman in General
    15Last post 16y ago
  • what is wrong with this ??By floris12345! in Visual Basic Programming
    5Last post 18y ago
  • What is wrong with this code?By t7ancients in C++/C Programming
    10Last post 16y ago
  • What's wrong with this?By yup in Visual Basic Programming
    4Last post 18y ago

Tags for this Thread

None