As the title, my problem is to check one client ip address of teamspeak A, with all clients ip addresses of teamspeak B, to know if there is a player connected to both teamspeak servers.
I have permission to get IP address troguth client connection info, but I want create a plugin that checks it automatically, because there are 100 & 100 player a server, so I should do manually about 10.000 checks.
In these days I though to resolve this problem creating a plugin, but it was not easy as I expected.
I wrote the algorithm that checks 2 strings (2 ip addresses), but I noticed that's very hard to write a plugin in C++, I'm going crazy reading SDK and source of other plugins already compiled.
Then I found a second solution, to write a plugin in LUA, that's I found really more short, because it uses 100 code strings a plugin, instead of C++ that uses 750/1.500 incomprehensible strings a plugin.
There's a problem, I need to print the client IP address, but I don't know how.
I succesfully printed the server ID of a client, but I don't need it.
I search in http://ift.tt/1GDURAJ and in ts3events.lua file, without finding the event of IP address.
In ts3defs.lua I found 58 related to client, ALL, name, id, lastconnected, input, output, byte uploaded, and how much time he goes in bathroom a day^^
I just need to handle the remote address of a client, then I have just to put in my algorithm that made the checks.
Can anyone more expert help me?
Thanks in advance.
Teamspeak checks trough IP if a player is connected to 2 ts3
I have permission to get IP address troguth client connection info, but I want create a plugin that checks it automatically, because there are 100 & 100 player a server, so I should do manually about 10.000 checks.
In these days I though to resolve this problem creating a plugin, but it was not easy as I expected.
I wrote the algorithm that checks 2 strings (2 ip addresses), but I noticed that's very hard to write a plugin in C++, I'm going crazy reading SDK and source of other plugins already compiled.
Then I found a second solution, to write a plugin in LUA, that's I found really more short, because it uses 100 code strings a plugin, instead of C++ that uses 750/1.500 incomprehensible strings a plugin.
There's a problem, I need to print the client IP address, but I don't know how.
I succesfully printed the server ID of a client, but I don't need it.
I search in http://ift.tt/1GDURAJ and in ts3events.lua file, without finding the event of IP address.
In ts3defs.lua I found 58 related to client, ALL, name, id, lastconnected, input, output, byte uploaded, and how much time he goes in bathroom a day^^
I just need to handle the remote address of a client, then I have just to put in my algorithm that made the checks.
Can anyone more expert help me?
Thanks in advance.
0 commentaires:
Enregistrer un commentaire