Post Reply 
Sniper Limit (AWP/Auto), v2.0-AMX
Author Message
AMX Mod Dev Offline
Developer

Posts: 2 063
Joined: 2013 Aug
Reputation: 21
Country: France
Post: #1
Sniper Limit (AWP/Auto), v2.0-AMX
.: Sniper Limit (AWP/Auto) :.
French topic: Here

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 :.
    English, French.
.: 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 :.


Attached File(s)
.zip  sniperlimit.zip (Size: 20.23 KB / Downloads: 1581)

AMX Mod v2010.1 | Module: ReAPI (new stuff of 2020!)
--------
HTML doc (latest AMX version): English, French, German, Polish.
--------
Topics link: The most important topics on this forum.
--------
AMX Mod official public servers (provided by "ngz-server.de"): Click me for details!
Come on! Go to play on unique servers powered by AMX Mod!
--------
IMPORTANT:
No support via PM, use the forum to generate more activity please!
You can at least do that if you like enjoying all of that I am providing for free!
2013-11-21 01:46 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)