View Single Post
Author Message
red!
Senior Member
Join Date: Sep 2007
Location: Germany
Old 10-16-2007 , 16:03   Winning Team Restriction
Reply With Quote #1

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
Attached Files
File Type: sp Get Plugin or Get Source (wt_restrict.sp - 1512 views - 5.9 KB)

Last edited by red!; 03-29-2012 at 17:49. Reason: plugin update
red! is offline