Change the user group of my clients via web

dorcu

Member
Jan 24, 2016
7
2
35
Hello,

I need to change the user group of my clients via web.

I am using the TeamSpeak 3 PHP API and running the following code but it does not work.
Code:
$ts3_VirtualServer->execute("setclientgroup", array(
                            "cldbid" => $cldbid,
                            "cid" => $top_cid,
                            "cgid" => $ugid,
                        ));

The code "setclientgroup" and "setclientusergroup" not exist.
Do you know how I could do it?
 
  • Like
Reactions: ptR

Kleberstoff

Knowledge Seeker
VIP
Dec 29, 2015
308
214
158
If you are using the PHP Framework from planetteamspeak.com

Try to grab a Client via using
Code:
clientGetBydbId
clientGetById
clientGetByName
clientGetByUid
Save it in a variable and do
Code:
$client->addServerGroup($ServerGroupID);
 
Top