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 Europe Hacks › Combat Arms EU Hack Coding/Source Code › Help with Ghost Mode

Help with Ghost Mode

Posts 1–9 of 9 · Page 1 of 1
dadum02
dadum02
Help with Ghost Mode
[PHP]bool ghostmode;
int move8 = 0;
int move6 = 0;
int move4 = 0;[/PHP]

[PHP] if(GetAsyncKeyState(VK_NUMPAD9)&1){
//Ghostmode
if(ghostmode==true){
while(true) {
if(GetAsyncKeyState(VK_UP)&1) {
move8+=1;
}

if(GetAsyncKeyState(VK_DOWN)&1) {
move8+=-1;
}

if(GetAsyncKeyState(VK_LEFT)&1) {
move4+=1;
}

if(GetAsyncKeyState(VK_RIGHT)&1) {
move4+=-1;
}

PushToConsole("CamMaxPosZOffset "+move8);
PushToConsole("CamMaxPosXOffset "+move6);
PushToConsole("CamMaxPosYOffset "+move4);
Sleep(100);
}
ghostmode=false;
} else {
move8=0;
move6=0;
move4=0;
PushToConsole("CamMaxPosZOffset 0");
PushToConsole("CamMaxPosXOffset 0");
PushToConsole("CamMaxPosYOffset 0");
ghostmode=true;
}
}[/PHP]

Help me with Ghost mode. Is this totally wrong??
#1 · 16y ago
QD
qddW$#%^jtyjtyj
Well you are not allowed to release ghost mode in this site
#2 · 16y ago
SH
shahin7777
Quote Originally Posted by techial2 View Post
Well you are not allowed to release ghost mode in this site
Yes you are...
#3 · 16y ago
QD
qddW$#%^jtyjtyj
Seriously?
#4 · 16y ago
Zoom
Zoom
You can release semi ghost modes.
#5 · 16y ago
doofbla
doofbla
If your doing it like this you can't turn it off so if ghostmode is one time on you cannot turn it off cuz of the "while(true)" ur in this loop forever!! U can't get out of the while(true) you have to do it in another way I'll post a solution later cuz i have to go now

think about it please =)

Ok here is the code you may use ;-) i didnt tested so look over it


the structure is this:
1. if 9 is pressed then switch ghostmode from on/off to on/off
2. look what it is if its on then do ghostmode else dont do ghostmode
3. do it all from the beginning
[php]
ghostmode=false;
while(true)
{
your hacks...
your hacks...
.
.
.

if(GetAsyncKeyState(VK_NUMPAD9)<0) //Ghostmode
{
if(ghostmode==true)
{
ghostmode=false;
}
else
{
ghostmode=true;
}

if(ghostmode==true)
{
if(GetAsyncKeyState(VK_UP)&1)
{
move8+=1;
}

if(GetAsyncKeyState(VK_DOWN)&1)
{
move8+=-1;
}

if(GetAsyncKeyState(VK_LEFT)&1)
{
move4+=1;
}

if(GetAsyncKeyState(VK_RIGHT)&1)
{
move4+=-1;
}

PushToConsole("CamMaxPosZOffset "+move8);
PushToConsole("CamMaxPosXOffset "+move6);
PushToConsole("CamMaxPosYOffset "+move4);
}
else
{
move8=0;
move6=0;
move4=0;
PushToConsole("CamMaxPosZOffset 0");
PushToConsole("CamMaxPosXOffset 0");
PushToConsole("CamMaxPosYOffset 0");
}
}
Sleep(100);
}
[/php]

I hope i helped you

PS: mods if its really not allowed to post this i'm sorry please dont ban me just delete this =)
#6 · edited 16y ago · 16y ago
SC
schim
Quote Originally Posted by dadum02 View Post
[PHP]bool ghostmode;
int move8 = 0;
int move6 = 0;
int move4 = 0;[/PHP]

[PHP] if(GetAsyncKeyState(VK_NUMPAD9)&1){
//Ghostmode
if(ghostmode==true){
while(true) {
if(GetAsyncKeyState(VK_UP)&1) {
move8+=1;
}

if(GetAsyncKeyState(VK_DOWN)&1) {
move8+=-1;
}

if(GetAsyncKeyState(VK_LEFT)&1) {
move4+=1;
}

if(GetAsyncKeyState(VK_RIGHT)&1) {
move4+=-1;
}

PushToConsole("CamMaxPosZOffset "+move8);
PushToConsole("CamMaxPosXOffset "+move6);
PushToConsole("CamMaxPosYOffset "+move4);
Sleep(100);
}
ghostmode=false;
} else {
move8=0;
move6=0;
move4=0;
PushToConsole("CamMaxPosZOffset 0");
PushToConsole("CamMaxPosXOffset 0");
PushToConsole("CamMaxPosYOffset 0");
ghostmode=true;
}
}[/PHP]

Help me with Ghost mode. Is this totally wrong??
Ok so first of all:

Don't use GetAsyncKeyState(VK_HERE) &stuff)
Just do:
GetAsyncKeyState(Vk_Here)
It's less prone to errors

Next, use my tutorial on templates to add integers to your strings
It looks nicer than what you are doing now and is less prone to error

Lastly use don't put it in a while loop
Do something like:

while(true){
if( GetAsyncKeyState(VK_W) ) { // VK_W is not defined by default so you'll need to change this
PushToConsole("Camthingystring");
}

This'll shove you to ghost mode as long as you have the key 'w' pressed

-SCHiM

Ps: remember to check out on my tutorial on templates, to append integers to strings

}
#7 · 16y ago
Kuro Tenshi
Kuro Tenshi
Quote Originally Posted by schim View Post
while(true){
if( GetAsyncKeyState(VK_W) ) { // VK_W is not defined by default so you'll need to change this
PushToConsole("Camthingystring");
}

This'll shove you to ghost mode as long as you have the key 'w' pressed

-SCHiM
u know that VK_W can also be replaced by a char:
test this:
GetAsyncKeyState('W');
trust me it works :3 i use f for fly so yeah...
#8 · 16y ago
doofbla
doofbla
i wanna delete this post
#9 · 16y ago
Posts 1–9 of 9 · Page 1 of 1

Post a Reply

Similar Threads

  • Help with god mode and ohk and ohk2By BledByNature in Vindictus Help
    2Last post 14y ago
  • need help with modingBy elmo1928 in Combat Arms Mod Help
    3Last post 14y ago
  • Help with windowed modeBy Piercing Goblin in Combat Arms Hacks & Cheats
    7Last post 18y ago
  • Help with God modeBy strip43lm0 in Programming Tutorial Requests
    13Last post 17y ago
  • I need help with Compatibility mode 95.By fallencry in Combat Arms Hacks & Cheats
    11Last post 17y ago

Tags for this Thread

None