| closedRemoving Weapons |
| Started by plogan64 on 11-29-2009, 07:08 PM |
Threads: 3
Joined: Sep 2006
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
Threads: 24
Joined: Oct 2006
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}nThreads: 3
Joined: Sep 2006
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?
Threads: 24
Joined: Oct 2006
Its just a code snippet. You'll need to add the plugin_init(), includes etc.
Threads: 59
Joined: Jan 2007
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.
Threads: 6
Joined: Sep 2005
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
Threads: 49
Joined: Jan 2006
sv_weaponstay 0nnDoes this work?
Threads: 6
Joined: Sep 2005
Don't know, was that included in the code? All I know is I installed it on my private server and it works.

