Day of Defeat Plugins Community
This site is an archive — everything is readable and downloadable, nothing can be posted. Admin
Archive › Old Forum Threads › General › Requests for DoD Plugins › Removing Weapons
8 posts, 5 people · 5,167 views Thread Rating: ★★★★★
closedRemoving Weapons
Started by plogan64 on 11-29-2009, 07:08 PM
P plogan64
started this thread
Posts: 24
Threads: 3
Joined: Sep 2006
11-29-2009, 07:08 PM #1

I was hoping there was a plugin that would allow you to make the weapons disappear to where they can't be picked up when a player dies.rnrnI did a word search in this forum and google and didn't find anything.rnrnDoes anyone know of such a plugin??rnrnI was hoping Wilson corpse stay would do it but it only make them stay longer not remove them.rnrnThanks

Vet
posted here
Posts: 229
Threads: 24
Joined: Oct 2006
11-30-2009, 01:14 AM #2

Or you could just prevent picking them up.nn

n	register_forward(FM_Touch, "wpn_touch")n.n.n.npublic wpn_touch(ent, player)n{n	static wpnclass[8]n	if (!g_enabled) //Control variablen		return FMRES_IGNOREDn	if (!pev_valid(ent) || !is_user_alive(player))n		return FMRES_IGNOREDn	pev(ent, pev_classname, wpnclass, 7)n	if (equali(wpnclass, "weapon", 6))n		return FMRES_SUPERCEDEnn	return FMRES_IGNOREDn}n
P plogan64
started this thread
Posts: 24
Threads: 3
Joined: Sep 2006
11-30-2009, 01:17 AM #3

ThanksrnrnThat will work too. I will give it a try.rnrnI will compile it and was wondering do I need to give it a ceratin name for it to work?

Vet
posted here
Posts: 229
Threads: 24
Joined: Oct 2006
11-30-2009, 01:21 AM #4

Its just a code snippet. You'll need to add the plugin_init(), includes etc.

Tank
posted here
Posts: 581
Threads: 59
Joined: Jan 2007
11-30-2009, 06:39 PM #5

If Vet's solution doesn't work, Syn's Weapons Mod also has that function. If you do not wish to add the whole weapons mod function you can simply disable them by the cvars set in your amxx.cfg. But it also contains an option where the moment a player drops a weapon it disappears.nnOne thing I would like to add though, both Vet's (as I assume) as my suggestion both will also prevent alive players from dropping and picking back up their weapon, so when i hit my G key (default key for dropping primary) im basicly screwed with a pistol and a knife.

M Merrill
posted here
Posts: 38
Threads: 6
Joined: Sep 2005
06-20-2010, 07:01 PM #6

I found this plugin which works perfectly should anyone have a need to remove weapons so players can't pick them up.rnrnhttp://forums.alliedmods.net/showpost.php?p=949048&postcount=3

S sparky99
posted here
Posts: 263
Threads: 49
Joined: Jan 2006
06-21-2010, 10:33 AM #7

sv_weaponstay 0nnDoes this work?

M Merrill
posted here
Posts: 38
Threads: 6
Joined: Sep 2005
06-21-2010, 07:17 PM #8

Don't know, was that included in the code? All I know is I installed it on my private server and it works.

Archive › Old Forum Threads › General › Requests for DoD Plugins › Removing Weapons
DoD Plugins Archive · Repository · Old Forum Threads · Maps · Admin · built 14 Sep 2026 00:34 UTC