This plugin simply restricts weapons, so they can't be used. All weapons can easily be restricted by the use of commands or the config file. The plugin is "sv_cheats"-friendly, and it's impossible to equip a restricted weapon. (If that's not the case, please contact me)
Feature list
CommandsVery simple to use
Prevent specific weapons from being used
Control restricted weapons through commands
Easy-to-use config file for permanent restrictions
All commands require the config admin flag.wr_restrict <weapon*> - Restricts the given weapon.
wr_unrestrict <weapon*> - Unrestricts the given weapon.
wr_reload - Reloads the config files. (Note: This removes all temporary restrictions.)
*: The weapon parameter can either be the classname (e.g. weapon_awp) or the weapon alias (e.g. awp). It's also case-insensitive.
Config
The config adds a neat and simple way to permanently restrict weapons. It's not needed and does not have to be present at all. The config is located in addons/sourcemod/configs/restricted_weapons.txt. It's a plain text file, where each line is an entry in the restrictions list. A line consists of just a weapon alias, which works the same way as the commands. The plugin will yield warning, if a line is an invalid weapon or if the same weapon is listed multiple times. An example of a config file could be:
Code:
Code: Select all
awp
p90
weapon_Glock
rpg
weapon_deagle
weapon_stunstick
P90
Code:
Code: Select all
[WR] Config file: WARNING - Invalid entry: rpg! (Line: 4)
[WR] Config file: WARNING - Invalid entry: stunstick! (Line: 6)
[WR] Config file: WARNING - Duplicate entry: p90! (Line: 7)
[WR] Config file: Loaded 4 restriction(s).
Installation
If you want to utilize the config file, then you have to manually create the file: addons/sourcemod/configs/restricted_weapons.txt. Otherwise, it's a normal plugin installation.
ConVars
Downloadwr_debug (default: false/0) - Prints debug information to the console.
wr_version - The current version of the plugin.
Source