Winning Team Restriction
3 Attachment(s)
This plugin calls a configurable command to restrict items for the winning team. Restrictions can be done using any restriction-utility that allows team-based restriction (e.g. ^bugs^ sm_restrict).
New feature: win streak override, if the team losing by absolute number of points wins a certain amount of rounds, the restriction may be overridden with restrict all or complete unrestrict. For those who need it clear: ITS NOT A STANDALONE PLUGIN, IT NEEDS ANOTHER PLUGIN TO WORK. (I do not appreciate do do the same work twice) commands: sm_wtrestrict_status, show restrictions status cvars: sm_wt_restrict_enable 1/0, enable/disable plugin sm_wt_offset <int>, offset of score that one team may have more than the other before restriction becomes active sm_restrict_cmd_unrestrict_all "<cmd>", command that resets all restrictions to off. called each mapchange to get a defined state of restriction sm_restrict_cmd_t "<cmd>", command to activate restrictions on terrorist team sm_restrict_cmd_ct "<cmd>", command to activate restrictions on counter-terrorist team sm_unrestrict_cmd_t "<cmd>", command to disable restrictions on terrorist team sm_unrestrict_cmd_ct "<cmd>", command to disable restrictions on terrorist team sm_winstreak_length <wins>, number of subsequent round the loosing team has to win to enable win stream override (default "2"), set to 0 to disable this feature sm_winstreak_mode 0/1, what shall be done if loosing team has a win streak (0=unrestrict, 1=restrict for both teams, default "1") version history: 1.0.3 beta: first public release 1.0.4 fixed bug on disabling and reenabling the plugin during one map, added sm_wt_offset 1.2.5 some code cleanups, added win streak handling |
Re: Winning Team Restriction
Additionally I can provide you my sample config based on ^bugs^ sm_restrict (possibly instead of a real documentation :mrgreen:):
Code:
sm_wt_restrict_enable 1 Code:
sm_wt_restrict_enable 1 |
Re: Winning Team Restriction
red, when I get back from vacation, I will help you work with the API on this. Good idea. :) Kinda like my KDR plugin.
|
Re: Winning Team Restriction
nice idea. at the moment I suffer from a lack of spare time, to write plugins, administrate a CS:S server and do my day-time job.
maybe the most time-consuming job of porting my CS:S-Server to sourcemod is done now, and we'll see what we can do after you vacation. have a nice trip. |
Re: Winning Team Restriction
Please edit your plugin and put the id # for Bug's weapon restriction in the "Dependancies" field
|
Re: Winning Team Restriction
Quote:
In my opinion Bugs plugin is a bit too heavy-weight for this purpose. I use it due to missing alternatives. And even worse bugs plugin very often causes crashed due to some index errors (http://bugs.alliedmods.net/index.php...s&task_id=1094) making the whole admin-system unavailable. |
Re: Winning Team Restriction
Very-very cool
|
Re: Winning Team Restriction
Just a quick question, do the restrictions get deactivated again after the losing team has made up the difference? For instance, CT is leading with 7-2, I'll have my offset at 5, so the restrictions become active. If the T team levels the score or even just brings it back to 7-3, will the restrictions get deactivated?
|
Re: Winning Team Restriction
Quote:
sm_unrestrict_cmd_t "..." sm_unrestrict_cmd_ct "..." if teams scores get back in balance both teams get unrestricted. |
Re: Winning Team Restriction
Ah yes, of course, thanks, I'll try this plugin on one of my servers :).
|
All times are GMT -4. The time now is 09:06. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.