client_nickname function

Ibo

Member
Joined
Oct 20, 2015
Messages
94
Reaction score
39
Points
53
hello r4p3



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

dedmen

TeamSpeak Developer
Contributor
Joined
Mar 28, 2016
Messages
530
Reaction score
584
Points
197
Hello Ibo.
Interesting.
 

Umar

Member
Joined
Jun 18, 2016
Messages
65
Reaction score
8
Points
40
I can help you in that its easy but give me your ts ip
 

Najsr

Moderator
TeamSpeak Developer
Joined
Apr 23, 2016
Messages
483
Reaction score
249
Points
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
Joined
Oct 10, 2015
Messages
217
Reaction score
149
Points
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
Joined
Apr 23, 2016
Messages
483
Reaction score
249
Points
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
Joined
Oct 20, 2015
Messages
94
Reaction score
39
Points
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