AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   TF2 Class limit (https://forums.alliedmods.net/showthread.php?t=62630)

Nican 10-31-2007 21:39

TF2 Class limit
 
18 Attachment(s)
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.

Fredd 10-31-2007 23:53

Re: TF2 Class limit
 
Code:

Engenner
Lol. and you need to hook a convar change for enable disable..other than that it's awesome xD gj :D

Nican 11-01-2007 17:33

Re: TF2 Class limit
 
Quote:

Originally Posted by Fredd (Post 548227)
Code:

Engenner
Lol. and you need to hook a convar change for enable disable..other than that it's awesome xD gj :D

Huh? I added one...

Fredd 11-01-2007 20:26

Re: TF2 Class limit
 
it's spelled 'engineer' and no you didn't add a convar hook for change

W][LDF][RE 11-03-2007 00:36

Re: TF2 Class limit
 
:)

flubber 11-04-2007 19:51

Re: TF2 Class limit
 
Can't take the file, failed to compil :'(

Nican 11-04-2007 20:03

Re: TF2 Class limit
 
I put the .smx there,

but don't forget to fulfill the requirements please

flubber 11-05-2007 20:52

Re: TF2 Class limit
 
Back on this thread, :).
It's working like a charm, but i was wondering if you can add a way to translate the phrase into another language.

Anyway thanks for this our ctf_rugby map really needed a class restrict...
edit:Nevermind i didn't though that i can just take the source.

aakerlind 11-06-2007 10:41

Re: TF2 Class limit
 
Im getting these:

[SM] Successfully toggled debug mode on plugin MaxClass.smx.
L 11/06/2007 - 16:38:58: [SM] Native "GetClientTeam" reported: Client 6 is not in game
L 11/06/2007 - 16:38:58: [SM] Displaying call stack trace for plugin "MaxClass.smx":
L 11/06/2007 - 16:38:58: [SM] [0] Line 93, MaxClass.sp::RecountClasses()
L 11/06/2007 - 16:38:58: [SM] [1] Line 50, MaxClass.sp::Playerchangeclass()

Nican 11-06-2007 10:46

Re: TF2 Class limit
 
Fixed...

Can someone please tell me if this works when there is >1 player, I just tested it with my self


All times are GMT -4. The time now is 16:29.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.