View Single Post
Author Message
devicenull
Veteran Member
Join Date: Mar 2004
Location: CT
Old 10-30-2005 , 22:43   Weapon Restriction
Reply With Quote #1

Version: 0.15

What is it?
This is a fairly simple plugin that lets you restrict weapons in CSS. It will probably work for other mods too

How do I use it?
You need to download and Install SourceMM. Next, set it up like a normal plugin.

Now, open up your server.cfg, and add lines for the weapons you want to block.
The syntax for the blockweapon command is as follows:
blockweapon weapon_name block|unblock

So to block the awp and knife, I would do this:
blockweapon weapon_awp block
blockweapon weapon_knife block

Note that players will still be able to buy the weapons, but they will be removed very shortly after they buy them. They will also not get their money refunded.

What this will not have (don't ask for this):
Kick/Slay/Other action when they buy it
Refunding money (this would make it mod specific)

What may be added:
Message after a weapon is removed

Okay, where can I get it?
Win32: http://devnull.vision-host.net/files...estrict_mm.zip
Linux: http://devnull.vision-host.net/files...rict_mm.tar.gz
Source: http://devnull.vision-host.net/files...ict_src.tar.gz

Thanks to L. Duke's plugin for showing me how to include cbaseentity.h

Changes?
v0.11->v0.15
Works with new css update.
v0.1->v0.11
  • Fixed crashbug
__________________
Various bits of semi-useful code in a bunch of languages: http://code.devicenull.org/
devicenull is offline