Hi there, this is my first plugin. I wrote it for my clan's server, where we usually play dm_duel_v2; if you've ever been on the map, it's Sniper heaven, which gets annoying for everyone else. Clan Leader has limited Snipers to one per team, but what happens then is one player hogs the class and ends up with 100 more points than anyone else. So, at clan request, I wrote this, so we get some rotation on the class.
UPDATE March 4 09: On player spawn, change team or change class, the plugin checks if the player is top of the leader board on his team (by points), and if he is, prevents him from choosing the specified class. When the leader dies, he will be forced to change class.
Changed from just Sniper to all classes.
Cvars:
sm_anticlassleader_enabled: 0 or 1, default 1. Whether the plugin is active or not.
sm_anticlassleader_immunity: 0 or 1, default 0. Whether admins/flagged are immune to the plugin or not.
sm_anticlassleader_class: 1 to 9, default 8. The number of the class to block from leading. (8 = Sniper)
Bugs:
If two players have equal points, both of them will be able to choose the blocked class. Not particularly limiting, just something to bear in mind when using the plugin.
Credits:
Heavily based on the source of Tsunami's
Class Restricions, which is quality work. Get it for your server.
Now works for all classes!