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 › How to make a loader where you select the hacks you want

How to make a loader where you select the hacks you want

Posts 1–15 of 18 · Page 1 of 2
_C
_corn_
How to make a loader where you select the hacks you want
Hello everyone,

I have received numerous PMs asking how I made my loader, in which you can choose the hack options. I thought it would be easier to make a tutorial than reply to everyones PMs.

This is what my loader looks like: (click the picture to go to the hack download thread)


So, the idea is for the loader to create a file in the Cross Fire folder which has all the options in it. Then, the hack reads this file, and enables/disables the corresponding hacks.

In my loader, it created a file that looked like this:
Code:
This file is automatically generated by AlphaHack configurator. Do not edit!
1
0
0
1
1
0
1
0
1
0
1
1
1
-1
1 is for ON and 0 is for OFF.
The hack reads that file, line by line, and sets the hack up. The hack and the loader both know that line 0 is for No Change Delay, and line 1 is for No Reload etc etc etc.

Very simple... very very simple indeed.

If you don't know how to read and write to files in C++, keep reading, or if you do go and try to do it. (or you could do it in VB.NET)

First, we need to include two headers to read and write to files:
Code:
#include <windows.h>
#include <fstream>
#include <iostream>
Then, to write the options file, first we have to make a new ofstream (output file stream), and create a file with open()
Code:
ofstream file;
file.open("FileName");
Then, before we try to write data to the stream, we need to check if the file was successfully created, then we write data to the stream using the << operator.
Code:
if(file.good())
{
    file << "Data To Write To File";
}
Then we need to close the file stream:
Code:
file.close();
I will leave it to you to make it loop around and write the correct amount of lines with the correct values... should be very easy.

Now that we know how to create the file, we need to make the hack read from it.

