Forum

Results 1 to 3 of 3
  1. #1
    Join Date
    February 2016
    Posts
    4

    is it possible to change client icon via query?

    hi,

    i want to change the icon of clients via php script (using TS3 php framework)
    but it doesn't work.

    i start try out via commandline but i can't change the client_icon_id ....
    "i_icon_id" doesn't work too.

    i got the permission "client_icon_id" out of the serverquery manual!

    do is use the wrong command? or wrong permission-name?

    any idea??

    Thank you!

    Name:  question.jpg
Views: 690
Size:  102.4 KB

    PHP Code:
    //$client is a instance of TeamSpeak3_Node_Client
    //$server is a instance of Teamspeak3_Node_Server

    $client->modify("CLIENT_ICON_ID=".$iconId);
    $server->clientModifyDb($cldbid"CLIENT_ICON_ID=".$iconId); 

  2. #2
    Join Date
    June 2008
    Posts
    18,241
    The db property can not be changed.
    You must edit the permission value of i_icon_id.

    Code:
    clientaddperm cldbid=2 permsid=i_icon_id permvalue=xxxxxxxx permskip=0
    Last edited by dante696; February 19th, 2016 at 11:43 AM. Reason: oops used talk power in example
    When sending me private messages: Please make sure to include reference link to your forum thread or post.

    TeamSpeak FAQ || What should i report, when i open a client thread?

  3. #3
    Join Date
    February 2016
    Posts
    4
    thanks man!
    it works!


    with ts3 php framework the code looks like this

    PHP Code:
    //remove client icon
    $client->permRemove("i_icon_id");
    //set client icon
    $client->permAssign("i_icon_id"$iconId); 

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Change icon Server Admin Query
    By richardss in forum Permission System
    Replies: 3
    Last Post: March 11th, 2012, 04:10 PM
  2. [Resolved] change Server Query Admin Icon
    By Omlet in forum Permission System
    Replies: 38
    Last Post: November 5th, 2011, 03:52 PM
  3. Replies: 0
    Last Post: July 24th, 2011, 10:59 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •