Introduction
Remember when there were 4 spies in your team, and ALL of them were bad? Now it's over!
This plugin let the players play the class they want for some time, but if the player can't play good that class, he is blocked from using it for some time.
This is much better than class limits, because it considers the player's skill.
The players' skill may vary greatly depending of the map, his team and the other players, I suggest you to play some time using the class you want to limit before setting a required skill.
This plugin can only block snipers and spies, I won't add cvars for other classes.
Cvars
sm_limitskill_version - Plugin Version
sm_limitskill_enable 1 - Enable (1) or Disable (0) Limit Class by Skill.
sm_limitskill_minplayers 8 - Minimum number players to start blocking classes.
sm_limitskill_print 1 - Print skill level to clients.
sm_limitskill_default 7 - Class to switch players to when they get blocked from using another class (1 = Scout, 2 = Soldier, etc.) (Do not set any limit to that class, or the server may crash)
sm_limitskill_<class> 0 - Skill needed to use
<class>. (0 = disabled for that class)
sm_limitskill_<class>_max 0 - Maximum number of <class> in one team before start blocking them
Changelog
1.0 - 23/10/2010 -
Plugin released
1.1 - 23/10/2010 -
Added some other events that give skill
1.2 - 23/10/2010 -
A lot of new stuff: Class limits, so it will only start blocking after the number you set; Minplayers, so when there are only some players on your server, they can choose whatever they want; Bug fixes
1.3 - 23/10/2010 -
Admins with reservation flag will no longer get blocked; Bug fixes
1.4 - 23/10/2010 -
Bug fixes
1.5 - 23/10/2010 -
Added a last player cache, so if the player types "retry" on the console, he can't bypass the block
1.6 - 24/10/2010 -
Now it saves the player class skill, for example, if he was playing spy, then start playing medic, then star playing spy again, the spy's skill level is restored
1.7 - 24/10/2010 -
Found a better way to do the above
1.8 - 24/10/2010 -
Fixed some cvars issues
1.9 - 24/10/2010 -
Bug fixes
2.0 - 24/10/2010 -
Now skill points "expire"
2.1 - 24/10/2010 -
Bug fixes
2.2 - 24/10/2010 -
Bug fixes
2.3 - 24/10/2010 -
More bug fixes
2.4 - 25/10/2010 -
Now you get a 15 points skill bonus while standing on the control point (I am not sure if it works for the defending team)
3.0 - 25/10/2010 -
Removed all classes cvars, except sniper and spy; Bug Fixes