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 › [Solved] With code

[Solved] With code

Posts 1–8 of 8 · Page 1 of 1
cgallagher21
cgallagher21
[Solved] With code
Ok so me and hannibal are making a GUN RTD mod and im having trouble because sometimes it skips a roll and dont give me that wep whats wrong?

Code:
doRolls()
{
self endon ( "disconnect" );
self endon ( "death" );

		switch(RandomInt(16))
		{
		case 0:
			self takeAllWeapons();
			self iPrintlnBold("^5ROLL 1");
			wait 1;
			self giveWeapon("usp_mp", 0, false );
			break;

		case 1:
			self takeAllWeapons();
			self iPrintlnBold("^5ROLL 2");
			wait 1;
			self giveWeapon("m1014_mp", 0, false );
			break;

		case 2:
			self takeAllWeapons();			
			self iPrintlnBold("^5ROLL 3");
			wait 1;
			self giveWeapon("ranger_akimbo_mp", 0, false);
			break;
			
		case 3:
			self takeAllWeapons();			
			self iPrintlnBold("^5ROLL 4");
			wait 1;
			self giveWeapon("m79_mp", 0, false );
			break;
			
		case 4:
			self takeAllWeapons();
			self iPrintlnBold("^5ROLL 5");
			wait 1;
			self giveWeapon("rpd_grip_xmags_mp", 0, false);
			break;
			
		case 5:
			self takeAllWeapons();
			self iPrintlnBold("^5ROLL 6");
			wait 1;
			self giveWeapon("spas12_grip_mp", 0, false);
			break;

		case 6:
			self takeAllWeapons();
			self iPrintlnBold("^5ROLL 7");
			wait 1;
			self giveWeapon("barrett_fmj_xmags_mp", 0, false);
			break;

		case 7:
			self takeAllWeapons();
			self iPrintlnBold("^5ROLL 8");
			wait 1;
			self giveWeapon("pp2000_silencer_xmags_mp", 0, false );
			break;

		case 8:
			self takeAllWeapons();
			self iPrintlnBold("^5Roll 9");
			wait 1;
			self giveWeapon("deserteagle_fmj_tactical_mp", 0, false );
			
		case 9:
			self takeAllWeapons();
			self iPrintlnBold("^5ROLL 10");
			wait 1;
			self giveWeapon("beretta393_akimbo_xmags_mp", 0, false );
			break;

		case 10:
			self takeAllWeapons();
			self iPrintlnBold("^5Roll 11");
			wait 1;
			self giveWeapon("riotshield_mp", 0, false );;
			
		case 11:
			self takeAllWeapons();
			self iPrintlnBold("^5ROLL 12");
			wait 1;
			self giveWeapon("mp5k_silencer_thermal_mp", 0, false );
			break;

		case 12:
			self takeAllWeapons();
			self iPrintlnBold("^5Roll 13");
			wait 1;
			self giveWeapon("uzi_eotech_rof_mp", 0, false );
			
		case 13:
			self takeAllWeapons();
			self iPrintlnBold("^5Roll 14");
			wait 1;
			self giveWeapon("famas_shotgun_mp", 0, false );
			
		case 14:
			self takeAllWeapons();
			self iPrintlnBold("^5ROLL 15");
			wait 1;
			self giveWeapon("sa80_thermal_mp", 0, false );
			break;

		case 15:
			self takeAllWeapons();
			self iPrintlnBold("^5Roll 16");
			wait 1;
			self giveWeapon("javelin_mp", 0, false );

		}

}
Code:
self thread doRolls();
#1 · 15y ago
47
47116893
need "break;" in each "case ?"
#2 · 15y ago
cgallagher21
cgallagher21
Oh wow didnt even see that im retarted thx
#3 · 15y ago
47
47116893
if you have time, solve my problem.
http://www.mpgh.net/forum/323-call-d...vate-room.html
#4 · 15y ago
[WhA]4FunPlayin
[WhA]4FunPlayin
I don't know but when I made robot invasion I also did
randomInt(3)
and case 0..3 (thought that 0 counts) but no, I never had option 3, so I just did randomInt(4) and it worked, and yea your last roll is missing a break;

edit not just the last one >.<
#5 · 15y ago
AZUMIKKEL
AZUMIKKEL
Use this and remove the onPlayerDeath() thread
(dont forget the player thread onPlayerDeath(); too)
And then just make your gungame shit there

Edit: i 4Got the link. http://www.mpgh.net/forum/308-call-d...ase-kapow.html

Just looked through the thread again and figured that you werent making a gungame. fel
#6 · edited 15y ago · 15y ago
cgallagher21
cgallagher21
Thanks
azu and 4fun
#7 · 15y ago
Blubb1337
Blubb1337
/marked as solved
#8 · 15y ago
Posts 1–8 of 8 · Page 1 of 1

Post a Reply

Similar Threads

  • [SOLVED]With coding some mod...By ZeroTroubles in Call of Duty Modern Warfare 2 Help
    9Last post 16y ago
  • [Help]problem with code[/solved]By pushdis15 in Visual Basic Programming
    2Last post 15y ago
  • Help with codesBy kalwarbo2008 in C++/C Programming
    8Last post 18y ago
  • trouble with codeBy cool4345 in WarRock Korea Hacks
    3Last post 19y ago
  • Help With Coding PleaseBy pbguy145 in WarRock - International Hacks
    1Last post 18y ago

Tags for this Thread

None