Raised This Month: $182 Target: $400
 45% 

[TF2] [DoDS] Class Restrictions for individual players


Post New Thread Reply   
 
Thread Tools Display Modes
Author
strontiumdog
Veteran Member
Join Date: Jan 2007
Location: BC, Canada
Plugin ID:
665
Plugin Version:
1.0.102
Plugin Category:
Admin Commands
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
    11 
    Plugin Description:
    Blocks individual players from joining a certain class
    Old 12-08-2008 , 01:42   [TF2] [DoDS] Class Restrictions for individual players
    Reply With Quote #1

    Occasionally, servers have players who refuse to give up a limited class such as a sniper or HWG and need to be prevented from using that class.
    Or perhaps you have players who have questionable talents who may need to be persuaded to try other classes.
    One example of a use is in a match where each player is designated a particular class and is not allowed to use any other classes.


    This plugin will prevent individual players from joining that particular class.


    Supported Mods
    Team Fortress 2
    Day of Defeat Source


    Installation
    • TF2 - Copy sm_class_block.smx file to addons/sourcemod/plugins folder
    • DoDS - Copy sm_dod_class_block.smx file to addons/sourcemod/plugins folder

    Commands
    TF2
    sm_blockclass <name|#userid> <scout|sniper|soldier|demo|medic|heavy|pyro|s py|engineer>
    Blocks a class for a particular player

    sm_unblockclass <name|#userid> <scout|sniper|soldier|demo|medic|heavy|pyro|s py|engineer>
    Unblocks a class for a particular player


    DoDS
    sm_blockclass <name|#userid> <rifleman|assault|support|sniper|mg|rocket>
    Blocks a class for a particular player

    sm_unblockclass <name|#userid> <rifleman|assault|support|sniper|mg|rocket>
    Unblocks a class for a particular player



    Configuration
    sm_class_block_enabled <1 | 0>
    Turns on and off the plugin

    Notes
    Is also available from Admin menu under Player Commands.

    Creates a file in /configs called sm_class_block.txt. In this, the data is stored for each player and can be edited manually if necessary.

    The data is stored locally on the server itself and is not designed for cross server control.


    Changelog
    v1.0.101 - Release

    v1.0.102 - Fixed small bug where client array was not being cleared for new players
    Attached Files
    File Type: sp Get Plugin or Get Source (sm_dod_class_block.sp - 1076 views - 13.5 KB)
    File Type: sp Get Plugin or Get Source (sm_class_block.sp - 1076 views - 15.8 KB)
    __________________
    Plugins | TheVille
    Zombie Mod for DoD:S - Left4DoD

    Last edited by strontiumdog; 12-13-2008 at 23:32.
    strontiumdog is offline
    blik
    Senior Member
    Join Date: May 2006
    Old 12-08-2008 , 13:33   Re: [TF2] Class Restrictions for individual players
    Reply With Quote #2

    Great plugin strontiumdog - now to get a DODS version with mysql?
    blik is offline
    strontiumdog
    Veteran Member
    Join Date: Jan 2007
    Location: BC, Canada
    Old 12-08-2008 , 19:28   Re: [TF2] Class Restrictions for individual players
    Reply With Quote #3

    Will look into it....
    __________________
    Plugins | TheVille
    Zombie Mod for DoD:S - Left4DoD
    strontiumdog is offline
    retsam
    Veteran Member
    Join Date: Aug 2008
    Location: so-cal
    Old 12-08-2008 , 19:53   Re: [TF2] Class Restrictions for individual players
    Reply With Quote #4

    Crazy. Wicked idea. Good work.

    Im not sure how often I would ever use it but....I could see it coming in handy for that rare occasion heh.


    I do have one question. It looks like it would since its written to a file but, im guessing if you use it on a player, even rejoining/leaving will not unblock it correct? The admin will have to edit the file or remove the restriction yes?
    retsam is offline
    strontiumdog
    Veteran Member
    Join Date: Jan 2007
    Location: BC, Canada
    Old 12-08-2008 , 20:30   Re: [TF2] Class Restrictions for individual players
    Reply With Quote #5

    It is permanent.
    The admin can either edit the file, or unblock from within the game, if the player is on the server.
    __________________
    Plugins | TheVille
    Zombie Mod for DoD:S - Left4DoD

    Last edited by strontiumdog; 12-08-2008 at 22:58.
    strontiumdog is offline
    strontiumdog
    Veteran Member
    Join Date: Jan 2007
    Location: BC, Canada
    Old 12-09-2008 , 01:47   Re: [TF2] [DoDS] Class Restrictions for individual players
    Reply With Quote #6

    I added a DoDS version - no MySQL.
    Let me know how it works out.
    __________________
    Plugins | TheVille
    Zombie Mod for DoD:S - Left4DoD
    strontiumdog is offline
    DontWannaName
    Veteran Member
    Join Date: Jun 2007
    Location: VALVe Land, WA
    Old 12-09-2008 , 04:07   Re: [TF2] [DoDS] Class Restrictions for individual players
    Reply With Quote #7

    no msql plz.

    Does this add to the menu?
    __________________

    DontWannaName is offline
    strontiumdog
    Veteran Member
    Join Date: Jan 2007
    Location: BC, Canada
    Old 12-09-2008 , 11:11   Re: [TF2] [DoDS] Class Restrictions for individual players
    Reply With Quote #8

    Yup.
    __________________
    Plugins | TheVille
    Zombie Mod for DoD:S - Left4DoD
    strontiumdog is offline
    DontWannaName
    Veteran Member
    Join Date: Jun 2007
    Location: VALVe Land, WA
    Old 12-10-2008 , 00:20   Re: [TF2] [DoDS] Class Restrictions for individual players
    Reply With Quote #9

    So I added this and it says it blocked the person but he still can play it. Does it take a map change, a respawn or something? Are my class restrictions and immunity interfering since the person is immune from class restrictions.
    __________________

    DontWannaName is offline
    strontiumdog
    Veteran Member
    Join Date: Jan 2007
    Location: BC, Canada
    Old 12-10-2008 , 00:48   Re: [TF2] [DoDS] Class Restrictions for individual players
    Reply With Quote #10

    Hmmm working on all my servers.
    Try restarting the server to see if it helps.

    It shouldn't be affected by immunity from other plugins.

    What is being written in the sm_class_block.txt file in /configs?
    __________________
    Plugins | TheVille
    Zombie Mod for DoD:S - Left4DoD
    strontiumdog 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 14:40.


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