Garry's Mod

Garry's Mod

Not enough ratings
[TTT] TS3 Bridge
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Server content
Addon Tags: Fun
File Size
Posted
962.000 B
Feb 8, 2017 @ 3:29am
1 Change Note ( view )

Subscribe to download
[TTT] TS3 Bridge

Description
A simple TeamSpeak 3 bridge for TTT which automatically mutes / unmutes players.

This plugin consists of two parts:

- The workshop plugin; it adds a lua script that communicates with a web script.
- The web script; it needs to be run on any web server that supports PHP

When you've added the workshop plugin, you need to set two convars:

ttt_ts3_bridge_url (URL Format: "http://example.com/ts3bridge.php")
ttt_ts3_bridge_key (anything; just some key for security purposes, so that noone else can abuse the web script)

On the web server you need to place the contents of the following GitHub repository:

https://github.com/CynCeyd/TS3BridgeTTT/tree/master/Web

For the web script to work, you have to make some config changes:

$linkType = "json/mysql" = Default is json, it uses links.json for the SteamID to TsID link. If you want to use the mysql module, you will have to modify the sql query and change it so that $links[steamID] = tsID is fulfilled.

$apiKey = It should be the same as ttt_ts3_bridge_key; it will be verified on any call of this script.

$teamSpeakServerQuery = The connection string to the teamspeak server. You will need username and password of a client with serverquery access, the hostname, the serverquery port (default is 10011) and the ts3 server port (default is 9987).

$autoKick = default is true; will automatically kick players from the assigned channel when they leave the game

$autoChannelMove = default is true; will automatically move players to the assigned channel when they connect

$channelName = default is "Trouble in Terrorist Town"; the TTT channel that is used for the plugin; Channel requires talk power for this plugin to work

$grantTalkPowerOnJoin = default is true; when anyone connects to the server, they will automatically receive talk power, even if the round is still going

$mysqli = default is commented; only uncomment if you want to use the mysql module and are able to change the sql query

If there are any problems with this script, feel free to ask / comment - I will try to help or fix any issues as fast as possible.

-----------------

This plugin uses the TeamSpeak 3 PHP Framework (https://docs.planetteamspeak.com/ts3/php/framework/).

It's recommended to disable the talk power granted / revoked sounds in TeamSpeak, as it might get annoying after a while of playing.
52 Comments
MauriceGS Dec 9, 2022 @ 12:05pm 
Anyone got a tutorial? I dont get it at all :(
[RoG] Rebels of Gaming Sep 9, 2022 @ 3:06pm 
Guten Tag, vielleicht könnte mir jemand helfen ich habe ein Problem mit der Bridge:

Dropped wahke knoppix from server (object(TeamSpeak3_Adapter_ServerQuery_Exception)#24 (10) {
["return_code":protected]=>
NULL
["raw_code":protected]=>
int(513)
["raw_mesg":protected]=>
string(26) "nickname is already in use"
["message":protected]=>
string(26) "nickname is already in use"
["string":"Exception":private]=>
string(0) ""
["code":protected]=>
int(513)
["file":protected]=>
string(95) "/var/www/vhosts/xxxxxxxxx.net/httpdocs/bridge/ttt/TeamSpeak3/Adapter/ServerQuery/Reply.php"
["line":pr)

vielleicht könnte jemand mir helfen
Juice Oct 3, 2021 @ 9:49pm 
I'm having the same issue as the two people below me. "API key is invalid", yet they're still set to the default "abc" in both the convar and the TS3Bridge.php
Carl | ClemontX Apr 27, 2020 @ 1:18pm 
i give a +1 to the comment below, i have the same issue
Ich gebe ein +1 zu dem Kommentar unter mir, ich habe den gleichen Fehler, obwohl der API-Key überall gleich ist
Man from Ohio Apr 24, 2020 @ 5:16am 
"Your Api Key is invalid" but everything has been set, in the TS3Bridge.php and in the .lua
Endooo Apr 12, 2020 @ 12:23am 
Hey, kurze Frage, bin gerade dabei das Plugin einzurichten aber kenne mich leider nicht gut genug aus. Kannst du mir sagen, woher ich die ttt_ts3_bridge_url finde, soll das der ts servername sein oder liege ich da falsch? Mit dem Rest sollte ich klar kommen, aber irgendwie komme ich da garnicht klar, danke im voraus :)
Mr.Timbaba Feb 1, 2020 @ 1:17pm 
Glaube der hat kein Zugriff auf die Dateien? Funktioniert es bei einem, falls ja... brauche Hilfe beim setup. ^^

Hier die Fehlermeldung:

Disconnect: object(TeamSpeak3_Adapter_ServerQuery_Exception)#24 (10) {
["return_code":protected]=>
NULL
["raw_code":protected]=>
int(513)
["raw_mesg":protected]=>
string(26) "nickname is already in use"
["message":protected]=>
string(26) "nickname is already in use"
["string":"Exception":private]=>
string(0) ""
["code":protected]=>
int(513)
["file":protected]=>
string(171) "/var/www/vhosts/xxxxxxxxx.plesk08.xxxxxxxx.com/server.xxxxxxxx.net/gos_server_stuff/
marcel1802 Dec 19, 2019 @ 6:12am 
Danke
CynCeyd  [author] Dec 19, 2019 @ 6:09am 
Ich setz mich die Tage ran. Hatte bisher leider keine Zeit dafür.
marcel1802 Dec 18, 2019 @ 4:52pm 
Hätte jemand ein Beispiel für '$teamSpeakServerQuery'?
Oder kommt doch noch ein Guide? :)