Forum


Notice to all users

We are migrating towards a new forum system located at community.teamspeak.com, as such this forum will become read-only on January 29, 2020

Results 1 to 5 of 5
  1. #1
    Join Date
    June 2017
    Posts
    3

    Monitor channels for clients joining?

    What function would I use to detect if a user joined a specific channel?
    and could I ignore certain usernames?

  2. #2
    Join Date
    September 2012
    Posts
    6,079
    Plugins can only see what your client sees, which means you need to be subscribed to channels to get information about any actions in a channel.

    One event would be ts3plugin_onClientMoveEvent
    There you can decide whether or not you want to do something based on the available criteria / information that you have.
    When sending PMs please make sure to include a reference link to the thread in question in the body of your message.

  3. #3
    Join Date
    June 2017
    Posts
    3
    Thanks that's what I needed
    This works in that is sends a local message when someone enters a room, which is great.
    It the sound doesn't work though.

    Thank you.
    Code:
    void ts3plugin_onClientMoveEvent(uint64 serverConnectionHandlerID, anyID clientID, uint64 oldChannelID, uint64 newChannelID, int visibility, const char* moveMessage) {
    	// play if in support
    	if (newChannelID == 70 || newChannelID == 71 || newChannelID == 72) {
    		const char boop[100] = "sound\\wakeup.wav";
    		ts3Functions.playWaveFile(serverConnectionHandlerID, boop);
    		const char message[100] = "A User has joined support";
    		ts3Functions.requestSendChannelTextMsg(serverConnectionHandlerID, message,
    			90, 0);
    	}
    }
    Last edited by m2bandit; June 12th, 2017 at 12:39 AM.

  4. #4
    Join Date
    September 2012
    Posts
    6,079
    Quote Originally Posted by m2bandit View Post
    Code:
    void ts3plugin_onClientMoveEvent(uint64 serverConnectionHandlerID, anyID clientID, uint64 oldChannelID, uint64 newChannelID, int visibility, const char* moveMessage) {
    	// play if in support
    	if (newChannelID == 70 || newChannelID == 71 || newChannelID == 72) {
    		const char boop[100] = "sound\\wakeup.wav";
    		ts3Functions.playWaveFile(serverConnectionHandlerID, boop);
    		const char message[100] = "A User has joined support";
    		ts3Functions.requestSendChannelTextMsg(serverConnectionHandlerID, message,
    			90, 0);
    	}
    }
    Try using absolute paths. There are functions to get the installation path of the client if you need it.
    Also there is no need for the message variable, as you can just put the text in the function call.
    When sending PMs please make sure to include a reference link to the thread in question in the body of your message.

  5. #5
    Join Date
    June 2017
    Posts
    3
    Quote Originally Posted by Chris View Post
    Try using absolute paths. There are functions to get the installation path of the client if you need it.
    Also there is no need for the message variable, as you can just put the text in the function call.
    Awesome got my audio alert working now too. Thank you.

    For anyone interested this is the filepath function, just have to concatenate onto it.
    Code:
    char appPath[PATH_BUFSIZE];
    ts3Functions.getAppPath(appPath, PATH_BUFSIZE);

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [Release/Open Source] Teamspeak Activity Monitor for channels
    By camile024 in forum Tools / Web Based
    Replies: 0
    Last Post: January 26th, 2017, 06:47 PM
  2. How to set max clients joining to my server
    By Deadsens3 in forum Windows
    Replies: 1
    Last Post: July 21st, 2015, 03:50 PM
  3. Monitor who's talking in different channels.
    By JohnDoe123 in forum General Questions
    Replies: 8
    Last Post: March 7th, 2014, 11:28 AM
  4. [Resolved] 3.0.8 - Clients no longer joining in their personal default channels
    By antipro in forum Bug Reports [EN/DE]
    Replies: 43
    Last Post: August 19th, 2012, 12:06 PM

Posting Permissions

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