Forum

Results 1 to 6 of 6
  1. #1
    Join Date
    October 2014
    Posts
    60

    C# SDK mute client

    Has anybody an example of how to mute a client locally by ID on an SDK server/client connection.

    I have a list of clients and their ID but I can't seem to work out how to mute them.

  2. #2
    Join Date
    November 2017
    Location
    France
    Posts
    18
    I never done that before but have you try to use something like

    Code:
    /* Modify data 1 */
    if(ts3server_setClientVariableAsInt(scHandlerID, clientID, CLIENT_AWAY, AWAY_ZZZ) != ERROR_ok) {
        printf("Error setting away mode\n");
        return;
    }
    
    /* Modify data 2 */
    if(ts3server_setClientVariableAsString(scHandlerID, clientID, CLIENT_AWAY_MESSAGE, "Lunch") != ERROR_ok) {
        printf("Error setting away message\n");
        return;
    }
    
    /* Flush changes */
    if(ts3server_flushClientVariable(scHandlerID, clientID) != ERROR_ok) {
        printf("Error flushing client variable");
    }
    to modify ClientProperty variables like FlagTalking,InputMuted,IsMuted ?

  3. #3
    Join Date
    August 2013
    Location
    Germany
    Posts
    540
    ts3client_requestMuteClients or so

  4. #4
    Join Date
    November 2017
    Location
    France
    Posts
    18
    Hi Bluscream,
    I didn't see ts3client_requestMuteClients in server.h from the includes of sdk folders. Where is it and how do you call it ?

    thanks

  5. #5
    Join Date
    August 2013
    Location
    Germany
    Posts
    540
    Quote Originally Posted by Vincent_Stormancer View Post
    Hi Bluscream,
    I didn't see ts3client_requestMuteClients in server.h from the includes of sdk folders. Where is it and how do you call it ?

    thanks

    https://teamspeakdocs.github.io/Clie...l/ar01s24.html

  6. #6
    Join Date
    October 2014
    Posts
    60
    Thank you for the replies.
    IsMuted did the trick.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. How can I globally mute a client?
    By reaply in forum Permission System
    Replies: 15
    Last Post: February 9th, 2016, 07:29 PM
  2. [Resolved] mute for client
    By DonBellozi in forum Server Support
    Replies: 4
    Last Post: April 4th, 2014, 11:23 PM
  3. Can I mute every Client in my Channel except me?
    By Rush!t in forum General Questions
    Replies: 2
    Last Post: February 4th, 2013, 04:09 PM
  4. Mute a Client by Server?
    By jott_st in forum General Questions
    Replies: 1
    Last Post: May 10th, 2011, 08:58 AM
  5. Mute a client
    By Gamer.Gamer in forum General Questions
    Replies: 2
    Last Post: February 12th, 2010, 12:44 AM

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
  •