This plugin blocks/limits classes for humans!
It can run alongside Class Restrictions For Bots
that blocks/limits classes for bots
sm_crh_enabled 1 //(0/1, default 1) Enable/disable restricting classes for humans in TF2.
sm_crh_immunity 0 //(0/1, default 0) Enable/disable admins being immune to restricting classes in TF2.
sm_crh_flags "b" //(default "b") Admin flags for immunity against restricting classes in TF2. So admins can use limited/blocked classes.
//They are still counted towards the limit. If multiple flags are provided, at least one has to be true. Cvar sm_crh_immunity has to be enabled.
sm_crh_classmenu 0 //Enables/disables the class menu popping up when you pick the wrong class.
sm_crh_sounds 0 //Enables/disables the Nope sound when you pick the wrong class.
// Limits for Blu human classes in TF2. (-1 for no limit, 0 is disabled, 1 or anything higher will be the limit for that class. Default -1)
// Limits for Red human classes in TF2. (-1 for no limit, 0 is disabled, 1 or anything higher will be the limit for that class. Default -1)
Plugin limits classes when humans spawn, so if you change limits after they have been spawned then you have to wait until they die or you can slay them (for changes to take effect). REMOVE AN OLDER VERSION OF THIS PLUGIN OR OTHER PLUGINS FOR CLASS RESTRICTION BEFORE INSTALLING THIS PLUGIN! Also, disable the tf2 default classlimit if enabled(the plugin disables this cvar but only once). Autobalance can also cause problems, depending on your settings.
Autogenerates a .cfg file in cfg\sourcemod when you load it for the first time.
for his team restricting plugin