client_nickname function

Ibo

Member
Oct 20, 2015
94
39
53
hello r4p3



if u r connected to teamspeak server
web page showing you your nickname that in the teamspeak server
 

Najsr

Moderator
TeamSpeak Developer
Apr 23, 2016
483
249
167
Do you mean change name of server connection or a client?
For query it would be
PHP:
$ts3_VirtualServer->selfUpdate(array('client_nickname'=>"My New Cool Nickname"));
for printing client's name by name / uid /dbid
PHP:
echo $ts3_VirtualServer->clientGetByName("My Name On TS");
echo $ts3_VirtualServer->clientGetByUid("UID");
echo $ts3_VirtualServer->clientGetByDbid("DBID");
 

Laszl0w

Well-Known Member
Oct 10, 2015
217
149
143
Code:
$arr_ClientList = $ts3->clientList(array("client_platform" => "Windows"));

foreach($arr_ClientList as $ts3_Client)
{
 echo $ts3_Client;
}
 
  • Like
Reactions: Ibo

Najsr

Moderator
TeamSpeak Developer
Apr 23, 2016
483
249
167
Or maybe this is the thing you are looking for
PHP:
$ts3_VirtualServer->clientListReset();
foreach($ts3_VirtualServer->clientList() as $client){
if($client["client_type"]) continue;
if($client['connection_client_ip'] == $_SERVER['REMOTE_ADDR'])
{
     echo "Hello " . $client['client_nickname'];
}
break;
}
 

Ibo

Member
Oct 20, 2015
94
39
53
Or maybe this is the thing you are looking for
PHP:
$ts3_VirtualServer->clientListReset();
foreach($ts3_VirtualServer->clientList() as $client){
if($client["client_type"]) continue;
if($client['connection_client_ip'] == $_SERVER['REMOTE_ADDR'])
{
     echo "Hello " . $client['client_nickname'];
}
break;
}
ty worked
 
Top