DESCRIPTION:
This plugin is a fairly configurable weapon restriction plugin based on Kill:Death Ratio (KDR). There are 2 different levels of KDR you can set along with two corresponding CVars to list the restricted weapons for each of those levels.
You can set the restriction to take affect the moment the player exceeds your set KDR values, or have it set the restriction the next time they spawn.
You can define the primary and secondary replacement weapons for each level of the KDR or use "none" to not give any replacements and just have the player drop the weapon.
This plugin has the option to maintain the restrictions even if the player disconnects and reconnects to attempt to circumvent the restriction. It is reset on map change.
If you desire, you can utilize the built in immunity. By default, immunity to this plugin is off. You can also override the default admin flag of "t" by overriding the command "no_kdr_restrict" to whatever it is you want.
You can also count bot kills towards a player's KDR or not.
REQUIREMENTS:
SourceMod Version: 1.5.0-dev+3765
SDKHooks (latest version of 1.5 comes with SDKHooks)
Optional:
Updater
INSTALLATION AND NOTES:
1. Put .smx file in your sourcemod/plugins folder
2. Put the phrases.txt files in your sourcemod/translations folder
3. Restart your server and edit the config file created in cfg/sourcemod named plugin.kdr_weapon_limit.cfg then restart the plugin (or better server) if you make changes.
CREDITS:
The following people helped alpha and beta test this and many thanks for bearing with the errors and left over debug junk:
Noitartsiger
pubhero
They also helped provide the other translation language files