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.
Installation- Copy sm_class_unlock.smx to addons/sourcemod/plugins
Configuration
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.
sm_class_unlock_scout <#>
sm_class_unlock_sniper <#>
sm_class_unlock_soldier <#>
sm_class_unlock_demo <#>
sm_class_unlock_medic <#>
sm_class_unlock_heavy <#>
sm_class_unlock_pyro <#>
sm_class_unlock_spy <#>
sm_class_unlock_engineer <#>
Set any of the above cvars to a number.
Zero means that the class is always unlocked.
For example:
sm_class_unlock_heavy 10
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.
sm_class_unlock_scout 0
will make the Scout always available
Changelog
Version 1.0.100
SourceMod release.
Version 1.0.101
Fixed a bug where players choosing an locked class would get the speed and hp of a scout.
Version 1.0.102
Fixed some minor bugs
Notes
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.