Many players complain that when server player numbers are low, certain classes should not be available, such as the sniper or the heavy.
This plugin simply locks those classes until player numbers reach a certain quantity.
- Copy sm_class_unlock.smx to addons/sourcemod/plugins
sm_class_unlock <0 | 1> - enables or disables the plugin
sm_class_unlock_immunity <0 | 1> - when enabled, admins can access any of the locked classes - Admin level is set to ADMFLAG_GENERIC.
Set any of the above cvars to a number.
Zero means that the class is always unlocked.
will unlock the Heavy class when there are ten or more players on the server. Remember the script counts ALL players, not just the number of players on any one team.
will make the Scout always available
Fixed a bug where players choosing an locked class would get the speed and hp of a scout.
Fixed some minor bugs
At least one of the cvars MUST be set to zero
or the plugin will not function properly. I'd suggest that Scouts, Medics, Soldiers and Demos can all be left at zero.
The plugin does not limit class numbers. There are several other plugins that will do this.