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 › Problem At Weapon Hack Code ..

Problem At Weapon Hack Code ..

Posts 1–15 of 21 · Page 1 of 2
EV
Ever4Ever
Problem At Weapon Hack Code ..
Hello Guys,
Iam Started To Learn C++ And Make Hacks ,, And Iam Done Many Books
And I Love To Start Hack With Making A Weapon Hack ..
So i Done The Code But It,s Still Don't Work .. Can You Guys Tell Me What The Lost ?

Code:
#include "stdafx.h"

#include <iostream>

#define a Mgr

using namespace std;

int main()
{
	bool weaponhack = true;
	DWORD CShell = (DWORD)GetModuleHandleA("CShell.dll");
	DWORD WeaponMgr = *(PDWORD)(CShell+WeaponMgr);
	DWORD WeaponClass = NULL;
	int szd = sizeof(DWORD);

                    if(weaponhack)
                    {
                        memcpy((DWORD*)(WeaponClass+25*szd),(DWORD*)(WeaponClass+56*szd),szd); // M16 to AK Gold
                        memcpy((DWORD*)(WeaponClass+14*szd),(DWORD*)(WeaponClass+110*szd),szd); // M700 to AWM Camo
                        memcpy((DWORD*)(WeaponClass+18*szd),(DWORD*)(WeaponClass+75*szd),szd); // USP to Deagle Scope
                        memcpy((DWORD*)(WeaponClass+4*szd),(DWORD*)(WeaponClass+75*szd),szd); // M9 to Deagle Scope
                        memcpy((DWORD*)(WeaponClass+17*szd),(DWORD*)(WeaponClass+188*szd),szd); // M60 to gatling
                        memcpy((DWORD*)(WeaponClass+158*szd),(DWORD*)(WeaponClass+257*szd),szd); // m60adv to gatling gold
					}

}
Thx.
#1 · 14y ago
SO
something349
WTF? lool wrong here u got



Code:
#define WeaponMgr              (put addy here)



