AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [CS:GO/CSS] AutoTeamJoin by SteamID (https://forums.alliedmods.net/showthread.php?t=299630)

alexr153 07-21-2017 01:16

[CS:GO/CSS] AutoTeamJoin by SteamID
 
2 Attachment(s)
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.

Obyboby 07-21-2017 07:37

Re: [CS:GO/CSS] AutoTeamJoin by SteamID
 
Might try this one for myself, as I usually join and go straight to spect to work on the server :p

vortex. 07-21-2017 16:45

Re: [CS:GO/CSS] AutoTeamJoin by SteamID
 
Good job!

Kikerechu 08-25-2017 16:29

Re: [CS:GO/CSS] AutoTeamJoin by SteamID
 
Have you thought on implementing MySQL support instead of KeyValues file?

alexr153 08-25-2017 19:34

Re: [CS:GO/CSS] AutoTeamJoin by SteamID
 
Quote:

Originally Posted by Kikerechu (Post 2544358)
Have you thought on implementing MySQL support instead of KeyValues file?

No, I haven't thought about that but I could do that.

mvss 11-01-2017 00:37

Re: [CS:GO/CSS] AutoTeamJoin by SteamID
 
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)

sneaK 11-01-2017 11:38

Re: [CS:GO/CSS] AutoTeamJoin by SteamID
 
Quote:

Originally Posted by mvss (Post 2557841)
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.

Obyboby 11-07-2017 09:30

Re: [CS:GO/CSS] AutoTeamJoin by SteamID
 
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?

alexr153 11-07-2017 20:47

Re: [CS:GO/CSS] AutoTeamJoin by SteamID
 
Quote:

Originally Posted by Obyboby (Post 2559054)
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.

Obyboby 11-07-2017 20:48

Re: [CS:GO/CSS] AutoTeamJoin by SteamID
 
Quote:

Originally Posted by alexr153 (Post 2559155)
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


All times are GMT -4. The time now is 06:49.

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