[Plugin] Teamspeak Connector
#21

Quote:
Originally Posted by Pain123
View Post
You mean you want to change a clients server or channel group?
Yes [4char]
Reply
#22

This is pretty useful
Reply
#23

A function to give a user per uid channelrights or serverrights & delete channelrights and serverrights per uID.
Reply
#24

You should make it so that we can listen to people that are on the TS Server.
Reply
#25

Quote:
Originally Posted by Hernando
View Post
You should make it so that we can listen to people that are on the TS Server.
Not possible.

Quote:
Originally Posted by eLiTe.
View Post
A function to give a user per uid channelrights or serverrights & delete channelrights and serverrights per uID.
I'm already working on this.
Reply
#26

Great!
Reply
#27

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.
Reply
#28

Great, I will probably use this for my server!
Reply
#29

Quote:

TSC_SetClientChannelGroup(clientid, groupid, channelid);

A function for the delete would be good
And examples for the function would be well
Reply
#30

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.
Reply
#31

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.
Reply
#32

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.
Reply
#33

hm. But, when i have a mysql ts3 server, than you can update the rights for a player or?
Reply
#34

Well, maybe, could be possible.
Reply
#35

Okay.. If you like, you can give it a try with the mysql version
Reply
#36

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.
Reply
#37

okay thanks for your work!

edit:

What can i do with "TSC_SetTimeoutTime"? :3
Reply
#38

amazing!!
can you do CreateSubChannel() and GetSubChannelsOnChannel() ?
Reply
#39

Thats a good idea to give a faction member all rights for the channeltree.
Reply
#40

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
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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)