Weapon Restrictions
1 Attachment(s)
This plugin was designed and tested for use on Counter-Strike: Source. It uses some of the SDK Calls that teame06 wrote for GunGame: Source, and would not have been possible without the help of teame06, BAILOPAN, pRed, Tsunami, and many others who idle #sourcemod.
If you have any questions or find any issues, please let me know either here or in #sourcemod on irc.gamesurge.net. Instructions for installation: Download and unzip the attached file. The zip file has been designed to mimic the structure of a standard srcds installation, and all files are in their correct places. I've expanded this out to use a translations file, a gamedata file, and two config files, so make sure you check the file contents before just dropping it in, or you will have trouble. This requires the latest version of the 1.0.3 Sourcemod snapshot. Usage: sm_restrict <weapon|group> <amount|default=0> <all=default|ct|t> sm_unrestrict <weapon|group> <all=default|ct|t> sm_addgroup <"group name"> <"weapon_one weapon_two weapon_three"> sm_grouplist sm_dropc4 Notes: -If you want to setup "static" groups, you will need to add the command to either server.cfg or restrict_weapons.cfg in the above format. -Ex. sm_addgroup "pistols" "glock p228 deagle" Valid weapons are: Code:
Code:
1.0 Version 3.1 will include the following: --sm_knife and sm_pistols --team based restrictions in menu As always, when uploading this plugin, please -restart- your counter-strike server so that all old bad cvar values are nixed. Please let me know if you experience any issues. Enjoy! |
Re: Weapon Restrictions
This works like a charm, very good work finally a simple decent weapon restrictions plugin!
|
Re: Weapon Restrictions
Updated to setup directory structure to match Sourcemod's. Also fixed an exploit that sfPlayer caught.
Thanks! |
Re: Weapon Restrictions
Great, thanks for your work! Two questions: is it possible to query the present restrictions? Are the restrictions saved, or do I need to exec the sm_restrict lines via a config file?
|
Re: Weapon Restrictions
Weapon restrictions are cleared at the end of each map. So if you want a weapon restricted every map you'll need it in server.cfg for now.
ie. sm_restrict awp or sm_restrict awp 2 or sm_restrict awp 2 <team> One of my 'todos' is to add in a weapons.cfg file that will execute each map change, and that will be added in sometime in the near future. Now, insofar as current restrictions. No, there isn't any way to do that. I will make a note though and implement that at the same time I do the weapons.cfg. |
Re: Weapon Restrictions
Great! One last question: is there a way to lift all restrictions at a time or is sm_unrestrict limited to a specific weapon? If not, something like sm_unrestrict_all would come in handy.
|
Re: Weapon Restrictions
I'll add it to my todo list. :)
Alternately, just change the map. |
Re: Weapon Restrictions
Is there anyway to allow the admins to use the restricted weapons?
|
Re: Weapon Restrictions
Restricted is restricted. Its easily added in though.
|
Re: Weapon Restrictions
I get lots of these error messages from the plugin:
Quote:
|
All times are GMT -4. The time now is 20:56. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.