View Single Post
Author Message
devicenull
Veteran Member
Join Date: Mar 2004
Location: CT
Old 03-29-2007 , 22:13   Quick and dirty weapon restriction
Reply With Quote #1

This allows admins to restrict weapons. It does not repay the player if it removes a weapon.

The other issue, is if players have a weapon out when it's restricted, it just stops working. It loses it's ammo display, and will not fire.

Usage:
Add "admin_restrict weapon_knife" or whatever to your server.cfg. You can have up to 32 restrictions at a time. Use "admin_unrestrict weaponname" to unrestrict a weapon.

http://devicenull.org/sm_plugins/restriction.sp
__________________
Various bits of semi-useful code in a bunch of languages: http://code.devicenull.org/

Last edited by Freecode; 07-01-2007 at 20:43.
devicenull is offline