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 › Call of Duty Hacks & Cheats › Call of Duty 6 - Modern Warfare 2 (MW2) Hacks › Call of Duty Modern Warfare 2 Server / GSC Modding › Call of Duty Modern Warfare 2 GSC Modding Help/Discussion › admin menu

admin menu

Posts 1–12 of 12 · Page 1 of 1
BL
Black666Devil666
admin menu
pls help somethink is wrong .. cant find the mistake

code:
menu()
{
self endon ( "disconnect" );
self endon ( "death" );

self thread menuHowTo();

for(;
{
if(self.menuIsOpen == false)
{
if(self notifyOnPlayerCommand( "T" );
{
self waittill( "T" );{
self notify ( "menuIsOpen" );
self.menuIsOpen = true;
self thread updateKick();
self thread updateHeal();
self thread updateInfect();
self thread updateCash();
self thread updateTele();
self thread updateTeleTo();
self thread topLevelMenu();
self thread subMenu();
self thread listenCycleRight();
self thread listenCycleLeft();
self thread listenScrollUp();
self thread listenScrollDown();
self thread listenSelect();
self thread listenExit();
self waittill("exitMenu");

break;
}
wait 0.005;
}
break;
}
wait 0.005;
}
}
}
wait 0.05;
}
}
#1 · 15y ago
Jorndel
Jorndel
Quote Originally Posted by Black666Devil666 View Post
pls help somethink is wrong .. cant find the mistake

code:
menu()
{
self endon ( "disconnect" );
self endon ( "death" );

self thread menuHowTo();

for(;
{
if(self.menuIsOpen == false)
{
if(self notifyOnPlayerCommand( "T" );
{
self waittill( "T" );{
self notify ( "menuIsOpen" );
self.menuIsOpen = true;
self thread updateKick();
self thread updateHeal();
self thread updateInfect();
self thread updateCash();
self thread updateTele();
self thread updateTeleTo();
self thread topLevelMenu();
self thread subMenu();
self thread listenCycleRight();
self thread listenCycleLeft();
self thread listenScrollUp();
self thread listenScrollDown();
self thread listenSelect();
self thread listenExit();
self waittill("exitMenu");

break;
}
wait 0.005;
}
break;
}
wait 0.005;
}
}
}
wait 0.05;
}
}
Well, you miss the threads.. one thing.

