Garry's Mod

Garry's Mod

评价数不足
[TTT] TS3 Bridge
   
奖励
收藏
已收藏
取消收藏
素材类型: 插件
插件类型: 服务器内容
插件标签: 快乐
文件大小
发表于
962.000 B
2017 年 2 月 8 日 上午 3:29
1 项改动说明 ( 查看 )

订阅以下载
[TTT] TS3 Bridge

描述
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 条留言
MauriceGS 2022 年 12 月 9 日 下午 12:05 
Anyone got a tutorial? I dont get it at all :(
[RoG] Rebels of Gaming 2022 年 9 月 9 日 下午 3:06 
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 2021 年 10 月 3 日 下午 9:49 
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 2020 年 4 月 27 日 下午 1:18 
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 2020 年 4 月 24 日 上午 5:16 
"Your Api Key is invalid" but everything has been set, in the TS3Bridge.php and in the .lua
Endooo 2020 年 4 月 12 日 上午 12:23 
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 2020 年 2 月 1 日 下午 1:17 
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 2019 年 12 月 19 日 上午 6:12 
Danke
CynCeyd  [作者] 2019 年 12 月 19 日 上午 6:09 
Ich setz mich die Tage ran. Hatte bisher leider keine Zeit dafür.
marcel1802 2019 年 12 月 18 日 下午 4:52 
Hätte jemand ein Beispiel für '$teamSpeakServerQuery'?
Oder kommt doch noch ein Guide? :)