Jump to content
  • 0

Server time


ImportBot

Question

Recommended Posts

Originally Posted by intyiciya*:

 

Nyet.

 

I understand that you don't want someone to type a chat command. But I still do not understand which date and time exactly you mean?

 

* Current calendar date and current time? And if so, the time local to the player, local to the server, local to the layer, or some universal time like UTC? (And most importantly, why would you want to spam this in chat_)

 

* Uptime of the server in days, hours, minutes and seconds?

 

* Elapsed time for the round, but then why do you need date?

 

How often do you want this to be spammed in chat?

 

It would help if you explained why you need this information? What problem are you trying to solve? Again, use more words. The more details you provide, the easier it is for us to piece together what you want.

* Uptime of the server in days, hours, minutes and seconds?

 

why do I need this_)

to know when did restart the server

the server must be rebooted for 100% hit

 

 

where is that this plugin was,but was can't find it

* Restored post. It could be that the author is no longer active.
Link to comment
Share on other sites

Originally Posted by EBassie*:

 

* Uptime of the server in days, hours, minutes and seconds?

 

why do I need this_)

to know when did restart the server

the server must be rebooted for 100% hit

 

 

where is that this plugin was,but was can't find it

But... why would you need this in the ingame chat, as the server's uptime is shown in Procon?

 

Posted Image

* Restored post. It could be that the author is no longer active.
Link to comment
Share on other sites

Originally Posted by PapaCharlie9*:

 

* Uptime of the server in days, hours, minutes and seconds?

 

why do I need this_)

to know when did restart the server

the server must be rebooted for 100% hit

 

 

where is that this plugin was,but was can't find it

Okay, now we are getting somewhere.

 

Why isn't the uptime shown in Procon good enough, as EBassie points out in screenshot above? Why must it be in chat?

* Restored post. It could be that the author is no longer active.
Link to comment
Share on other sites

Originally Posted by intyiciya*:

 

But... why would you need this in the ingame chat, as the server's uptime is shown in Procon?

 

Posted Image

so that was shown during the game in the chat

 

I need

* Restored post. It could be that the author is no longer active.
Link to comment
Share on other sites

Originally Posted by Phil_K*:

 

Hi.

 

Take a look at my "AdminIn & Spawn Message" plugin found here -> showthread....-2-2014-02-10)*

 

It has the options to send the round time and server uptime via the chat.

Maybe you came along a server with that.

 

Greets

Phil.

* Restored post. It could be that the author is no longer active.
Link to comment
Share on other sites

Originally Posted by PapaCharlie9*:

 

I need a plugin which displays the time or date,as the server is running,so that was shown in the chat during the game

 

don't you understand?

Nyet.

 

I understand that you don't want someone to type a chat command. But I still do not understand which date and time exactly you mean?

 

* Current calendar date and current time? And if so, the time local to the player, local to the server, local to the layer, or some universal time like UTC? (And most importantly, why would you want to spam this in chat_)

 

* Uptime of the server in days, hours, minutes and seconds?

 

* Elapsed time for the round, but then why do you need date?

 

How often do you want this to be spammed in chat?

 

It would help if you explained why you need this information? What problem are you trying to solve? Again, use more words. The more details you provide, the easier it is for us to piece together what you want.

* Restored post. It could be that the author is no longer active.
Link to comment
Share on other sites

Originally Posted by LCARSx64*:

 

For spamming server uptime:

 

Install and setup this plugin: ...*

 

Then add this limit (change the value highlighted in red to the frequency you would like in seconds, minimum 10 seconds):

 


Spam Server Uptime

 

Create a new limit to evaluate OnIntervalServer. Set the evaluation_interval to 60 seconds. Set action to None.

 

Set first_check to this Code:

Code:

// Show Server Uptime

TimeSpan servUp = TimeSpan.FromSeconds(server.TimeUp);
String msg = "Server Uptime: " + servUp.Days.ToString() + "d " + servUp.Hours.ToString() + "h ";
int iMins = servUp.Minutes;
int iSecs = servUp.Seconds;

if (iMins < 10) msg = msg + "0";
msg = msg + iMins.ToString() + "m ";
if (iSecs < 10) msg = msg + "0";
msg = msg + iSecs.ToString() + "s";

plugin.SendGlobalMessage(msg);

return false;

End of post!

* Restored post. It could be that the author is no longer active.
Link to comment
Share on other sites

Originally Posted by intyiciya*:

 

hi.

 

Take a look at my "adminin & spawn message" plugin found here -> showthread....-2-2014-02-10)*

 

it has the options to send the round time and server uptime via the chat.

Maybe you came along a server with that.

 

Greets

phil.

good.very nice men)
* Restored post. It could be that the author is no longer active.
Link to comment
Share on other sites

Originally Posted by HATANO_KENJI*:

 

For spamming server uptime:

 

Install and setup this plugin: ...*

 

Then add this limit (change the value highlighted in red to the frequency you would like in seconds, minimum 10 seconds):

 


Spam Server Uptime

 

Create a new limit to evaluate OnIntervalServer. Set the evaluation_interval to 60 seconds. Set action to None.

 

Set first_check to this Code:

Code:

// Show Server Uptime

TimeSpan servUp = TimeSpan.FromSeconds(server.TimeUp);
String msg = "Server Uptime: " + servUp.Days.ToString() + "d " + servUp.Hours.ToString() + "h ";
int iMins = servUp.Minutes;
int iSecs = servUp.Seconds;

if (iMins < 10) msg = msg + "0";
msg = msg + iMins.ToString() + "m ";
if (iSecs < 10) msg = msg + "0";
msg = msg + iSecs.ToString() + "s";

plugin.SendGlobalMessage(msg);

return false;

End of post!

Excuse me, Can your code be changed to the current time?

 

Like this:

Current time: 2018/06/29 - AM:07:00

 

Nyet.

 

I understand that you don't want someone to type a chat command. But I still do not understand which date and time exactly you mean?

 

* Current calendar date and current time? And if so, the time local to the player, local to the server, local to the layer, or some universal time like UTC? (And most importantly, why would you want to spam this in chat_)

 

* Uptime of the server in days, hours, minutes and seconds?

 

* Elapsed time for the round, but then why do you need date?

 

How often do you want this to be spammed in chat?

 

It would help if you explained why you need this information? What problem are you trying to solve? Again, use more words. The more details you provide, the easier it is for us to piece together what you want.

I have a requirement to show the current time, Because of my server, No players have joined the server during daytime in my time zone, So I need the player to provide screenshots of the current time to do "Thank you for helping populate!"

 

How can I solve this problem for this?

 

My time zone is GMT+8, Perhaps the current time directly targeting the player will be the best solution.

* Restored post. It could be that the author is no longer active.
Link to comment
Share on other sites

Originally Posted by maxdralle*:

 

@HATANO_KENJI

 

DateTime.Now is what you need.

this sample returns the current server time:

Code:

plugin.SendGlobalMessage("Current Server Time: " + DateTime.Now.ToString("yyyy/MM/dd HH:mm"));
you can format the DateTime string like this:

DateTime.Now.ToString("MM/dd/yyyy"); // 07/21/2007

DateTime.Now.ToString("dddd, dd MMMM yyyy"); //Saturday, 21 July 2007

DateTime.Now.ToString("dddd, dd MMMM yyyy HH:mm"); // Saturday, 21 July 2007 14:58

DateTime.Now.ToString("dddd, dd MMMM yyyy hh:mm tt"); // Saturday, 21 July 2007 03:00 PM

DateTime.Now.ToString("dddd, dd MMMM yyyy H:mm"); // Saturday, 21 July 2007 5:01

DateTime.Now.ToString("dddd, dd MMMM yyyy h:mm tt"); // Saturday, 21 July 2007 3:03 PM

DateTime.Now.ToString("dddd, dd MMMM yyyy HH:mm:ss"); // Saturday, 21 July 2007 15:04:10

DateTime.Now.ToString("MM/dd/yyyy HH:mm"); // 07/21/2007 15:05

DateTime.Now.ToString("MM/dd/yyyy hh:mm tt"); // 07/21/2007 03:06 PM

DateTime.Now.ToString("MM/dd/yyyy H:mm"); // 07/21/2007 15:07

DateTime.Now.ToString("MM/dd/yyyy h:mm tt"); // 07/21/2007 3:07 PM

DateTime.Now.ToString("MM/dd/yyyy HH:mm:ss"); // 07/21/2007 15:09:29

DateTime.Now.ToString("MMMM dd"); // July 21

DateTime.Now.ToString("yyyy'-'MM'-'dd'T'HH':'mm':'ss.fffffffK"); // 2007-07-21T15:11:19.1250000+05:30

DateTime.Now.ToString("ddd, dd MMM yyyy HH':'mm':'ss 'GMT'"); // Sat, 21 Jul 2007 15:12:16 GMT

DateTime.Now.ToString("yyyy'-'MM'-'dd'T'HH':'mm':'ss"); // 2007-07-21T15:12:57

DateTime.Now.ToString("HH:mm"); // 15:14

DateTime.Now.ToString("hh:mm tt"); // 03:14 PM

DateTime.Now.ToString("H:mm"); // 5:15

DateTime.Now.ToString("h:mm tt"); // 3:16 PM

DateTime.Now.ToString("HH:mm:ss"); // 15:16:29

DateTime.Now.ToString("yyyy'-'MM'-'dd HH':'mm':'ss'Z'"); // 2007-07-21 15:17:20Z

