[Plugin] Teamspeak Connector
#14

Quote:
Originally Posted by OrMisicL
View Post
Nice job, but i've noticed something, almost in every native you send the command then receive the answer,
so if this plugin gets connected with an external server, it'll lag the local one, since the recv function hangs the server until an answer is received, i know that its only designed to work with local servers so there is no such a problem

my suggestion is that if you run the Receive function on a seperated thread, and everytime a response is received you check for errors and use a callback to pass it to scripts, something like "TSC_OnError" maybe ?

apart that good work
But then every result has to be called in an extra callback in the script, it would work like BlueG's MySQL plugin Well, I think I can configure the socket to set a max_timeout value, so the recv-function will abort if it takes too long. And that's not the biggest problem. Imagine, I want to know what channel user X is currently in. I send the query to require the information, then receive it. Without any threading and callback calling, I get immediatly the current channel. But with threading and callbacks I could get the information, that user X is in channel Y, but it took so long to get that information, that user X has already switched channels and is now in channel Z. So I would get a wrong, outdated information. That's why I don't want to use threads.

Quote:
Originally Posted by Kar
View Post
Nice! Really, is there any possible way to retrieve messages sent by teamspeak users?
You can't get the messages send in a channel or server, but users can send offline messages to the admin account which was used to log in and these messages can be retrieved, but I don't think this is useful. (or maybe it is useful?)

Quote:
Originally Posted by RealCop228
View Post
I feel like this plugin would be MUCH more useful if you could determine the amount of the people in your channel, the name of the people in your channel, your channel name, and possibly even get messages sent between members of the channel.

Nevertheless, nice job!
list of people in a channel: possible
channel name: you would have to know the exact channelid to get the name, is this really important?
messages: not possible


Quote:
Originally Posted by Dan..
View Post
Use
pawn Code:
enum _:ChannelTypes {
    CHANNEL_TYPE_PERMANENT = 1,
    CHANNEL_TYPE_SEMI_PERMANENT = 2,
    CHANNEL_TYPE_TEMPORARY = 3
};

enum _:KickTypes {
    KICK_TYPE_CHANNEL = 1,
    KICK_TYPE_SERVER = 2
};
or
pawn Code:
enum {
    CHANNEL_TYPE_PERMANENT = 1,
    CHANNEL_TYPE_SEMI_PERMANENT = 2,
    CHANNEL_TYPE_TEMPORARY = 3
};

enum {
    KICK_TYPE_CHANNEL = 1,
    KICK_TYPE_SERVER = 2
};
This way, you'll never have to clear the tag (using _:). Also there is no need for "= 2", "= 3". They increment automatically.
Thanks, I was to lazy to update the include and reupload it again because of the example, I will change it in the next update.


If you have other suggestions feel free to post them here.
Reply


