Raised This Month: $535 Target: $400
 133% 

[CS:GO/CSS] AutoTeamJoin by SteamID


Post New Thread Reply   
 
Thread Tools Display Modes
Author
alexr153
AlliedModders Donor
Join Date: Jul 2015
Location: In a house
Plugin ID:
5724
Plugin Version:
Plugin Category:
General Purpose
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Old 07-21-2017 , 02:16   [CS:GO/CSS] AutoTeamJoin by SteamID
    Reply With Quote #1

    Description
    This plugin sets a players team based on the team put for the given SteamID. Checks for Steam3ID.

    CONVARS
    atj_chatMessage = <1/0> Default (1)
    atj_changeteamifspawn = <0/1> Default (0)
    atj_holder = <1/0> Default (1)

    atj_ServerID = <1/...> Default (1) IF ATJ_HOLDER = 1

    CHANGE LOG
    Code:
    1.2 - FIX: https://forums.alliedmods.net/showpost.php?p=2732350&postcount=12
    1.1  -  MySQL support added. Half-Time team switch added.
    1.0  -  Released plugin
    Installation
    Drag the .smx file into the plugins folder.
    Drag the .txt file into addons/sourcemod/configs

    Autoteamjoin-steamids.txt Example
    Code:
    [U:1:0]--T
    [U:1:1]--CT
    [U:1:2]--SPEC
    If you're using MySQL here's a database example
    Code:
     "atj_sid"
    {
    	"driver"			"mysql"
    	"host"				"WEBSITE"
    	"database"			"DATABASE"
    	"user"				"USER"
    	"pass"				"PASSWORD"
    }

    Reply if you found any bugs or just stuff I should add to the plugin.
    Attached Files
    File Type: sp Get Plugin or Get Source (autoteamjoin-steamid.sp - 207 views - 11.9 KB)
    File Type: txt Autoteamjoin-steamids.txt (23 Bytes, 76 views)

    Last edited by alexr153; 01-23-2021 at 17:20.
    alexr153 is offline
    Obyboby
    Veteran Member
    Join Date: Sep 2013
    Old 07-21-2017 , 08:37   Re: [CS:GO/CSS] AutoTeamJoin by SteamID
    Reply With Quote #2

    Might try this one for myself, as I usually join and go straight to spect to work on the server :p
    __________________
    Obyboby is offline
    vortex.
    AlliedModders Donor
    Join Date: Jan 2017
    Location: OnGameFrame()
    Old 07-21-2017 , 17:45   Re: [CS:GO/CSS] AutoTeamJoin by SteamID
    Reply With Quote #3

    Good job!
    __________________
    vortex. is offline
    Kikerechu
    New Member
    Join Date: Apr 2017
    Old 08-25-2017 , 17:29   Re: [CS:GO/CSS] AutoTeamJoin by SteamID
    Reply With Quote #4

    Have you thought on implementing MySQL support instead of KeyValues file?
    Kikerechu is offline
    alexr153
    AlliedModders Donor
    Join Date: Jul 2015
    Location: In a house
    Old 08-25-2017 , 20:34   Re: [CS:GO/CSS] AutoTeamJoin by SteamID
    Reply With Quote #5

    Quote:
    Originally Posted by Kikerechu View Post
    Have you thought on implementing MySQL support instead of KeyValues file?
    No, I haven't thought about that but I could do that.
    alexr153 is offline
    mvss
    New Member
    Join Date: Nov 2017
    Old 11-01-2017 , 01:37   Re: [CS:GO/CSS] AutoTeamJoin by SteamID
    Reply With Quote #6

    L 11/01/2017 - 01:16:57: [SM] Exception reported: [ATJ] Unable to connect to the MySQL server: Configuration "atj_sid" not found
    L 11/01/2017 - 01:16:57: [SM] Blaming: autoteamjoin-steamid.smx
    L 11/01/2017 - 01:16:57: [SM] Call stack trace:
    L 11/01/2017 - 01:16:57: [SM] [0] SetFailState
    L 11/01/2017 - 01:16:57: [SM] [1] Line 161, /home/forums/content/files/2/6/2/0/0/6/165950.attach::connectToDB
    L 11/01/2017 - 01:16:57: [SM] [2] Line 57, /home/forums/content/files/2/6/2/0/0/6/165950.attach::OnPluginStart
    L 11/01/2017 - 01:16:57: [SM] Unable to load plugin "autoteamjoin-steamid.smx": Error detected in plugin startup (see error logs)
    mvss is offline
    sneaK
    SourceMod Moderator
    Join Date: Feb 2015
    Location: USA
    Old 11-01-2017 , 12:38   Re: [CS:GO/CSS] AutoTeamJoin by SteamID
    Reply With Quote #7

    Quote:
    Originally Posted by mvss View Post
    L 11/01/2017 - 01:16:57: [SM] Exception reported: [ATJ] Unable to connect to the MySQL server: Configuration "atj_sid" not found
    You didn't follow the installation instructions.
    __________________
    sneaK is offline
    Obyboby
    Veteran Member
    Join Date: Sep 2013
    Old 11-07-2017 , 10:30   Re: [CS:GO/CSS] AutoTeamJoin by SteamID
    Reply With Quote #8

    Is it possible to assign a player to spectators for example and block him from changing team?
    E.g. I join the server, I get auto assigned to spect, I can't join T or CT. Just forced to stay spect.
    Is that possible with this plugin?
    __________________
    Obyboby is offline
    alexr153
    AlliedModders Donor
    Join Date: Jul 2015
    Location: In a house
    Old 11-07-2017 , 21:47   Re: [CS:GO/CSS] AutoTeamJoin by SteamID
    Reply With Quote #9

    Quote:
    Originally Posted by Obyboby View Post
    Is it possible to assign a player to spectators for example and block him from changing team?
    E.g. I join the server, I get auto assigned to spect, I can't join T or CT. Just forced to stay spect.
    Is that possible with this plugin?
    If you change the atj_changeteamifspawn value to 1 it should change their team on the hook player_team.
    alexr153 is offline
    Obyboby
    Veteran Member
    Join Date: Sep 2013
    Old 11-07-2017 , 21:48   Re: [CS:GO/CSS] AutoTeamJoin by SteamID
    Reply With Quote #10

    Quote:
    Originally Posted by alexr153 View Post
    If you change the atj_changeteamifspawn value to 1 it should change their team on the hook player_team.
    Alright, I'll try that tomorrow, thanks
    __________________
    Obyboby 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 10:48.


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