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 › CrossFire Hacks & Cheats › CrossFire Hack Coding / Programming / Source Code › Where an error in a code?

Where an error in a code?

Posts 1–3 of 3 · Page 1 of 1
NI
Nikita1482
Where an error in a code?
Code:
// dllmain.cpp : Defines the entry point for the DLL application.
#include "stdafx.h"
#include <windows.h>

#define WeaponMgr 0x29995c0
#define NoReload 0x2644

void hacks()
{
    DWORD CShell = NULL;
    while(CShell==NULL)
    {
        CShell = (DWORD)GetModuleHandleA("CShell.dll");
        Sleep(100);
    }
    while(1)
    {
		DWORD CShell = (DWORD)GetModuleHandleA("CShell.dll");
DWORD pWeaponMgr = *(DWORD*)(CShell+WeaponMgr);
	 

   if (pWeaponMgr)
   {
       for(int i=0; i<560; i++)
{
   if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) != NULL)
       *(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) + NoReload ) = 150;
}
   
	   }
   
       //do the main stuff here
        Sleep(100);
    }
}

BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
{
    if(fdwReason==DLL_PROCESS_ATTACH)
    {
		MessageBoxA(0, "Оффициальный сайт: Ommegen****\n\nАвтор: DdoosS\n\nБлагодарности: MegaR, Zedox, juLVeb\n\nДата релиза: 19.12.2011","Центурион v 1.0", 0);
        DisableThreadLibraryCalls(hinstDLL);
        CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)hacks, NULL, NULL, NULL);
        //U might wanna put a messagebox here
    }
    return TRUE; // succesful
}
I use this code. X-Trap doesn't close game and doesn't find mine dll, but game in 3-4 seconds after start itself is closed. Where an error in a code?
#1 · 14y ago
kmanev073
kmanev073
every where

---------- Post added at 04:03 PM ---------- Previous post was at 04:01 PM ----------

alse you are russian do you make the hack for cf russia bcs i saw the credits it's says somebody else so from where have c+p this ?
#2 · 14y ago
NI
Nikita1482
If I clean all functions from dll games isn't closed. As soon as I have added that game of functions is closed. I can't so I to add function?

---------- Post added at 09:08 AM ---------- Previous post was at 08:10 AM ----------

And what?
#3 · 14y ago
Posts 1–3 of 3 · Page 1 of 1

Post a Reply

Similar Threads

  • ERROR: Child block [code:5] or something like thatBy {NavY}SfAssault in WarRock - International Hacks
    1Last post 16y ago
  • where would i learn to code css hacks?By poony in CounterStrike (CS) 1.6 Hacks / Counter Strike: Source (CSS) Hacks
    2Last post 16y ago
  • where do i use the codes?By ZeXXo in CrossFire Hack Coding / Programming / Source Code
    11Last post 16y ago
  • ERROR, with my code.By topblast in Combat Arms Coding Help & Discussion
    11Last post 15y ago
  • where can i put that code [cheat]By Curzephantom in Call of Duty Black Ops Help
    2Last post 15y ago

Tags for this Thread

None