Sniper Control 1.2
This plugin is slightly different from other 'sniper control' plugins that may be out there... Simply put, plugins that force you to auto drop the sniper rifle if the set limit has been reached are exploitable, and you can easily get around them...
So, I've developed this plugin that does not let you even pick up the sniper rifle if the limit has been reached.
All sniper rifles are included in the 'checking'
a special #define is in the code for including or excluding the scout from the count, but the AWP and auto snipers are included...
This plugin requires the engine module to be in use on your server...
Test it out, it's still in beta stages so PLEASE report any bugs to this thread... ( sorry if the code is slightly messy, i havn't had time to clean it up )
There is a config file needed ( or, rather, recommended for this plugin ):
it goes in 'addons/amxx/configs/' and is called 'sniper_control.cfg'
cvars to use in this version ( 1.1 ):
- mp_sniper_control // 1 = on, 0 = off
sc_max_snipers_t // number of sniper rifles for the T team
sc_max_snipers_ct // number of sniper rifles for the CT team
There is also an optional disabled maps file
If you choose to use this file simply create a file called 'sc_disabled_maps.cfg' in '/addons/amxx/configs/' and list maps in which you would like the plugin to be disabled.
* NOTE: if you DO use 'sc_disabled_maps.cfg' then you must add mp_sniper_control 1 to your 'sniper_control.cfg' file in order for it to re-enable the plugin on non-disabled maps.
Enjoy, and remember to PLEASE report bugs to this thread.. Thank you
/ - Changelog -------------------------------------- */
Initial public release
added per-map disabled via 'sc_disabled_maps.cfg'
de-hardcoded config file paths from plugin
fixed issue with scouts being blocked with INCLUDE_SCOUTS 0