Occasionally, servers have players who refuse to give up a limited class such as a sniper or HWG and need to be prevented from using that class.
Or perhaps you have players who have questionable talents who may need to be persuaded to try other classes.
One example of a use is in a match where each player is designated a particular class and is not allowed to use any other classes.
This plugin will prevent individual players from joining that particular class.
Supported Mods
Team Fortress 2
Day of Defeat Source
Installation
TF2 - Copy sm_class_block.smx file to addons/sourcemod/plugins folder
DoDS - Copy sm_dod_class_block.smx file to addons/sourcemod/plugins folder
Commands
TF2 sm_blockclass <name|#userid> <scout|sniper|soldier|demo|medic|heavy|pyro|s py|engineer>
Blocks a class for a particular player
sm_unblockclass <name|#userid> <scout|sniper|soldier|demo|medic|heavy|pyro|s py|engineer>
Unblocks a class for a particular player
DoDS sm_blockclass <name|#userid> <rifleman|assault|support|sniper|mg|rocket>
Blocks a class for a particular player
sm_unblockclass <name|#userid> <rifleman|assault|support|sniper|mg|rocket>
Unblocks a class for a particular player
Configuration sm_class_block_enabled <1 | 0>
Turns on and off the plugin
Notes
Is also available from Admin menu under Player Commands.
Creates a file in /configs called sm_class_block.txt. In this, the data is stored for each player and can be edited manually if necessary.
The data is stored locally on the server itself and is not designed for cross server control.
Changelog v1.0.101 - Release
v1.0.102 - Fixed small bug where client array was not being cleared for new players