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 › [SOLVED] Stop Weapon Pick up

[SOLVED] Stop Weapon Pick up

Posts 1–4 of 4 · Page 1 of 1
nutterz
nutterz
[SOLVED] Stop Weapon Pick up
Right, once again i'm in need of help, i've searched EVERYWHERE, google returns nothing, a search on this returns even less

Modifying a .GSC file for a mod i've downloaded to improve to my liking. So, is there anyway to stop people picking up weapons after someone has been killed.

I've been looking around and if that's not possible then you could technically make a loop that continiously looks and removes the weapon from the player?

If banning weapons being picked up isn't possible, then does anyone think the loop will work. For example:

If player doesn't have a specific weapon in his hand then remove all his weapons, replace it with the weapon he should have + remove ammo?
(It's a zombie mod, zombie's are going around picking up shotguns and such, and I just don't think that should be allowed
#1 · edited 16y ago · 16y ago
House
House
/Posts merged
#2 · 16y ago
master131
[MPGH]master131
[php]
gunCheck()
{
while(1) {
if(!isValidWeapon(self getCurrentWeapon())) { //If current weapon is not in the isValidWeapon list..
self takeAllWeapons(); // Take all weapons
self giveWeapon( "gunhere_mp", 0, false ); //Gives them a weapon
while(self getCurrentWeapon() != "gunhere_mp") { //After given weapon, checks if the player hasn't switched to the gun
self switchToWeapon("gunhere_mp"); //Switches to the gun for you
self setWeaponAmmoStock("gunhere_mp", 0 ); //Replace 0 to how much ammo stock you want
self setWeaponAmmoClip("gunhere_mp", 0 ); //Replace 0 to how much ammo clip you want
wait 0.05; }
}
}
}

isValidWeapon(weapon) {
switch(weapon) {
case "gunhere_mp": //Change this to the gun you used above
case "none":
return true;
}
return false;
}
[/php]

Then put "self thread gunCheck();" under "onPlayerSpawned".
#3 · edited 16y ago · 16y ago
Insane
Insane
/Marked As Solved
#4 · 16y ago
Posts 1–4 of 4 · Page 1 of 1

Post a Reply

Similar Threads

  • [Solved] unlock weapon hacBy DRAKE` in Combat Arms EU Discussions
    4Last post 16y ago
  • [SOLVED] Change Weapon Damage?By schiz in Call of Duty Modern Warfare 2 Help
    6Last post 16y ago
  • [SOLVED]Stop Spectator modeBy nutterz in Call of Duty Modern Warfare 2 Help
    4Last post 16y ago
  • [SOLVED]Drop WeaponsBy edub18 in Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    5Last post 15y ago
  • [Solved]M9 Weapon CodeBy edub18 in Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    2Last post 15y ago

Tags for this Thread

None