Raised This Month: $ Target: $400
 0% 

Timeleft of another server


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
zhulo
Senior Member
Join Date: Jun 2010
Location: Slovakia
Old 08-11-2012 , 04:31   Timeleft of another server
Reply With Quote #1

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?
zhulo is offline
Send a message via ICQ to zhulo Send a message via Skype™ to zhulo
t3hNox
Senior Member
Join Date: Oct 2009
Old 08-11-2012 , 12:25   Re: Timeleft of another server
Reply With Quote #2

You can use this: https://forums.alliedmods.net/showthread.php?t=150519
t3hNox is offline
zhulo
Senior Member
Join Date: Jun 2010
Location: Slovakia
Old 08-12-2012 , 05:53   Re: Timeleft of another server
Reply With Quote #3

ok, I tried, but getting this error

Code:
Error connecting a TCP socket for XX.XXX.X.XXX:XXXXX
zhulo is offline
Send a message via ICQ to zhulo Send a message via Skype™ to zhulo
CS-A-Roland
Member
Join Date: Jul 2009
Old 08-12-2012 , 08:24   Re: Timeleft of another server
Reply With Quote #4

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.
__________________
oOOOoooh it's www.Cs-Attack.de
New World of Warcraft Mod Beta 0.5(based on WC3FT 3.5)
Counterstrike 1.6 SERVER:
Server IP: 193.192.58.154:27200

CONDITION ZERO SERVER:
Server IP: 193.192.58.154:27016
CS-A-Roland is offline
zhulo
Senior Member
Join Date: Jun 2010
Location: Slovakia
Old 08-12-2012 , 09:20   Re: Timeleft of another server
Reply With Quote #5

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

Last edited by zhulo; 08-12-2012 at 09:21.
zhulo is offline
Send a message via ICQ to zhulo Send a message via Skype™ to zhulo
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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