AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Timeleft of another server (https://forums.alliedmods.net/showthread.php?t=192525)

zhulo 08-11-2012 04:31

Timeleft of another server
 
Request: I am connected to the server A and want to get the timeleft of the server B. How can I make it with sockets?

t3hNox 08-11-2012 12:25

Re: Timeleft of another server
 
You can use this: https://forums.alliedmods.net/showthread.php?t=150519

zhulo 08-12-2012 05:53

Re: Timeleft of another server
 
ok, I tried, but getting this error

Code:

Error connecting a TCP socket for XX.XXX.X.XXX:XXXXX

CS-A-Roland 08-12-2012 08:24

Re: Timeleft of another server
 
What youve tried?! I hope youve read the post and not just taken the stuff and test, then you find this here:

Quote:

Notes:
The API plugin needs to be compiled with the sockets_hz.inc file attached to the bottom of this post.
Compiling locally: https://forums.alliedmods.net/showthread.php?t=130511


Be sure to set this cvar on servers running this plugin: Code:
scomm_key "key"
The value of this cvar is used to protect the data being sent and received between servers.
If the value of this cvar does not match the value of the cvar on the server running Server Comm, then the data will be ignored.


All suggestions and comments are welcome.

zhulo 08-12-2012 09:20

Re: Timeleft of another server
 
I made everything. Installed the sockets_hz module, compiled the server_comm_api plugin and gave it on the servers, set the scomm_key on the both servers, but still the same error...

Tried it with the amxmod 1.8.1 and than with 1.8.2...


All times are GMT -4. The time now is 05:41.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.