DWORD WINAPI Hacks(LPVOID) 
{
bool hak = true;

while(1)
 {
DWORD CShell = (DWORD)GetModuleHandleA("CShell.dll");
DWORD pWeaponMgr = *(DWORD*)(CShell+WeaponMgr);
DWORD* m16 = (DWORD*)((*(DWORD*)(CShell + WeaponMgr))+25*4);          
DWORD* m4silver = (DWORD*)((*(DWORD*)(CShell + WeaponMgr))+351*4);
DWORD* k2 = (DWORD*)((*(DWORD*)(CShell + WeaponMgr))+22*4); 
DWORD* m4gold = (DWORD*)((*(DWORD*)(CShell + WeaponMgr))+161*4);
DWORD* deagle = (DWORD*)((*(DWORD*)(CShell + WeaponMgr))+20*4); 
DWORD* deaglegold = (DWORD*)((*(DWORD*)(CShell + WeaponMgr))+60*4);
DWORD* anaconda = (DWORD*)((*(DWORD*)(CShell + WeaponMgr))+33*4); 
DWORD* deaglegold2 = (DWORD*)((*(DWORD*)(CShell + WeaponMgr))+60*4);
then

Code:
if (hak) 

   *m16 = *m4silver;
   *k2 = *m4gold;
   *deagle = *deaglegold; 
   *anaconda = *deaglegold2;
press thanks if i helped u
#2 · 14y ago
EV
Ever4Ever
Thanks Gonna Try ..

---------- Post added at 10:50 PM ---------- Previous post was at 10:27 PM ----------

What The Addy Cause I Cant Find It In Ollydbg .. ?
#3 · 14y ago
SO
something349
Code:
0xA974A0
Credits: assassin screed
#4 · 14y ago
EV
Ever4Ever
Code:
#define WeaponMgr (0xA974A0)

#include "stdafx.h"

int main()
{
	bool hak = true; 
	DWORD CShell = (DWORD)GetModuleHandleA("CShell.dll");
	DWORD pWeaponMgr = *(DWORD*)(CShell+WeaponMgr);
	DWORD* m16 = (DWORD*)((*(DWORD*)(CShell + WeaponMgr))+25*4);          
	DWORD* m4silver = (DWORD*)((*(DWORD*)(CShell + WeaponMgr))+351*4);
	DWORD* k2 = (DWORD*)((*(DWORD*)(CShell + WeaponMgr))+22*4); 
	DWORD* m4gold = (DWORD*)((*(DWORD*)(CShell + WeaponMgr))+161*4);
	DWORD* deagle = (DWORD*)((*(DWORD*)(CShell + WeaponMgr))+20*4); 
	DWORD* deaglegold = (DWORD*)((*(DWORD*)(CShell + WeaponMgr))+60*4);
	DWORD* anaconda = (DWORD*)((*(DWORD*)(CShell + WeaponMgr))+33*4); 
	DWORD* deaglegold2 = (DWORD*)((*(DWORD*)(CShell + WeaponMgr))+60*4);
	
	if (hak)
   *m16 = *m4silver;
   *k2 = *m4gold;
   *deagle = *deaglegold; 
   *anaconda = *deaglegold2;
}
it still don't Work ?
#5 · 14y ago
SO
something349
do u have at least one base? ?
#6 · 14y ago
EV
Ever4Ever
Ya I Have ..
#7 · 14y ago
KI
KILLLLLLLLLLEERRRRRRRRRR
what is a base ?
#8 · 14y ago
maximus8011
maximus8011
#define WeaponMgr (0xA974A0)

#include "stdafx.h"

int main()
{

DWORD CShell = (DWORD)GetModuleHandleA("CShell.dll");
DWORD pWeaponMgr = *(DWORD*)(CShell+WeaponMgr);
DWORD* m16 = (DWORD*)((*(DWORD*)(CShell + WeaponMgr))+25*4);
DWORD* m4silver = (DWORD*)((*(DWORD*)(CShell + WeaponMgr))+351*4);
DWORD* k2 = (DWORD*)((*(DWORD*)(CShell + WeaponMgr))+22*4);
DWORD* m4gold = (DWORD*)((*(DWORD*)(CShell + WeaponMgr))+161*4);
DWORD* deagle = (DWORD*)((*(DWORD*)(CShell + WeaponMgr))+20*4);
DWORD* deaglegold = (DWORD*)((*(DWORD*)(CShell + WeaponMgr))+60*4);
DWORD* anaconda = (DWORD*)((*(DWORD*)(CShell + WeaponMgr))+33*4);
DWORD* deaglegold2 = (DWORD*)((*(DWORD*)(CShell + WeaponMgr))+60*4);
{
if ((m16 != NULL) && (m4silver ! =NULL) && (k2 ! =NULL) && (m4gold ! =NULL) && (deagle ! =NULL) && (deaglegold ! =NULL) && (anaconda ! =NULL) && (deaglegold2 ! =NULL))

*m16 = *m4silver;
*k2 = *m4gold;
*deagle = *deaglegold;
*anaconda = *deaglegold2;
}
}

Press thanks if i help you.
#9 · edited 14y ago · 14y ago
EV
Ever4Ever
Thx But Got 2 Errors
error C2059: syntax error : ')'
error C2143: syntax error : missing ')' before '!'
#10 · 14y ago
Assassin's Creed
Assassin's Creed
Quote Originally Posted by Ever4Ever View Post
Thx But Got 2 Errors
error C2059: syntax error : ')'
error C2143: syntax error : missing ')' before '!'
dude remove the brackets between the addy...and ur missing the dllmain (create thread)


---------- Post added at 12:40 PM ---------- Previous post was at 12:39 PM ----------

look at the stickies u will find alot of usefull stuff (up at Cf Source section u will find red sticky)
#11 · edited 14y ago · 14y ago
EV
Ever4Ever
Thanks But still Dont Work
Code:
//Weapon Hack
#define WeaponMgr 0xA974A0

#include "stdafx.h"

int main()
{
	DWORD CShell = (DWORD)GetModuleHandleA("CShell.dll");
	DWORD pWeaponMgr = *(DWORD*)(CShell+WeaponMgr);
	DWORD* m16 = (DWORD*)((*(DWORD*)(CShell + WeaponMgr))+25*4);
	DWORD* m4silver = (DWORD*)((*(DWORD*)(CShell + WeaponMgr))+351*4);
	DWORD* k2 = (DWORD*)((*(DWORD*)(CShell + WeaponMgr))+22*4);
	DWORD* m4gold = (DWORD*)((*(DWORD*)(CShell + WeaponMgr))+161*4);
	DWORD* deagle = (DWORD*)((*(DWORD*)(CShell + WeaponMgr))+20*4);
	DWORD* deaglegold = (DWORD*)((*(DWORD*)(CShell + WeaponMgr))+60*4);
	DWORD* anaconda = (DWORD*)((*(DWORD*)(CShell + WeaponMgr))+33*4);
	DWORD* deaglegold2 = (DWORD*)((*(DWORD*)(CShell + WeaponMgr))+60*4);
{
	if ((m16 != NULL) && (m4silver != NULL) && (k2 != NULL) && (m4gold != NULL) && (deagle != NULL) && (deaglegold != NULL) && (anaconda != NULL) && (deaglegold2 != NULL))

	*m16 = *m4silver;
	*k2 = *m4gold;
	*deagle = *deaglegold;
	*anaconda = *deaglegold2;
}
}
ok thx but can you fix the code to know what are lost ? thx .
#12 · edited 14y ago · 14y ago
Assassin's Creed
Assassin's Creed
Quote Originally Posted by Ever4Ever View Post
Thanks But still Dont Work
Code:
//Weapon Hack
#define WeaponMgr 0xA974A0

#include "stdafx.h"

int main()
{
	DWORD CShell = (DWORD)GetModuleHandleA("CShell.dll");
	DWORD pWeaponMgr = *(DWORD*)(CShell+WeaponMgr);
	DWORD* m16 = (DWORD*)((*(DWORD*)(CShell + WeaponMgr))+25*4);
	DWORD* m4silver = (DWORD*)((*(DWORD*)(CShell + WeaponMgr))+351*4);
	DWORD* k2 = (DWORD*)((*(DWORD*)(CShell + WeaponMgr))+22*4);
	DWORD* m4gold = (DWORD*)((*(DWORD*)(CShell + WeaponMgr))+161*4);
	DWORD* deagle = (DWORD*)((*(DWORD*)(CShell + WeaponMgr))+20*4);
	DWORD* deaglegold = (DWORD*)((*(DWORD*)(CShell + WeaponMgr))+60*4);
	DWORD* anaconda = (DWORD*)((*(DWORD*)(CShell + WeaponMgr))+33*4);
	DWORD* deaglegold2 = (DWORD*)((*(DWORD*)(CShell + WeaponMgr))+60*4);
{
	if ((m16 != NULL) && (m4silver != NULL) && (k2 != NULL) && (m4gold != NULL) && (deagle != NULL) && (deaglegold != NULL) && (anaconda != NULL) && (deaglegold2 != NULL))

	*m16 = *m4silver;
	*k2 = *m4gold;
	*deagle = *deaglegold;
	*anaconda = *deaglegold2;
}
}
ok thx but can you fix the code to know what are lost ? thx .
dude ur missing a dllmain the most important part of the code...it creates the thread lol did u look at the stickies or any tuts?
#13 · 14y ago
EV
Ever4Ever
Ya Iam Looked Your Tut And it,s was just 4 parts what part are i messing ?
1. Includes and Defines (Defines: You will need the addys or offsets to work it out)
2. Loading CShell (You use them to find Offsets or Addys)
3. Base - Contains Loops and values(Will be mentioned, but not explained.)
4. Hook
#14 · 14y ago
Assassin's Creed
Assassin's Creed
Quote Originally Posted by Ever4Ever View Post
Ya Iam Looked Your Tut And it,s was just 4 parts what part are i messing ?
1. Includes and Defines (Defines: You will need the addys or offsets to work it out)
2. Loading CShell (You use them to find Offsets or Addys)
3. Base - Contains Loops and values(Will be mentioned, but not explained.)
4. Hook
i didnt write the dllmain ...it can get detected by xtrap if i written it..
#15 · 14y ago
Posts 1–15 of 21 · Page 1 of 2

Post a Reply

Similar Threads

  • Code v1.0 [Weapon Hack]By Coder[Vb10e] in CrossFire Hacks & Cheats
    137Last post 14y ago
  • Vb6 Problem With Weapon Code?By jokuvaan11 in WarRock - International Hacks
    6Last post 19y ago
  • Code v2.0 [Weapon Hack]By Coder[Vb10e] in CrossFire Hacks & Cheats
    149Last post 14y ago
  • Code v2.5 [Weapon Hack + simple functions]By Coder[Vb10e] in CrossFire Hacks & Cheats
    56Last post 14y ago
  • knife weapon hack problemBy kmanev073 in CrossFire Hack Coding / Programming / Source Code
    15Last post 14y ago

Tags for this Thread

None