Thread: TF2 Class limit
View Single Post
Author Message
Nican
Veteran Member
Join Date: Jan 2006
Location: NY
Old 10-31-2007 , 21:39   TF2 Class limit
Reply With Quote #1

TF2 MaxClass

Description: The server will block anyone trying to change a class on specific limits, this limits can be changed in MaxClass.txt

Instalation
  • Download the plugin from the button of this post and MaxClass.txt
  • Put MaxClass.smx into tf\addons\sourcemod\plugins
  • Put MaxClass.txt into tf\addons\sourcemod\configs
  • To edit the limits of each class, look into MaxClass.txt and it should be fairly easy to understand

Commands
  • sm_classlimit - Re-reads and prints the limits from file

Cvars
  • sm_maxclass_allow (default: 1) - Enable/Disable this plugin
  • sm_maxclass_exclude_admins (default: 0) - Admin immunity
  • sm_maxclass_count_admins (default: 0) - Enable/Disable admins counting towards class limits
  • sm_maxclass_config (default: MaxClass.txt) - config file location

Change log
  • October 31, 2007
    • Initial release
  • November 6, 2007
    • Fixed, client not in game, bug
  • November 12, 2007
    • Fixed format errors
    • Fixed spelling errors
    • No more need for TF2Tools
  • November 24, 2007
    • Added per team support
    • Fixed problem of changing to the same class
    • Fixed bug of no reading KV (v2.1)
  • December 29, 2007
    • Fixed for new TF2 update
  • August 19, 2008
    • Made the naris version official
    • Fixed bug on naris plugin
  • 4.0 (-=|JFH|=-Naris (Murray Wilson))
    • Use tf2_stocks
    • Pick random class to switch to
    • Use ConVars for admin settings
    • Display class selection menu when switching
  • 4.3 (cadavor)
    • Add translations
  • 4.4 (JameLess)
    • Fixed skin glitching
  • 4.5 (Thraka)
    • Added the ability to load settings based on the prefix of the map. Example: pl is payload, cp is capture point.
    • Logs which section of the config is loading the settings.
  • 4.6 (Thraka)
    • Added the NO! class sounds when player chooses a class that is full. This was pulled from DJ Tsunami's class restriction plugin
  • 4.7 (Thraka & Jameless)
    • Request from snelvuur - Added the sm_maxclass_allow_adminsdeadclass cvar. If set to 0, this will not let admins play restricted classes
  • 4.8 (Jameless)
    • Added the sm_maxclass_admin_flag cvar. This will allow you to change what flag is immune.
Attached Files
File Type: txt maxclass.phrases.txt (613 Bytes, 12476 views)
File Type: sp Get Plugin or Get Source (MaxClass.sp - 11381 views - 16.0 KB)
File Type: smx MaxClass.smx (10.7 KB, 9080 views)
__________________
http://www.nican132.com
I require reputation!

Last edited by Nican; 07-27-2011 at 20:09. Reason: Update
Nican is offline
Send a message via ICQ to Nican Send a message via MSN to Nican