Is there such an event?
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
Is there such an event?
Not specific to one's own channel.
You'll wanna forward the general purpose client move events to a common function like:
Code:void onClientMoveCommon(uint64 sc_handler_id, anyID client_id, uint64 old_channel_id, uint64 new_channel_id, int visibility) { if (visibility == LEAVE_VISIBILITY) return; uint64 mover_channel; unsigned int error = ts3client_getChannelOfClient(sc_handler_id, client_id, &mover_channel); if (error != ERROR_ok) { ts3client_logMessage("Couldn't get mover's channel", LogLevel_ERROR, "", sc_handler_id); return; } anyID my_id; error = ts3client_getClientID(sc_handler_id, &my_id); if (error != ERROR_ok) { ts3client_logMessage("Couldn't get my id", LogLevel_ERROR, "", sc_handler_id); return; } uint64 my_channel; error = ts3client_getChannelOfClient(sc_handler_id, my_id, &my_channel); if (error != ERROR_ok) { ts3client_logMessage("Couldn't get my channel", LogLevel_ERROR, "", sc_handler_id); return; } if (mover_channel == my_channel) ts3client_logMessage("Client joined my channel", LogLevel_INFO, "", sc_handler_id); }
Last edited by thorwe; October 23rd, 2018 at 01:11 PM. Reason: Second getchannelofclient should use my id
Thanks, I'll try that![]()
Please note there‘s been an edit in the code above...
![]()
But isn't the channel of the joining user given as new_channel_id thus I don't need to get "mover_channel"?
Also, with what command do I get whetever the user is a buddy or not?
Also another little question I have :> How do I get userinput? (I couldn't find it in the sdk)
Last edited by Keyinator; October 23rd, 2018 at 09:25 PM.
Ehr, indeed it is. Well, too much work...braindead...
The buddy system and hotkeys are not part of the sdk, as that's already part of the game or application the sdk is embedded into usually.
Same goes for the permission system etc., as the users are put into the channels on a per match/map instance basis and aren't supposed to have access to managing who talks to who manually.
There are currently 1 users browsing this thread. (0 members and 1 guests)