Page 3 of 4 FirstFirst 1234 LastLast
Results 21 to 30 of 34

Thread: Server time

  1. #21
    Quote Originally Posted by intyiciya View Post
    * 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?
    Don't send me private messages (PMs) unless you really need privacy, like your game server password. If you just have a question or need help, post in one of the threads. It's extra work for me to answer questions and give help in private messages and no one else gets the benefit of the answer.

  2. #22
    Quote Originally Posted by EBassie View Post
    But... why would you need this in the ingame chat, as the server's uptime is shown in Procon?

    so that was shown during the game in the chat

    I need
    Last edited by intyiciya; 09-09-2014 at 17:15.

  3. #23

  4. #24
    Developer
    Join Date
    Apr 2010
    Location
    Münster(Westf.), Germany
    Posts
    3,128
    Hi.

    Take a look at my "AdminIn & Spawn Message" plugin found here -> https://forum.myrcon.com/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.

  5. #25
    Zaeed


    Yes
    Last edited by intyiciya; 10-09-2014 at 11:10.

  6. #26
    Quote Originally Posted by intyiciya View Post
    Zaeed


    Yes
    Why? Why in chat? How often in chat?
    Don't send me private messages (PMs) unless you really need privacy, like your game server password. If you just have a question or need help, post in one of the threads. It's extra work for me to answer questions and give help in private messages and no one else gets the benefit of the answer.

  7. #27
    UltimateMapManager: INFO -> Current day/time on this system: Mittwoch, 18:02 Ultimate-Map-Manager
    OR
    Server uptime
    idVZPuL.png

  8. #28
    Procon Addict
    Join Date
    Dec 2013
    Location
    Sydney, Australia
    Posts
    502
    For spamming server uptime:

    Install and setup this plugin: Insane Limits

    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!
    Last edited by LCARSx64; 11-09-2014 at 18:35.

  9. #29
    Quote Originally Posted by phil_k View Post
    hi.

    Take a look at my "adminin & spawn message" plugin found here -> https://forum.myrcon.com/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)

  10. #30
    Quote Originally Posted by LCARSx64 View Post
    For spamming server uptime:

    Install and setup this plugin: Insane Limits

    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

    Quote Originally Posted by PapaCharlie9 View Post
    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.
    Last edited by HATANO_KENJI; 29-06-2018 at 07:28.

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •