Raised This Month: $12 Target: $400
 3% 

[TF2] Class Restrictions For Humans (26.12.2022)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
luki1412
Veteran Member
Join Date: Oct 2008
Location: OnPluginStart()
Plugin ID:
5617
Plugin Version:
3.04
Plugin Category:
Server Management
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Servers with this Plugin:
    56 
    Plugin Description:
    Limits/blocks classes for Humans
    Old 05-04-2017 , 13:35   [TF2] Class Restrictions For Humans (26.12.2022)
    Reply With Quote #1

    Description:

    This plugin blocks/limits classes for humans!
    It can run alongside Class Restrictions For Bots that blocks/limits classes for bots

    Cvars:
    PHP Code:
    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.

    sm_crh_blu_demomen -1
    sm_crh_blu_engineers 
    -1
    sm_crh_blu_heavies 
    -1
    sm_crh_blu_medics 
    -1
    sm_crh_blu_pyros 
    -1
    sm_crh_blu_scouts 
    -1
    sm_crh_blu_snipers 
    -1
    sm_crh_blu_soldiers 
    -1
    sm_crh_blu_spies 
    -1
    // 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)

    sm_crh_red_demomen -1
    sm_crh_red_engineers 
    -1
    sm_crh_red_heavies 
    -1
    sm_crh_red_medics 
    -1
    sm_crh_red_pyros 
    -1
    sm_crh_red_scouts 
    -1
    sm_crh_red_snipers 
    -1
    sm_crh_red_soldiers 
    -1
    sm_crh_red_spies 
    -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) 
    Important info:
    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.

    Installation:
    Autogenerates a .cfg file in cfg\sourcemod when you load it for the first time.


    Map configs:
    Class_Restrictions_For_Humans.cfg is loaded first, then the map config. Using map configs is obviously optional.


    Changelog:

    Credits:
    DJ Tsunami for his team restricting plugin

    Github:link
    Attached Files
    File Type: sp Get Plugin or Get Source (ClassRestrictionsForHumans.sp - 210 views - 12.1 KB)
    __________________

    Last edited by luki1412; 12-26-2022 at 04:19. Reason: V 3.04
    luki1412 is offline
    dedimark
    Senior Member
    Join Date: Jul 2015
    Location: London
    Old 11-17-2017 , 07:58   Re: [TF2] Class Restrictions For Humans (02.11.2017)
    Reply With Quote #2

    Hello thanks for the plugin,but how to block class, at randomizer server? https://github.com/50DKP/TF2x10/blob...domizer_x10.sp
    dedimark is offline
    luki1412
    Veteran Member
    Join Date: Oct 2008
    Location: OnPluginStart()
    Old 11-17-2017 , 14:51   Re: [TF2] Class Restrictions For Humans (02.11.2017)
    Reply With Quote #3

    Quote:
    Originally Posted by dedimark View Post
    Hello thanks for the plugin,but how to block class, at randomizer server? https://github.com/50DKP/TF2x10/blob...domizer_x10.sp
    Randomizer changes the class after my plugin does it. You'd need to modify randomizer or delay my plugin's respawn function.
    __________________
    luki1412 is offline
    Reply


    Thread Tools
    Display Modes

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 04:02.


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