Yabancı bir sitede bunu buldum ama nasıl yapacağımı bilmiyorum yardım ederseniz sevinirim beyler .

LGSL Teamspeak 3
NOT NATIVE, USING EXTERNAL LIBRARY!

Save this pastebin as ts3.class.php


In lgsl_protocol.php

After

"swat4" => "SWAT 4",

Add
"ts3" => "Teamspeak 3",


After
"swat4" => "03",

Add
"ts3" => "97",


After
"swat4" => "qtracker://{IP}:{S_PORT}?game=SWAT4&action=show",

Add
"ts3" => "https://www.teamspeak.com",



Before
function lgsl_query_02(&$server, &$lgsl_need, &$lgsl_fp)

Add


function lgsl_query_97(&$server, &$lgsl_need, &$lgsl_fp)
{
require_once("opt_classes/ts3.class.php");

$ts3_ip = $server['b']['ip'];
$ts3_queryport = $server['b']['q_port'];
$ts3_port = $server['b']['c_port'];

$tsAdmin = new ts3admin($ts3_ip, $ts3_queryport);
$tsAdmin->connect();
$tsAdmin->selectServer($ts3_port);
$hinfo = $tsAdmin->serverInfo();

if($hinfo['data']['virtualserver_name'] == NULL) { return false; }

$server['s']['status'] = 1;
$server['s']['name'] = $hinfo['data']['virtualserver_name'];
$server['s']['password'] = $hinfo['data']['virtualserver_password'];
$server['s']['players'] = $hinfo['data']['virtualserver_clientsonline'];
$server['s']['playersmax'] = $hinfo['data']['virtualserver_maxclients'];
$server['s']['channelcount'] = $hinfo['data']['virtualserver_channelsonline'];
$server['s']['map'] = "Teamspeak 3";

$server['e']['motd'] = $hinfo['data']['virtualserver_welcomemessage'];
$server['e']['platform'] = $hinfo['data']['virtualserver_platform'];
$server['e']['version'] = $hinfo['data']['virtualserver_version'];

if ($lgsl_need['p']){
$clients = $tsAdmin->clientList();
for($i=0;$i<sizeof($clients['data']);$i++){
$server['p'][$i]['id'] = $i;
$server['p'][$i]['name'] = $clients['data'][$i]['client_nickname'];
$server['p'][$i]['score'] = "-";
$server['p'][$i]['time'] = "-";
}
}
return TRUE;
}




Screenshots








Question and answers
Q: ts3.inc.php not found?
A: replace require_once("opt_classes/ts3.class.php"); with your path to library

Q: Server is shown as offline?
A: Teamspeak 3 query port is 10011

Q: Can you upload icon?
A: Sure