Raised This Month: $32 Target: $400
 8% 

Sniper control v1.2


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Plugin Info:     Modification:   Counter-Strike        Category:   General Purpose        Approver:   devicenull (200)
willyumyum
Member
Join Date: Mar 2004
Old 04-05-2004 , 02:53   Sniper control v1.2
Reply With Quote #1

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 -------------------------------------- */
v1.0
Initial public release
v1.1
added per-map disabled via 'sc_disabled_maps.cfg'
de-hardcoded config file paths from plugin
v1.2
fixed issue with scouts being blocked with INCLUDE_SCOUTS 0
Attached Files
File Type: sma Get Plugin or Get Source (sniper_control.sma - 9003 views - 10.5 KB)
__________________
Victory is Mine !!! ~ Stewie Griffin
Visit my server: 65.39.205.73:27017
http://www.bbfclan.net
willyumyum is offline
Send a message via AIM to willyumyum
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:58.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode