[Plugin] Teamspeak Connector
#61

Quote:
Originally Posted by Mr.R
Посмотреть сообщение
It work on 0.3z version?
This plugin should work with every SA-MP server version.
Reply
#62

Hello,
i have a problem with this plugin.

If i try: TSC_SendServerMessage it works fine.

but when i try this: TSC_PokeClient("myuid=", "hello"); nothing work.
The uid off the account is right.
Reply
#63

Very helpful!
Thanks, works perfect on my server
Reply
#64

Works, thank you!
Reply
#65

nice +rep
Reply
#66

First of all, nice plugin

But i got a problem.

Problem Solved. I just made a mistake on the Network setup on the Server.
Ignore the rest of my post.

Quote:

I tested your plugin on my PC (win 7 64 Bit). The Bot connected to the TS3 Server and was able to do everything i want.
So I started to test it on my Debian Server (Debian 6.0; 64 Bit).
When i start the gamemode the plugin loads without any errors. But if the bot will connect to the server it get an timeout.

Quote:

plugin.TSConnector: Error while connecting to server: "Connection timed out"

But in the Log of the TS3 Server is no connection try.
I used the same TS3 Server like i used on my PC, so this can't be the Problem.
I also checked the Whitelist of the TS3 server and the IP is on this list.

Steve90
Reply
#67

Good job.
Reply
#68

Goood Job !!!!
Reply
#69

well done
Reply
#70

I Love his plugin!!
Reply
#71

Awesome! Good Work +rep
Reply
#72

What is wrong by this code?
The TSConnector doesnt connect to my local Teamspeak 3 Server (Windows 7 Home Prem 32 Bit SP 1) ...
I have no idea what is do wrong ...
Here the code:
Код:
//#defines

#SERVERNAME "Choose your Life"

#define TS_IP "127.0.0.1"
#define TS_PORT "9286"
#define TS_USER "serveradmin"
#define TS_PASS "********"

//OnGameModeInit()
new tsc = TSC_Connect(TS_IP,TS_PORT);
printf("%i",tsc);
new tscl = TSC_Login(TS_USER,TS_PASS,SERVERNAME);
printf("%i",tscl);
TSC_CreateChannel("Testchannel");
Here the Log from Teamspeak 3 Server:
Код:
2014-07-27 12:17:23.901890|INFO    |Query         |   | query from 2 127.0.0.1:49702 issued: login with account "serveradmin"(serveradmin)
2014-07-27 12:29:04.379429|INFO    |Query         |   | query from 3 127.0.0.1:49738 issued: login with account "serveradmin"(serveradmin)
2014-07-27 12:36:03.318882|INFO    |Query         |   | query from 4 127.0.0.1:49758 issued: login with account "serveradmin"(serveradmin)
2014-07-27 12:36:26.088414|INFO    |Query         |   | query from 5 127.0.0.1:49760 issued: login with account "serveradmin"(serveradmin)
I tried to connect a few times ... and the TSConnector doesnt connect to my Teamspeak 3 Server




mfg
I hope you can help me
Reply
#73

Are you sure the serverquery account has enough rights to create a channel? And is your serverquery port 10011? (that port is hard-coded in the current version)
Reply
#74

Quote:
Originally Posted by maddinat0r
Посмотреть сообщение
Are you sure the serverquery account has enough rights to create a channel? And is your serverquery port 10011? (that port is hard-coded in the current version)
The serverquery port is 10011 and the serverquery account has by default full rights or not?
* I am not the teamspeak pro *
Reply
#75

Yes, by default all rights are granted.
The current version doesn't really give any error output. Are you willing to test an incomplete beta version of v1.0? That version has better error management and will actually print an error to the console if the connection fails (and ofc print why it failed).
If you want that beta version, drop me a PM and I'll send you a Windows build.
Reply
#76

Quote:
Originally Posted by maddinat0r
Посмотреть сообщение
Yes, by default all rights are granted.
The current version doesn't really give any error output. Are you willing to test an incomplete beta version of v1.0? That version has better error management and will actually print an error to the console if the connection fails (and ofc print why it failed).
If you want that beta version, drop me a PM and I'll send you a Windows build.
Yes that would be good ...
Reply
#77

TSConnector v1.0 has been released!
Changes:
  • rewrote whole code, this is almost a completely new plugin!
  • all channel natives are now using the channelid instead of the channel name to work
  • (almost) all client natives are now using the clientid instead of the client uid to work
  • a caching system has been built in, you can now directly access data through the Get-functions
  • a completely new internal network layer provides more stability and reliability
  • merged natives 'TSC_Connect' and 'TSC_Login' (connecting without having almost any permissions makes no sense)
  • 'TSC_SetChannelSubChannel' has been renamed to 'TSC_SetChannelParentId'
  • 'TSC_MoveChannelBelowChannel' has been renamed to 'TSC_SetChannelOrderId'
  • 'TSC_SetChannelTalkPower' has been renamed to 'TSC_SetChannelRequiredTP' (TP = talk power)
  • 'TSC_SendChannelMessage' and 'TSC_ToggleClientTalkAbility' have been removed (most likely forever)
  • new callbacks:
    • 'TSC_OnConnect' (is called when connection is established)
    • 'TSC_OnChannelCreated(channelid)'
    • 'TSC_OnChannelDeleted(channelid)'
    • 'TSC_OnChannelReorder(channelid, orderid)'
    • 'TSC_OnChannelMoved(channelid, parentid, orderid)'
    • 'TSC_OnChannelRenamed(channelid, name[])'
    • 'TSC_OnChannelPasswordEdited(channelid, bool:ispassworded, boolasswordchanged)'
    • 'TSC_OnChannelTypeChanged(channelid, TSC_CHANNELTYPE:type)'
    • 'TSC_OnChannelSetDefault(channelid)'
    • 'TSC_OnChannelMaxClientsChanged(channelid, maxclients)'
    • 'TSC_OnChannelRequiredTPChanged(channelid, talkpower)'
    • 'TSC_OnClientPrivateText(from_clid, from_nickname[], to_clid, msg[])' (private chat between ServerQuery client and other normal clients)
  • new functions:
    • 'TSC_FindChannel(channelname[])' (gets the channelid through the channelname; the name has to match exactly)
    • 'TSC_FindClient(uid[])'
    • 'TSC_IsValidChannel(channelid)'
    • 'TSC_GetDefaultChannelId()'
    • 'TSC_GetClientUid'
    • 'TSC_GetClientDatabaseId'
    • 'TSC_GetClientChannelId'
    • other 'TSC_GetChannel*' functions
Download as always on the GitHub page. I've really put some work into it this time, hope you guys like it
Reply
#78

Very good, i'll use it.
Reply
#79

Great, I will be using this for my own GM, thank you!
Reply
#80

Is there a way to edit the CLIENT_DESCRIPTION?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)