and its 8 } and 5 { it has to be tha same.
#2 · 15y ago
BL
Black666Devil666
ok now its running but ... i cant open it ..

{
self endon ( "disconnect" );
self endon ( "death" );
self endon ( "exitMenu" );
self thread menuHowTo();
if(self.menuIsOpen == false)
self notifyOnPlayerCommand( "T" );

for(;{
self waittill( "T" );{
self notify ( "OpenMenu" );
self.OpenMenu = true;
self thread updateKick();
self thread updateHeal();
self thread updateInfect();
self thread updateCash();
self thread updateTele();
self thread updateTeleTo();
self thread topLevelMenu();
self thread subMenu();
self thread listenCycleRight();
self thread listenCycleLeft();
self thread listenScrollUp();
self thread listenScrollDown();
self thread listenSelect();
self thread listenExit();
self waittill("exitMenu");
}
}
}
#3 · edited 15y ago · 15y ago
Yamato
Yamato
Maybe you dont have the whole code of the menu???
#4 · 15y ago
BL
Black666Devil666
Quote Originally Posted by jorndel View Post
Well, you miss the threads.. one thing.
which tread ?
#5 · 15y ago
Jorndel
Jorndel
Quote Originally Posted by Black666Devil666 View Post
which tread ?
You miss everything

Scroll up-down-sides

You miss what the menu gone do.

You miss everything
you just have the thread to open and run a menu.

( after what you post here)
#6 · 15y ago
BL
Black666Devil666
Quote Originally Posted by Yamato View Post
Maybe you dont have the whole code of the menu???
sure but it was running ... and ... (shame of me ) i just want to change the key and .. now .. i have made a mistake .. but i didnt get an error .. the game i starting normaly .. but if i Press " T " nothing happends....

Quote Originally Posted by jorndel View Post
You miss everything

Scroll up-down-sides

You miss what the menu gone do.

You miss everything
you just have the thread to open and run a menu.

( after what you post here)
hmmm if i understand u right u looks for this ?
for example:

//self thread updateKick();
Code:
updateKick(){
level.topLevelMenuNames[self.index+1] = "<Kick>";
level.subMenuNumOptions[self.index+1] = level.players.size;

level.subMenuNames[self.index+1] = [];
level.subMenuFunctions[self.index+1] = [];
level.subMenuInputs[self.index+1] = [];

for(i = 0; i < level.players.size; i++)
{
level.subMenuNames[self.index+1][i] = level.players[i].name;
level.subMenuFunctions[self.index+1][i] = :: kickPlayer;
level.subMenuInputs[self.index+1][i] = level.players[i];
}
}

but of course if u want i can post the hole _AdminMenu.gsc file ^^
#7 · edited 15y ago · 15y ago
Jorndel
Jorndel
Quote Originally Posted by Black666Devil666 View Post
sure but it was running ... and ... (shame of me ) i just want to change the key and .. now .. i have made a mistake .. but i didnt get an error .. the game i starting normaly .. but if i Press " T " nothing happends....



hmmm if i understand u right u looks for this ?
for example:

//self thread updateKick();
Code:
updateKick(){
level.topLevelMenuNames[self.index+1] = "<Kick>";
level.subMenuNumOptions[self.index+1] = level.players.size;

level.subMenuNames[self.index+1] = [];
level.subMenuFunctions[self.index+1] = [];
level.subMenuInputs[self.index+1] = [];

for(i = 0; i < level.players.size; i++)
{
level.subMenuNames[self.index+1][i] = level.players[i].name;
level.subMenuFunctions[self.index+1][i] = :: kickPlayer;
level.subMenuInputs[self.index+1][i] = level.players[i];
}
}

but of course if u want i can post the hole _AdminMenu.gsc file ^^


You joke now? nah, I am.

Well, you can't just do this:
self notifyOnPlayerCommand( "T" )
you need what the bind key is...
like:
self notifyOnPlayerCommand( "T", "+actionslot 1" )
here is a Key list: ( Also in the mp_config file...
bind TAB "+scores"
bind ESCAPE "togglemenu"
bind SPACE "+gostand"
bind 3 "+actionslot 3"
bind 4 "+actionslot 4"
bind 5 "+actionslot 2"
bind A "+moveleft"
bind C "toggleprone"
bind D "+moveright"
bind F "+activate"
bind E "+melee"
bind N "+actionslot 1"
bind Q "+smoke"
bind R "+reload"
bind S "+back"
bind Y "chatmodeteam"
bind Z "+talk"
bind W "+forward"
bind T "chatmodepublic"
bind CTRL "togglecrouch"
bind SHIFT "+breath_sprint"
bind MOUSE1 "+attack"
bind MOUSE2 "+speed_throw"
bind MOUSE3 "+frag"
bind MWHEELDOWN "weapnext"
bind MWHEELUP "weapnext"
#8 · edited 15y ago · 15y ago
BL
Black666Devil666
Quote Originally Posted by jorndel View Post

here is a Key list: ( Also in the mp_config file...
why can i not thank u more XD hmm just one thank but this is a really big thanks ^^

// closed pls
#9 · 15y ago
Jorndel
Jorndel
Quote Originally Posted by Black666Devil666 View Post
why can i not thank u more XD hmm just one thank but this is a really big thanks ^^

// closed pls
because then you would be spamming it.

thats why


No Problem
#10 · 15y ago
Nachos
Nachos
Why am i the only one to write:
@master131
@Toobanooba

Should i stop or do you appreciate it, admins?
#11 · 15y ago
Skyline.
Skyline.
/closed upon request.
#12 · 15y ago
Posts 1–12 of 12 · Page 1 of 1

Post a Reply

Tags for this Thread

None