AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugin/Gameplay Ideas and Requests (https://forums.alliedmods.net/forumdisplay.php?f=60)
-   -   [REQ] Automatic Server Clock (https://forums.alliedmods.net/showthread.php?t=76667)

MaKTaiL 08-28-2008 11:18

[REQ] Automatic Server Clock
 
My server is hosted in a computer with a totally wrong clock time and it is difficult to make the maths so that I can put the correct sm_time_adjustment. So my idea is to make a plugin that automatically set the server clock based on the GMT. Something like:

sm_setclockgmt -3 (It will set your server clock to the -3 GMT)

sm_setclockgmt -5 (It will set your server clock to the -5 GMT)

So, what do you think about this?

Lebson506th 08-28-2008 11:20

Re: [REQ] Automatic Server Clock
 
That would require SM knowing what timezone the clock on the server is running on.

MaKTaiL 08-28-2008 11:24

Re: [REQ] Automatic Server Clock
 
Quote:

Originally Posted by Lebson506th (Post 677279)
That would require SM knowing what timezone the clock on the server is running on.

That is the problem, my server is not running on any timezone. It is completely wrong. My idea is for a plugin that connects to a site to get the GMT and then compare it with the server time.

After that it does a math to get the correct sm_time_adjustment.

MaKTaiL 08-28-2008 11:46

Re: [REQ] Automatic Server Clock
 
I found out how the windows set automatically the clock.

He connects to a site to get the information. Do you thing this can be used to create a plugin?

http://www.pool.ntp.org/use.html

MaKTaiL 08-28-2008 15:08

Re: [REQ] Automatic Server Clock
 
No one?

MaKTaiL 08-28-2008 19:04

Re: [REQ] Automatic Server Clock
 
Thanks everybody for the wonderful attention!

Lebson506th 08-28-2008 19:33

Re: [REQ] Automatic Server Clock
 
It's been less than a day dude.

Patience.

MaKTaiL 08-28-2008 19:35

Re: [REQ] Automatic Server Clock
 
Quote:

Originally Posted by Lebson506th (Post 677555)
It's been less than a day dude.

Patience.

Sorry. It is just that I have been on a hurry today. XDD

abelp 08-28-2008 20:12

Re: [REQ] Automatic Server Clock
 
Quote:

Originally Posted by MaKTaiL (Post 677547)
Thanks everybody for the wonderful attention!

This comes from the same guy who tells people. Go search the forums before you post.

MaKTaiL 08-29-2008 09:01

Re: [REQ] Automatic Server Clock
 
Quote:

Originally Posted by abelp (Post 677575)
This comes from the same guy who tells people. Go search the forums before you post.

I have searched of course. I didn't find anything. If you know a plugin which does what I want post the link for me.


All times are GMT -4. The time now is 02:54.

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