DateTime.Now.ToString("dddd, dd MMMM yyyy HH:mm:ss"); // Saturday, 21 July 2007 15:17:58

DateTime.Now.ToString("yyyy MMMM"); // 2007 July

* Restored post. It could be that the author is no longer active.
Link to comment
Share on other sites

Originally Posted by HATANO_KENJI*:

 

plugin.SendGlobalMessage("Current Server Time: " + DateTime.Now.ToString("yyyy/MM/dd tt HH:mm")); // 2018/06/30 AM:00:00

 

Thank you for your help!

 

I have been able to correctly display the time format I want, But the game server seems to be different from my time zone.

 

Excuse me, Can we show the current time of the player?

 

PS.Our time zone is: GMT+8

* Restored post. It could be that the author is no longer active.
Link to comment
Share on other sites

Originally Posted by maxdralle*:

 

...

PS.Our time zone is: GMT+8

Code:
plugin.SendGlobalMessage("Current Server Time (China): " + DateTime.UtcNow.AddHours(8).ToString("yyyy/MM/dd HH:mm"));
* Restored post. It could be that the author is no longer active.
Link to comment
Share on other sites

Originally Posted by intyiciya*:

 

I can help you with display server's date & time

Download this plugin

myrcon.net/.../proconrulz-v44j1-weapon-limits-and-other-event-triggered-admin-actions

 

Add in this code Code:

######  show server time & date
On Say;Text !time; say Time: %hms% Date:%ymd%[YMD];PlayerYell Time: %hms% Date:%ymd% [YMD]
When type !time , it will show time & date on chat and also yell to the player who type in that command.

thank you

but I need another plugin,there is no need to type in the chat team,he shows how much time the server is running

* Restored post. It could be that the author is no longer active.
Link to comment
Share on other sites

Originally Posted by trans-am*:

 

I can help you with display server's date & time

Download this plugin

myrcon.net/.../proconrulz-v44j1-weapon-limits-and-other-event-triggered-admin-actions

 

Add in this code Code:

######  show server time & date
On Say;Text !time; say Time: %hms% Date:%ymd%[YMD];PlayerYell Time: %hms% Date:%ymd% [YMD]
When type !time , it will show time & date on chat and also yell to the player who type in that command.
* Restored post. It could be that the author is no longer active.
Link to comment
Share on other sites

Originally Posted by intyiciya*:

 

I need a plugin which displays the time or date,as the server is running,so that was shown in the chat during the game

 

don't you understand?

* Restored post. It could be that the author is no longer active.
Link to comment
Share on other sites

Originally Posted by PapaCharlie9*:

 

I will try to find you some help from a person that speaks Russian.

 

Until then, explain with more words what you want. We can understand Google Translate better if you describe what you want in several different ways, but always describe the same thing. For example:

 

Russian (Google Translate):

??? ???????? ???? ?????. ????? ??? ??? ??????? ???????. ???????????? ??????? ????? ???? ?????. ? ?? ?????? ???, ?? ????? ? ?????, ? ??? ?????.

 

It is very clear what I am talking about, right?

* Restored post. It could be that the author is no longer active.
Link to comment
Share on other sites

Originally Posted by intyiciya*:

 

No. I'm starting to suspect juvenile trolling.

 

Are you asking for a plugin to tell you the server's uptime? That uptime is already visible in Procon (top right, just below the server name). Why do you need a plugin to tell you the same information?

 

What language do you speak?

I need help ftw trolling!!!?

 

I need that everything seen in the chat how long the server is running

 

Russia

* Restored post. It could be that the author is no longer active.
Link to comment
Share on other sites

Originally Posted by intyiciya*:

 

No. I'm starting to suspect juvenile trolling.

 

Are you asking for a plugin to tell you the server's uptime? That uptime is already visible in Procon (top right, just below the server name). Why do you need a plugin to tell you the same information?

 

What language do you speak?

No trolling!!!I need that everything seen in the chat how long the server is running

 

Russia

* Restored post. It could be that the author is no longer active.
Link to comment
Share on other sites

Originally Posted by PapaCharlie9*:

 

understand_)

No. I'm starting to suspect juvenile trolling.

 

Are you asking for a plugin to tell you the server's uptime? That uptime is already visible in Procon (top right, just below the server name). Why do you need a plugin to tell you the same information?

 

What language do you speak?

* Restored post. It could be that the author is no longer active.
Link to comment
Share on other sites

Originally Posted by intyiciya*:

 

1) Please don't create multiple threads for the same question

2) What exactly are we supposed to make of this post? What's your questions? What's your problem?

3) If you're having a problem, provide more information about what you have tried so far

4) If you need some help, try actually describing what you're looking for/having troubles with

sorri
* Restored post. It could be that the author is no longer active.
Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

Please review our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.