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 › [HELP] Source code mess up?

[HELP] Source code mess up?

Posts 1–15 of 34 · Page 1 of 3
jonnyboy9985
jonnyboy9985
[HELP] Source code mess up?
Ok... So basically, I was programming a hack, and when I built it, it said it was successful but when it came down to using it, I could only use the chams... Now I put FPS, speed, and hover in the hotkeys... Now I don't know if I am doing this correctly or not but this is what I did for say.. Number pad 3 hack for whatever

Code:
//I declared for speed the "bool speed = false" already as I will display later

if(GetAsyncKeyState(VK_NUMPAD3)<0)
	{
		if(speed)
		{
			PushToConsole ("BaseMoveAccel 3000.000000");
			PushToConsole ("StartAccel 500.000000");
			PushToConsole ("MaxAccel 3000.000000");
			PushToConsole ("AccelInc 6000.000000");
			PushToConsole ("WalkVel 70.000000") ;
			PushToConsole ("FRunVel 285.000000");
			PushToConsole ("BRunVel 285.000000");
			PushToConsole ("SRunVel 285.000000");
			PushToConsole ("DuckVel 50.000000");
			speed = 0;
		}
		else
		{
			PushToConsole ("BaseMoveAccel 3000.000000");
			PushToConsole ("StartAccel 3000.000000");
			PushToConsole ("MaxAccel 3000.000000");
			PushToConsole ("AccelInc 3000.000000");
			PushToConsole ("FRunVel 3000.000000");
			PushToConsole ("BRunVel 3000.000000");
			PushToConsole ("SRunVel 30000.000000");
			PushToConsole ("DuckVel 3000.000000");
			speed = 1;

}
and the start of my hack goes like this

Code:
void main()
{
while (!IsGameReadyForHook()){
Sleep(20);
}

bool NxChams = false;
bool Fps = false;
bool speed = false;
bool hover = false;
while (true)
then the code for my hacks :P I don't wanna FULLY release it but still... Could someone tell me where I went wrong? And PLEASE tell me if there is a better sleep timer
#1 · edited 16y ago · 16y ago
Beatz
Beatz
Dam, this is wrong. Learn C++, thats what i'm doing
#2 · 16y ago
jonnyboy9985
jonnyboy9985
Quote Originally Posted by Beatz View Post
Dam, this is wrong. Learn C++, thats what i'm doing
Excuse me what? How am I wrong? Can you atleast help me instead of just like you know... Just saying "This is wrong" and I am learning C++ and this is practice. Btw if this was a failed attempt at raising your postcount, you are doing really good xD
#3 · edited 16y ago · 16y ago
Beatz
Beatz
Quote Originally Posted by jonnyboy9985 View Post
Excuse me what? How am I wrong? Can you atleast help me instead of just like you know... Just saying "This is wrong" and I am learning C++ and this is practice. Btw if this was a failed attempt at raising your postcount, you are doing really good xD
stfu, I dont know much, all I can say is learn C++ FULLY FIRST!
#4 · 16y ago
WH
whit
Btw I Dont think Source Code Section If For This Kinda help Anymore...
Read The New rules
#5 · 16y ago
®J
®Jack
didnt you forget the speed = false and after speed = true?
#6 · 16y ago
jonnyboy9985
jonnyboy9985
Quote Originally Posted by ®Jack View Post
didnt you forget the speed = false and after speed = true?
In this case I used 0 as false and 1 as true, since it will have the same effect
#7 · 16y ago
®J
®Jack
Quote Originally Posted by jonnyboy9985 View Post
In this case I used 0 as false and 1 as true, since it will have the same effect
okay [too short]
#8 · 16y ago
WH
whit
Quote Originally Posted by ®Jack View Post
didnt you forget the speed = false and after speed = true?
Lol Fail....
Any number but 0 can = true & 0 = false
#9 · 16y ago
jonnyboy9985
jonnyboy9985
Can someone please help me?
#10 · edited 16y ago · 16y ago
Frit0
Frit0
Quote Originally Posted by jonnyboy9985 View Post
Ok... So basically, I was programming a hack, and when I built it, it said it was successful but when it came down to using it, I could only use the chams... Now I put FPS, speed, and hover in the hotkeys... Now I don't know if I am doing this correctly or not but this is what I did for say.. Number pad 3 hack for whatever

Code:
//I declared for speed the "bool speed = false" already as I will display later

if(GetAsyncKeyState(VK_NUMPAD3)<0)
	{
		if(speed)
		{
			PushToConsole ("BaseMoveAccel 3000.000000");
			PushToConsole ("StartAccel 500.000000");
			PushToConsole ("MaxAccel 3000.000000");
			PushToConsole ("AccelInc 6000.000000");
			PushToConsole ("WalkVel 70.000000") ;
			PushToConsole ("FRunVel 285.000000");
			PushToConsole ("BRunVel 285.000000");
			PushToConsole ("SRunVel 285.000000");
			PushToConsole ("DuckVel 50.000000");
			speed = 0;
		}
		else
		{
			PushToConsole ("BaseMoveAccel 3000.000000");
			PushToConsole ("StartAccel 3000.000000");
			PushToConsole ("MaxAccel 3000.000000");
			PushToConsole ("AccelInc 3000.000000");
			PushToConsole ("FRunVel 3000.000000");
			PushToConsole ("BRunVel 3000.000000");
			PushToConsole ("SRunVel 30000.000000");
			PushToConsole ("DuckVel 3000.000000");
			speed = 1;

}
and the start of my hack goes like this

Code:
void main()
{
while (!IsGameReadyForHook()){
Sleep(20);
}

bool NxChams = false;
bool Fps = false;
bool speed = false;
bool hover = false;
while (true)
then the code for my hacks :P I don't wanna FULLY release it but still... Could someone tell me where I went wrong? And PLEASE tell me if there is a better sleep timer

should be as follows:
Code:

if(GetAsyncKeyState(VK_NUMPAD3)<0)
	{
             speed = !speed;
		if(speed)
		{
                    //your code;
                 }
            else
                {
                  //more code;
                }
         }
#11 · 16y ago
FA
Fabolous
Stop coding T___T
#12 · 16y ago
IN
Injection
Quote Originally Posted by Frit0 View Post
should be as follows:
Code:

if(GetAsyncKeyState(VK_NUMPAD3)<0)
	{
             speed = !speed;
		if(speed)
		{
                    //your code;
                 }
            else
                {
                  //more code;
                }
         }

That would make speed = false every time he pressed the hotkey.


Your missing a '}' at the end of your else statement.
#13 · 16y ago
Frit0
Frit0
Quote Originally Posted by Injection View Post



That would make speed = false every time he pressed the hotkey.


Your missing a '}' at the end of your else statement.
The variable "speed" will equal the opposite of its current value, also everything is correctly written.
#14 · 16y ago
IN
Injection
Quote Originally Posted by Frit0 View Post
The variable "speed" will equal the opposite of its current value, also everything is correctly written.
Look at the end of the else statement. He either left out the last '}' or his else statement is missing it.
#15 · 16y ago
Posts 1–15 of 34 · Page 1 of 3

Post a Reply

Similar Threads

  • [HELP] Source Code HelpBy jonnyboy9985 in Combat Arms Hack Coding / Programming / Source Code
    10Last post 16y ago
  • Need Help (SOURCE CODE)By umbraga01 in WarRock Hack Source Code
    4Last post 15y ago
  • Help with source code! Easy fast scope bot!By Zoom in C++/C Programming
    22Last post 17y ago
  • Can anyone help me get combat arms source codes that arent patched?By nikith988 in General Game Hacking
    2Last post 16y ago
  • Need Help please(about source codes)By Laws_Vegas in C++/C Programming
    5Last post 16y ago

Tags for this Thread

None