.: Sniper Limit (AWP/Auto) :.
Version: 2.0-AMX
Authors: SuicideDog/MattOG/KWo/AMX Mod Team
.: Description :.
Very usefull plugin which restricts usage of the AWP or/and Auto-Snipers according the following things:
- limits the usage if there is no a required minimal number of players in one team
- limits the usage if there is too much players in one team who have the weapon
- limits the usage if there is a winning team (which won't be able to use these weapons)
Info: AMX Mod version modified/rewritten. Works perfect with extra-plugins as:
- Change Models
- Pick Ammo
.: Cvars :.
sl_awplimit <0|1> - disable/enable AWP limitation (default: 1)
sl_autolimit <0|1> - disable/enable Auto-Snipers limitation (default: 1)
sl_min_players "5" - minimal number of players required in one team to allow AWP/Auto-Snipers
sl_max_awps "2" - maximal number of AWPs allowed per team
sl_max_autos "1" - maximal number of Auto-Snipers allowed per team
sl_winspread_awp "3" - difference between scores of each team to restrict AWP
sl_winspread_auto "2" - difference between scores of each team to restrict Auto-Snipers
sl_checkrebuy <0|1> - disable/enable blocking of autobuy/rebuy usage (default: 0)
.: Available languages :.
.: Requirements :.
AMX Mod 2010.1 or higher.
Important: If you are using CS 1.5, use the "sniperlimit_NO_STEAM.amx" or recompile the .sma file with the #define NO_STEAM uncommented.
Compatible mods: Counter-Strike, Condition Zero.
.: Changelog :.
Code:
v1.0 (MattOG)
- Combined all 3 plugins (g3sg1/sg550/awp limit) into one.
- Added seperate commands to control Auto's and Awps. (different limits/rounds)
- Fixed bug with old-style menu's still being able to buy guns. (Credit to bAnTAi, I used his Y.A.S.C. plugin to help with the code).
- I didn't make it stop bots:
1. All bots come with built in weapon restrictions.
2. Bots tend not to be AWP whores ;)
v1.1 (MattOG)
- Changed Maxawps/autos and winspreads to cvars to enable on-the-fly changing, and to allow changes to be set in server/amxx/map configs.
v1.2 (MattOG)
- Minor bug fix where old style menu's couldn't buy at all. (Thanks to Olie for pointing it out).
v1.3 (SuicideDog/DaSoul)
- Added DaSoul's code to allow it to work with PTB correctly
v1.4 (KWo)
- Little bug fixes causing Run Time Errors etc...
- Blocking pickup limited weapon
- Bots are affected by this plugin, too but it doesn't prevent them from buying (they drop limited weapons after buying)
- Optimized usage of cvars by using pcvar functions.
v1.5 (KWo)
- Added support for team balancing (if someone has an awp or auto sniper and get switched alive to the opposite team)
v1.52 (KWo)
- Added min_players setting (cvar) to allow awps/autos if at least min_players amount in each team is reached
v1.60 (KWo)
- Many functions re-written to fix the stack error problem
v2.0-AMX (Updated for AMX Mod [AMX Mod version/conversion])
- Modified many things to make the plugin much better (about ressources used).
- Added prefix "sl_" to all cvars.
- Added support with extra-plugins, as change_models/pick_ammo.
- Added NoSteam support for CS 1.5 (#define NO_STEAM).
- Added multilingual support.
.: Download :.