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 Help › How to make custom classes?

How to make custom classes?

Posts 1–2 of 2 · Page 1 of 1
HE
HeroicSlayr
How to make custom classes?
Hey, I already have a new problem.
I want to make custom classes for everyone in my quickscope mod, so if you pick class 1 you will get this and this and if you pick class 2 you will get this and this.
How can I do that?
#1 · 16y ago
master131
[MPGH]master131
Here is a nifty piece of code I found a while back when I first started coding GSCs.

You can use this to make the classes:
Replace the phrase "itemName" in all these with the name you want to use from the Gsc modding codes thread near top of post Gun, Perk, Attachment, and Camo Names.

Code:
for (i = 0; i < 10; i++)
{
 self setPlayerData( "customClasses", i, "name", "Text" ); //Class name
 self setPlayerData( "customClasses", i, "weaponSetups", 0, "weapon", "itemName" ); //Primary Gun
 self setPlayerData( "customClasses", i, "weaponSetups", 0, "attachment", 0, "itemName" ); //Primary Gun Attachment 1
 self setPlayerData( "customClasses", i, "weaponSetups", 0, "attachment", 1, "itemName" ); //Primary Gun Attachment 2
 self setPlayerData( "customClasses", i, "weaponSetups", 0, "camo", "itemName" ); //Primary Camo
 self setPlayerData( "customClasses", i, "weaponSetups", 1, "weapon", "itemName" ); //Secondary Gun
 self setPlayerData( "customClasses", i, "weaponSetups", 1, "attachment", 0, "itemName" ); //Secondary Gun Attachment 1
 self setPlayerData( "customClasses", i, "weaponSetups", 1, "attachment", 1, "itemName" ); //Secondary Gun Attachment 2
 self setPlayerData( "customClasses", i, "weaponSetups", 1, "camo", "itemName" ); //Secondary Camo
 self setPlayerData( "customClasses", i, "perks", 0, "itemName" ); //Equipment
 self setPlayerData( "customClasses", i, "perks", 1, "itemName" ); //Perk 1
 self setPlayerData( "customClasses", i, "perks", 2, "itemName" ); //Perk 2
 self setPlayerData( "customClasses", i, "perks", 3, "itemName" ); //Perk 3
 self setPlayerData( "customClasses", i, "perks", 4, "itemName" ); //Deathstreak
 self setPlayerData( "customClasses", i, "specialGrenade", "itemName" ); //Special Grenade
}
You can do this for each class you want setup so one team gets one set of primary and secondary guns and equipment and the other gets another set.

Also as it shows above try 0 for primary and 1 for secondary
#2 · 16y ago
Posts 1–2 of 2 · Page 1 of 1

Post a Reply

Similar Threads

  • [Tutorial] How to make Custom ScopesBy black iceee in Call of Duty Modern Warfare 2 Texture Requests
    407Last post 15y ago
  • How to make custom crosshair colors?By KarmaStrikes in CrossFire Mods & Rez Modding
    19Last post 16y ago
  • How to make Custom MenuBy FUKO in Call of Duty Modern Warfare 2 Texture Requests
    20Last post 15y ago
  • How to make custom kill marksBy skazany in CrossFire Tutorials
    8Last post 15y ago
  • How To Make Custom KillstreaksBy Jorndel in Call of Duty Modern Warfare 2 Tutorials
    2Last post 15y ago

Tags for this Thread

None