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

[CS:S] Auto jointeam


Post New Thread Reply   
 
Thread Tools Display Modes
Author
xNos
SourceMod Donor
Join Date: Dec 2012
Location: Israel
Plugin ID:
3803
Plugin Version:
1.0
Plugin Category:
General Purpose
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Force the players to join team after connect
    Old 07-31-2013 , 12:02   [CS:S] Auto jointeam
    Reply With Quote #1

    This plugin force the players to join team after connect with some cvars to control it.
    Cvars:
    Code:
    sm_autojoin_enable
    Default: 1
    Enable/Disable forcing
    
    sm_autojoin_team 
    Default: 2 
    Teams joinning the players 1/2/3
    
    sm_autojoin_random 
    Default: 0 
    Random teams joining the players 0/1
    
    sm_autojoin_class
    Default: 6
    Class joinning the players 1/2/3/4/6
    Attached Files
    File Type: sp Get Plugin or Get Source (Autojoin.sp - 2233 views - 3.1 KB)

    Last edited by xNos; 08-02-2013 at 14:33.
    xNos is offline
    Send a message via Skype™ to xNos
    vodka00
    Veteran Member
    Join Date: Jun 2012
    Location: Los Angeles
    Old 07-31-2013 , 19:57   Re: Auto jointeam
    Reply With Quote #2

    Works pretty well.
    __________________
    cw main:

    cw speedruns:
    vodka00 is offline
    shavit
    AlliedModders Donor
    Join Date: Dec 2011
    Location: Israel
    Old 07-31-2013 , 20:33   Re: Auto jointeam
    Reply With Quote #3

    Well coded plugin.
    __________________
    retired
    shavit is offline
    Avaray
    Member
    Join Date: Dec 2011
    Location: Germany
    Old 08-02-2013 , 06:50   Re: [Any]Auto jointeam
    Reply With Quote #4

    Tested with Team Fortress 2.

    - TF2 have 9 classes (at this moment max in plugin is 6)
    - Plugin is choosing a class for player, BUT after this player still have window with a choice of class
    - And Im not sure, but TF2 uses class names (like soldier or demoman) instead 1,2,3....
    __________________

    Last edited by Avaray; 08-02-2013 at 07:49.
    Avaray is offline
    MasterOfTheXP
    Veteran Member
    Join Date: Aug 2011
    Location: Cloudbank
    Old 08-02-2013 , 08:20   Re: [Any]Auto jointeam
    Reply With Quote #5

    Yep, TF2 needs a class name (scout, sniper, soldier, demoman, medic, heavyweapons, pyro, spy, engineer) instead of a number for the joinclass command.
    __________________
    Plugins / My Steam / TF2 Sandbox (plugin beta testing!)
    MasterOfTheXP is offline
    Powerlord
    AlliedModders Donor
    Join Date: Jun 2008
    Location: Seduce Me!
    Old 08-02-2013 , 10:29   Re: [Any]Auto jointeam
    Reply With Quote #6

    Quote:
    Originally Posted by Avaray View Post
    Tested with Team Fortress 2.

    - TF2 have 9 classes (at this moment max in plugin is 6)
    - Plugin is choosing a class for player, BUT after this player still have window with a choice of class
    - And Im not sure, but TF2 uses class names (like soldier or demoman) instead 1,2,3....
    You'd probably want a separate plugin for TF2 since you only need the autojoin class part... TF2 already has the mp_forceautoteam cvar to force players to a "random"* team.

    * "random" is in quotes because it uses the standard Random button logic, which on payload and attack/defend control points is to assign players to BLU if both have the same number of players. All other game modes (except Arena if you haven't disabled the queue, and MvM) assign to a team randomly if they have the same number of players.
    __________________
    Not currently working on SourceMod plugin development.

    Last edited by Powerlord; 08-02-2013 at 10:31.
    Powerlord is offline
    vodka00
    Veteran Member
    Join Date: Jun 2012
    Location: Los Angeles
    Old 08-02-2013 , 22:48   Re: [CS:S] Auto jointeam
    Reply With Quote #7

    Is it possible to create an if statement to check if the person is already in spectate then it would keep them there? So after map change, the people that were afk and sitting in spectate would stay there.
    __________________
    cw main:

    cw speedruns:
    vodka00 is offline
    Avaray
    Member
    Join Date: Dec 2011
    Location: Germany
    Old 08-03-2013 , 06:00   Re: [CS:S] Auto jointeam
    Reply With Quote #8

    Thanks for Tip, Powerlord. But it seems that command (mp_forceautoteam) is not working good for me.
    I have server with Jump Mod and all people are playing in one team.
    Im using command mp_humans_must_join_team and in this situation mp_forceautoteam will put player in restricted/forbidden team.

    And thats right. I need "force autojoin class" for TF2.
    __________________

    Last edited by Avaray; 08-03-2013 at 06:50.
    Avaray is offline
    eyes of hunter
    Member
    Join Date: Dec 2011
    Old 08-22-2013 , 03:32   Re: [CS:S] Auto jointeam
    Reply With Quote #9

    Could you add a functionality so players are also forced to stay on their initial team for X amount of time but are able to join spect? We would like to run this with an autoswap after X rounds plugin, so everybody gets to play on both sides and ideally there are less abuses, but can't find a working addon to restrict players from changing teams at will. It would be for css.

    It would be really appreciated. Thanks in advance!

    Last edited by eyes of hunter; 08-22-2013 at 03:33.
    eyes of hunter is offline
    Reply



    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 13:56.


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