First we include the headers
Code:
#include <windows.h>
#include <fstream>
#include <iostream>
Then we need to create an ifstream (input file stream) and open the file:
Code:
ifstream file;
file.open("FileName");
Before we try to read data from it we need to check if it has successfully opened the file:
Code:
if(file.good())
{
Then we need to read a line with getline, and covert it to an integer with atoi()
Code:
int option = -1;
string line;
std::getline(file, line);
option = atoi(line.c_str());
Now we need to loop while the line is either 0 or 1 (at the end of file it is -1, so it will stop there), set the correct bool to the correct value, get the next line, and increment the counter by 1:
note: the counter is the line number
Code:
 while((option == 1) || (option == 0))
            {
                if(option == 0)
                {
                    switch(counter)
                    {
                    case 0:
                        nochange = false;
                        break;
                    case 1:
                        noreload = false;
                        break;
                    case 2:
                        seeghosts = false;
                        break;
                    case 3:
                        weaponhack = false;
                        break;
                    case 4:
                        noweaponweight = false;
                        break;
                    case 5:
                        nonadedamage = false;
                        break;
                    case 6:
                        nofalldamage = false;
                        break;
                    }
                }
                std::getline(file, line);
                option = atoi(line.c_str());
                counter++;
            }
NOTE: You may want to add some try catches in case of an error...
Code:
try
{
//CODE
//error happens
throw 1;
}
catch(int e)
{
    string errornumber = "";
    string str = "Error ";
    itoa(e, errornumber, 10);
    str.append(errornumber);
    MessageBoxA(NULL, str, "Hack", MB_OK | MB_ICONERROR);
}
NOTE: In my hack, i set all the bool values to true, and only change them if the corresponding value in file is 0 (simpler)

Full Code for writing to file:
Code:
#include <windows.h>
#include <fstream>
#include <iostream>

ofstream file;
file.open("FileName");

if(file.good())
{
    if(noreload)
    file << "1\n";
    else
    file << "0\n";
}
file.close()
Full Code for reading file:
Code:
#include <windows.h>
#include <fstream>
#include <iostream>

ifstream file;
file.open("FileName");

if(file.good())
{
int option = -1;
string line;
std::getline(file, line);
option = atoi(line.c_str());

while((option == 1) || (option == 0))
            {
                if(option == 0)
                {
                    switch(counter)
                    {
                    case 0:
                        nochange = false;
                        break;
                    case 1:
                        noreload = false;
                        break;
                    case 2:
                        seeghosts = false;
                        break;
                    case 3:
                        weaponhack = false;
                        break;
                    case 4:
                        noweaponweight = false;
                        break;
                    case 5:
                        nonadedamage = false;
                        break;
                    case 6:
                        nofalldamage = false;
                        break;
                    }
                }
                std::getline(file, line);
                option = atoi(line.c_str());
                counter++;
            }
}
So, that's it!
Please thanks me/give credits if you use this.

Btw, I nearly lost all this, LUCKY IT HAS AUTO-SAVE

If you are having trouble with this, use common sense lol.
#1 · edited 14y ago · 14y ago
goold1
goold1
error C3861: 'getline': identifier not found

getline(file, line);
#2 · 14y ago
_C
_corn_
Oh sorry, you need to do std::getline or put using namespace std; at the top... ill edit it

thanks for pointing that out


---------- Post added at 09:29 PM ---------- Previous post was at 09:25 PM ----------

And you may need to include <windows.h>
#3 · 14y ago
uarethebest
uarethebest
sry for noob quest @_corn_ but when u make windows forms application...u put the code in
AssemblyInfo.cpp or name.cpp or resource .h?
i never made a loader
#4 · 14y ago
goold1
goold1
error C2039: 'getline' : is not a member of 'std'

---------- Post added at 05:01 AM ---------- Previous post was at 03:58 AM ----------

i finish make the loader(Writer) with C#
but the problem in reading with c++
#5 · 14y ago
Janitor
Janitor
Nice +TuT+
Its not for viusal basic ?
#6 · 14y ago
Assassin's Creed
Assassin's Creed
Quote Originally Posted by MatrixXx View Post
Nice +TuT+
Its not for viusal basic ?
it's C++.....
#7 · 14y ago
DevilGhost
DevilGhost
ya u need to put full code and explain it.....if u are afraid of leeching...then put a leech protect like delete some letters or smthing...
#8 · 14y ago
goold1
goold1
Yes Add Full Code

now i build without any error BUt not working
it still false + not working any hack

edit : the problem from last line i forget add -1
#9 · edited 14y ago · 14y ago
Swag
Swag
Nice tutorial
#10 · 14y ago
mustafafm
mustafafm
thanked ^^
#11 · 14y ago
_C
_corn_
Quote Originally Posted by uarethebest View Post
sry for noob quest @_corn_ but when u make windows forms application...u put the code in
AssemblyInfo.cpp or name.cpp or resource .h?
i never made a loader
Idk, I used Code::Blocks with wxWidgets.... ask someone else
#12 · 14y ago
_C
_corn_
Quote Originally Posted by Swag View Post
Nice tutorial
hi michielr
#13 · 14y ago
Swag
Swag
Quote Originally Posted by _corn_ View Post


hi michielr
Its Swag now haha
#14 · 14y ago
_C
_corn_
Quote Originally Posted by Swag View Post
Its Swag now haha
hi Swag
#15 · 14y ago
Posts 1–15 of 18 · Page 1 of 2

Post a Reply

Similar Threads

  • How to make a Loader in VB.NETBy Killer12agh in Combat Arms Coding Help & Discussion
    7Last post 15y ago
  • How to make a Loader? [solved]By CrossRaiders in Visual Basic Programming
    15Last post 14y ago
  • Dave how did you find the hacks in the pub?By ploxide in Combat Arms Hacks & Cheats
    1Last post 17y ago
  • how to i make a bypass in vb6 with the hack?By Oneirish in Visual Basic Programming
    13Last post 18y ago
  • How do you install the hacksBy Drag0nkillz in General Hacking
    20Last post 17y ago

Tags for this Thread

None