Jump to content

Forums Announcement

Read-Only Mode for Announcements & Changelogs

Dear Survivors, we'd like to inform you that this forum will transition to read-only mode. From now on, it will serve exclusively as a platform for official announcements and changelogs.

For all community discussions, debates, and engagement, we encourage you to join us on our social media platforms: Discord, Twitter/X, Facebook.

Thank you for being a valued part of our community. We look forward to connecting with you on our other channels!

Stay safe out there,
Your DayZ Team

Sign in to follow this  
Guest

How to set up server messages correctly ?

Recommended Posts

Guest

Hello,

How do I set server messages on my server?

My message looks like this

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<messages>

    <!-- This is example message for automatic server termination -->
    <message>

        <!-- no delay -->
        <delay>0</delay>

        <!-- if the value is larger than 0, then flag Repeat is enabled -->
        <repeat>0</repeat>

        <!-- if the value is larger than 0, then flag Countdown is enabled,
             countdown reaches zero in 10 hours --> 
        <deadline>30</deadline>

        <!-- disable On connect flag -->
        <onconnect>0</onconnect>

        <!-- enable Shutdown flag -->
        <shutdown>0</shutdown>

        <!-- message itself with placeholders -->
        <text>Test report.</text>

    </message>
</messages>

I want the message to be sent every 30 minutes. But the problem is that the message is being sent at random, doing something wrong?

Thank you

Share this post


Link to post
Share on other sites

For a message to repeat every 30 minutes,
you would do it like this...

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<messages>

    <!-- My message - repeats every 30 minutes  -->
    <message>

        <!-- Repeat is enabled -->
        <repeat>1</repeat>

        <!-- Delay 30 minutes  -->
        <delay>30</delay>

        <!-- My Message Body -->
        <text>Hello World...</text>

    </message>
</messages>

 

Share this post


Link to post
Share on other sites

My server restarts every 4 hours (12,16,20,00,04,08) via task scheduler.

I want messages.xml to send notifications in 30,15,5 and 1 min before server goes down to all players online, how can I do that? How do I let the server know when exactly to start this messaging?

 

Share this post


Link to post
Share on other sites
Sign in to follow this  

×