Messages In This Thread
Teamspeak Connector - by maddinat0r - 16.05.2013, 18:58
Re: Teamspeak Connector - by kadaradam - 16.05.2013, 19:00
Re: Teamspeak Connector - by ANTH1 - 16.05.2013, 19:09
Re: Teamspeak Connector - by Edvin - 16.05.2013, 19:13
Re: Teamspeak Connector - by Kyle - 16.05.2013, 19:17
AW: Teamspeak Connector - by maddinat0r - 16.05.2013, 19:22
Respuesta: Teamspeak Connector - by JustBored - 16.05.2013, 19:22
Re: Teamspeak Connector - by OrMisicL - 16.05.2013, 20:29
Re: Teamspeak Connector - by Scenario - 16.05.2013, 22:13
Re : Teamspeak Connector - by chneubeul - 16.05.2013, 22:36
Re: Teamspeak Connector - by Matt - 16.05.2013, 23:57
Re: Teamspeak Connector - by Dan.. - 17.05.2013, 04:04
Re: Teamspeak Connector - by R@f - 17.05.2013, 07:18
AW: Re: Teamspeak Connector - by maddinat0r - 17.05.2013, 11:03
Re: Teamspeak Connector - by OrMisicL - 17.05.2013, 11:12
AW: Teamspeak Connector - by maddinat0r - 17.05.2013, 11:23
Re: AW: Teamspeak Connector - by OrMisicL - 17.05.2013, 11:49
Re: Teamspeak Connector - by Gigi-The-Beast - 17.05.2013, 14:29
AW: Re: Teamspeak Connector - by maddinat0r - 18.05.2013, 15:58
Re: Teamspeak Connector - by DaRk_RaiN - 18.05.2013, 16:30
Re: AW: Re: Teamspeak Connector - by Gigi-The-Beast - 18.05.2013, 16:35
Re: Teamspeak Connector - by Skream - 18.05.2013, 17:29
AW: Teamspeak Connector - by eLiTe. - 19.05.2013, 00:03
Re: Teamspeak Connector - by Hernando - 19.05.2013, 00:57
AW: Re: Teamspeak Connector - by maddinat0r - 19.05.2013, 10:19
Re: Teamspeak Connector - by Tamer - 19.05.2013, 10:27
AW: Teamspeak Connector - by maddinat0r - 19.05.2013, 15:01
Re: Teamspeak Connector - by UnlimitedDeveloper - 19.05.2013, 15:10
AW: Teamspeak Connector - by eLiTe. - 19.05.2013, 16:27
AW: Teamspeak Connector - by maddinat0r - 19.05.2013, 16:37
AW: Teamspeak Connector - by eLiTe. - 19.05.2013, 17:44
AW: Teamspeak Connector - by maddinat0r - 19.05.2013, 17:56
AW: Teamspeak Connector - by eLiTe. - 19.05.2013, 18:23
AW: Teamspeak Connector - by maddinat0r - 19.05.2013, 18:33
AW: Teamspeak Connector - by eLiTe. - 19.05.2013, 22:07
Re: Teamspeak Connector - by maddinat0r - 19.05.2013, 22:26
AW: Teamspeak Connector - by eLiTe. - 19.05.2013, 23:41
Re: Teamspeak Connector - by dudaefj - 20.05.2013, 17:47
AW: Teamspeak Connector - by eLiTe. - 20.05.2013, 17:54
Re: Teamspeak Connector - by dudaefj - 20.05.2013, 18:28
AW: Teamspeak Connector - by maddinat0r - 20.05.2013, 18:34
Re: AW: Teamspeak Connector - by dudaefj - 20.05.2013, 19:09
AW: Teamspeak Connector - by maddinat0r - 20.05.2013, 21:07
Re: AW: Teamspeak Connector - by [MM]18240[FMB] - 29.05.2013, 14:35
Re: Teamspeak Connector - by AhsanAman - 25.01.2014, 06:01
Re: Teamspeak Connector - by maddinat0r - 01.02.2014, 15:37
Re: Teamspeak Connector - by MyU - 02.02.2014, 10:59
Re: Teamspeak Connector - by steki. - 02.02.2014, 13:35
Re: Teamspeak Connector - by MyU - 03.02.2014, 18:44
Re: Teamspeak Connector - by maddinat0r - 22.02.2014, 08:50
Re: Teamspeak Connector - by ben1 - 20.03.2014, 12:37
Re: Teamspeak Connector - by maddinat0r - 20.03.2014, 16:10
Re: Teamspeak Connector - by hhaaoo123 - 23.03.2014, 14:49
Re: Teamspeak Connector - by yeekangaw - 24.03.2014, 02:24
Re: Teamspeak Connector - by ben1 - 05.04.2014, 22:02
Re: Teamspeak Connector - by citromhun - 06.04.2014, 07:27
Re: Teamspeak Connector - by THE_KING$5$ - 06.04.2014, 13:22
Re : Teamspeak Connector - by Abdeldu06 - 06.04.2014, 14:06
Re: Teamspeak Connector - by DRP - 06.04.2014, 22:05
Re: Teamspeak Connector - by Mr.R - 28.04.2014, 11:47
Re: Teamspeak Connector - by maddinat0r - 28.04.2014, 13:16
AW: Teamspeak Connector - by The_Godboy - 04.05.2014, 18:13
Re: Teamspeak Connector - by VladimirMark - 04.05.2014, 21:26
Re: Teamspeak Connector - by GeasyW - 05.05.2014, 08:10
Re: Teamspeak Connector - by Raza2013 - 05.05.2014, 08:36
AW: Teamspeak Connector - by Steve90 - 07.05.2014, 08:40
Re: Teamspeak Connector - by Hwang - 18.05.2014, 20:59
Re: Teamspeak Connector - by GeekSiMo - 27.05.2014, 23:37
Re: Teamspeak Connector - by driftpower - 26.07.2014, 19:28
Re: Teamspeak Connector - by iFarbod - 27.07.2014, 07:56
Respuesta: Teamspeak Connector - by juandiegox - 27.07.2014, 12:13
AW: Teamspeak Connector - by 0x00405A00 - 27.07.2014, 12:17
Re: Teamspeak Connector - by maddinat0r - 27.07.2014, 12:46
AW: Re: Teamspeak Connector - by 0x00405A00 - 27.07.2014, 13:54
Re: Teamspeak Connector - by maddinat0r - 27.07.2014, 14:10
AW: Re: Teamspeak Connector - by 0x00405A00 - 27.07.2014, 14:46
Re: Teamspeak Connector - by maddinat0r - 02.08.2014, 17:46
Re: Teamspeak Connector - by kurta999 - 02.08.2014, 18:20
Re: Teamspeak Connector - by N.K.Stallone - 03.08.2014, 01:58
AW: Teamspeak Connector - by axi92 - 09.01.2015, 22:37
Re: Teamspeak Connector - by AgusZ - 16.01.2015, 05:27
Re: AW: Teamspeak Connector - by maddinat0r - 17.01.2015, 13:01
AW: Teamspeak Connector - by perelo - 18.01.2015, 21:09
Re: Teamspeak Connector - by OKStyle - 19.01.2015, 05:37
AW: Teamspeak Connector - by Saize - 19.01.2015, 06:10
Re: Teamspeak Connector - by maddinat0r - 20.01.2015, 18:43
Re: Teamspeak Connector - by LiadDoriToS - 24.01.2015, 12:47
Re: Teamspeak Connector - by maddinat0r - 24.01.2015, 13:03
Re: Teamspeak Connector - by LiadDoriToS - 24.01.2015, 15:21
Re: Teamspeak Connector - by feartonyb - 05.01.2016, 22:57
Re: Teamspeak Connector - by N0FeaR - 20.03.2016, 09:21
Re: Teamspeak Connector - by ScIrUsna - 23.03.2016, 07:17
Re: Teamspeak Connector - by K0P - 23.03.2016, 07:35
Re: Teamspeak Connector - by Clivlend - 11.08.2016, 02:06
Re: Teamspeak Connector - by Jensenn - 12.08.2016, 00:21
Re: Teamspeak Connector - by LifeRah - 12.08.2016, 07:56
Re: Teamspeak Connector - by inferno211 - 07.02.2017, 15:13
Re: Teamspeak Connector - by Nicolacito - 15.02.2017, 23:18
Re: Teamspeak Connector - by maddinat0r - 18.02.2017, 09:08
Re: Teamspeak Connector - by eFFectw0w - 18.02.2017, 17:20
Re: Teamspeak Connector - by inferno211 - 20.02.2017, 12:01
Re: Teamspeak Connector - by eFFectw0w - 26.03.2017, 14:31
Re: Teamspeak Connector - by Daniellucasbv - 21.05.2017, 17:34
Re: Teamspeak Connector - by NewFreeroamStunt - 09.06.2017, 07:46
Re: Teamspeak Connector - by DrakeBell - 22.11.2017, 18:42
Re: Teamspeak Connector - by SH0x - 25.11.2017, 08:42
Re: Teamspeak Connector - by Suttix - 10.12.2017, 11:53
Re: Teamspeak Connector - by Yasef99 - 14.01.2018, 05:20
Re: Teamspeak Connector - by Kegy5 - 19.01.2018, 12:07
Re: Teamspeak Connector - by maddinat0r - 19.01.2018, 14:07
Re: Teamspeak Connector - by Kegy5 - 19.01.2018, 15:23
Re: Teamspeak Connector - by PgMNA - 09.02.2018, 11:53
Re: Teamspeak Connector - by Neom - 03.07.2018, 18:24
Re: Teamspeak Connector - by Markus001 - 21.07.2018, 08:49
Re: Teamspeak Connector - by Markus001 - 08.09.2018, 19:04

Forum Jump:


Users browsing this thread: 1 Guest(s)