Fairly simple weapon restriction plugin, listed/tested on CS:S but should work for any source based game.
Note: Does not refund any money for lost items or alert the player that the weapon is restricted. This is due to simplicity of the need on my servers. I am simply releasing this plugin for anyone who can make use of it. I suggest advertising your restricted weapons.
Note2: When restricting items, it is necessary to include the full name of the weapon. For example: sm_restrict weapon_awp
Note3: Won't work with TF2 until I get the offsets for it.
Commands/cvars:
sm_restrict <weapon> ; restricts a weapon from being picked up/bought
sm_round_restrict <weapon ; restricts a weapon from being retained the next round
sm_unrestrict <weapon> ; removes a pickup/bought restriction
sm_round_unrestrict ; removes a start of round weapon restriction
cvars:
sm_enable_restrict 1/0 ; enables buy/pickup restrictions
sm_enable_round_restrict 1/0 ; enables/disables round-start restrictions
sm_roundcheck_delay <float seconds> ; the seconds from player spawn items are checked/removed -- needs to be about 0.2 in my experimentation
I'll entertain bug fixes and simple feature requests.
Credit given where credit due:
devicenull - Original code [that now doesn't work] and helping me with a couple portions and entertaining me while I bugged him.
dalto - Sell!; offsets to Weapon_Equip