I've only tested it in CS:S and there is some extra functionality, if this plugin is run under CS:S:

CTs are allowed to rush, if T plant the bomb

Ts are allowed to rush, if a hostage starts following a CT

If there are any other special events for other mods you want rushing to be allowed after, just post back ;)

Map Configs:
Each supported map has an own config file in sourcemod/configs/antirush/map_name.cfg.
If you want to add one, just do so ingame or add a file by hand using the same structure as the other present files.
Map configs for all default maps are included.

But don't forget to save your changes on the next page! Otherwise closing the menu or watching a different zone will reverse your changes.
Saving will also save the zone to the map config file.Attention! Punishments 4 and 5 require SDKHooks!
When using the knife only punishment, you should add 2 extra zones around your real punishing zone and set the one on Team 1's side to Team 1 only and the other one to Team 2 only respectively. Now set both "punishments" to 5 to allow using all weapons again, if a player steps back to his own side.

Managing fences:
Fences don't affect players at all. They're only shown to players, who aren't allowed to rush at the moment, so they know, where to stop.

It's recommend to first set the fences on new maps and add the zones afterwards. Fences are handled the same as the zones, except you have to shot at the two ends on adding.

You can change the color of the fences with the sm_antirush_fencecolor cvar.
It uses RGBA values: (0-255) -> red green blue alpha.
It defaults to red: 255 0 0 255.

The fence you're currently editing is hidden.

ConVars:

sm_antirush_enable - Should we take actions in zones and show the messages/fences? (Default: 1)

sm_antirush_norushtime - Time in seconds rushing is not allowed after round start? (Default: 120)

sm_antirush_showzones - Show the zones either when rushing is not allowed? (Default: 0)

sm_antirush_oneononerushing - Allow rushing if there is only one player left alive in BOTH teams. (Default: 0) This is obsolete, when setting sm_antirush_lastmanrushing to 1, but is useful for allowing rushing for knifefights only etc.

Admin Command:
Admins may use the sm_zones command to open the Anti Rush menu.

Changelog:

Quote:

16.03.2011 Version 1.0:

Initial release

18.03.2011 Version 1.1:

Added sm_antirush_fencecolor convar to set the color of fences.

Added option to set the team for zones a fences

Now taking mp_freezetime into account

03.05.2011 Version 1.2:

Added sm_antirush_enable convar to disable the plugin when not needed

Added sm_antirush_showzones to show the zones same as the fences

Added option to set the positions of the fences/zones by pressing "e" when adding new ones

Added per zone punishment option. Defaults to the punishment set in the convar.

Now highlighting the position you're editing with a blue glow

01.07.2011 Version 1.3:

Added sm_antirush_oneononerushing to allow rushing if there is only 1 player left in BOTH teams. This is obsolete, when setting sm_antirush_lastmanrushing to 1, but is useful for allowing rushing for knifefights only etc.