Re: AW: Re: Teamspeak Connector -
Gigi-The-Beast - 18.05.2013
Quote:
Originally Posted by Pain123
You mean you want to change a clients server or channel group?
|
Yes [4char]
Re: Teamspeak Connector -
Skream - 18.05.2013
This is pretty useful
AW: Teamspeak Connector -
eLiTe. - 19.05.2013
A function to give a user per uid channelrights or serverrights & delete channelrights and serverrights per uID.
Re: Teamspeak Connector -
Hernando - 19.05.2013
You should make it so that we can listen to people that are on the TS Server.
AW: Re: Teamspeak Connector -
maddinat0r - 19.05.2013
Quote:
Originally Posted by Hernando
You should make it so that we can listen to people that are on the TS Server.
|
Not possible.
Quote:
Originally Posted by eLiTe.
A function to give a user per uid channelrights or serverrights & delete channelrights and serverrights per uID.
|
I'm already working on this.
Re: Teamspeak Connector -
Tamer - 19.05.2013
Great!
AW: Teamspeak Connector -
maddinat0r - 19.05.2013
I've updated the plugin to v0.2.
Some new natives were added and the code was overall improved.
New natives:
- TSC_GetChannelName(channelid, dest[]);
- TSC_GetChannelClientList(channelid, list[]);
- TSC_MoveClient(clientid, channelid);
- TSC_SetClientChannelGroup(clientid, groupid, channelid);
- TSC_AddClientToServerGroup(clientid, groupid);
- TSC_RemoveClientFromServerGroup(clientid, groupid);
- TSC_GetClientName(clientid, dest[]);
- TSC_GetClientCurrentChannelID(clientid);
- TSC_SetTimeoutTime(milliseconds);
Also the native "TSC_GetClientUIDByName" was renamed to "TSC_GetClientIDByName" to avoid confusion.
As always please report all occuring bugs.
Re: Teamspeak Connector -
UnlimitedDeveloper - 19.05.2013
Great, I will probably use this for my server!
AW: Teamspeak Connector -
eLiTe. - 19.05.2013
Quote:
TSC_SetClientChannelGroup(clientid, groupid, channelid);
|
A function for the delete would be good

And examples for the function would be well
AW: Teamspeak Connector -
maddinat0r - 19.05.2013
You can't delete a client's channel group, because he has to be in one channel group. I will start working on a wiki.
Small update:
I've updated to v0.2.1 due to a stupid mistake. I've also added a Linux version, but I'm not sure if it will work on other Linux distros than Debian 7.
AW: Teamspeak Connector -
eLiTe. - 19.05.2013
Can you create a function to give a user rights per uid?
So if the player is not on the teamspeak right then he should also get.
AW: Teamspeak Connector -
maddinat0r - 19.05.2013
This is not possible. The only way this could be done is, to create a privilege key and send the key per offline message to the user. If the user joins the Teamspeak server, he will recieve this message and has to activate the key.
AW: Teamspeak Connector -
eLiTe. - 19.05.2013
hm. But, when i have a mysql ts3 server, than you can update the rights for a player or?
AW: Teamspeak Connector -
maddinat0r - 19.05.2013
Well, maybe, could be possible.
AW: Teamspeak Connector -
eLiTe. - 19.05.2013
Okay.. If you like, you can give it a try with the mysql version
Re: Teamspeak Connector -
maddinat0r - 19.05.2013
I don't see a sense making a MySQL based version of this plugin, because
1. not everyone uses MySQL for their Teamspeak server and
2. the method currently used works with all Teamspeak servers.
Edit:
Quote:
Originally Posted by eLiTe.
Can you create a function to give a user rights per uid?
So if the player is not on the teamspeak right then he should also get.
|
You could queue the pending rights and check with a timer every 30 seconds if the target player is on the teamspeak server. If yes, give him the rights and remove him from the queue, if not keep checking. When server shuts down, save the queue in a MySQL table and load it again at the gamemode startup.
Edit2:
Dammit, just saw that this is also possible via the UID. I'll look what I can do.
AW: Teamspeak Connector -
eLiTe. - 19.05.2013
okay thanks for your work!
edit:
What can i do with "TSC_SetTimeoutTime"? :3
Re: Teamspeak Connector -
dudaefj - 20.05.2013
amazing!!
can you do CreateSubChannel() and GetSubChannelsOnChannel() ?
AW: Teamspeak Connector -
eLiTe. - 20.05.2013
Thats a good idea to give a faction member all rights for the channeltree.
Re: Teamspeak Connector -
dudaefj - 20.05.2013
Quote:
Originally Posted by OrMisicL
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
|
Can't it be dangerous to miss information?
I mean..
if you use too fast 2 times the function TSC_GetClientUIDByName(name[]);
the callback will be called twice, and you can't know wich UID is for each name