Connecting to a different server & get info
Let's say i have two servers. On the 1st one i want to install a plugin wich retrieves the num of active players on the 2nd server, in order to do something else later on.
How can i do that? maybe you guys have a small code or smth that does that I tried looking at xredirect's source but it's too damn complicated for me at this time. Thanks |
Re: Connecting to a different server & get info
|
Re: Connecting to a different server & get info
won't work..
|
Re: Connecting to a different server & get info
Quote:
|
Re: Connecting to a different server & get info
i justed copied both _example and _api plugins and used sq_server, sq_players command...it's says "acquiring..." but won't show anything...after 5 minutes if i use the command again it shows something like "already .."
|
Re: Connecting to a different server & get info
i used that NATIVE few months ago and all worked smoothly. You do something wrong.
|
Re: Connecting to a different server & get info
Quote:
|
Re: Connecting to a different server & get info
What are the conditions are you using the plugin?
- Are you testing from your local to another server? - Are the 2 servers far apart (such as a high ping)? - Are you trying to get data from the same IP, or even the same server? |
Re: Connecting to a different server & get info
I tested the native on 5 servers, but all of them were in the same datacenter.
If the servers are far from each other you should change this task PHP Code:
|
Re: Connecting to a different server & get info
Quote:
and no, i'm not tryign the get any data from the same server EDIT: Ok i've changed the task interval to 2.0 seconds and sq_server seems to works fine but sq_players causes ~200 ping and won't show anything EDIT2: Any example of using that function for redirecting a player to a server if it isn't full? thx |
All times are GMT -4. The time now is 01:01. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.