QUEST #116
+4 XPREWARD: KNOWLEDGE

Set automatic server messages at DayZ

Configuration of automatic messages, that everyone on the server can read

2 min read·Updated July 03, 2023

Server messages must be entered in the messages.xml file (you can find it in dayz/mpmissions/dayzOffline.chermarusplus/db/). If it does not exist yet, you have to create one. There you should insert the following code:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<messages>
<!--
See <nowiki>https://community.bistudio.com/wiki/DayZ:Server_Messages</nowiki> for more information
Example messages:

1) following message will be displayed to every player in countdown manner
and shuts down server in 10 hours from its start

<message>
<deadline>600</deadline>
<shutdown>1</shutdown>
<text>This server (#name) will shutdown in #tmin minutes.</text>
</message>
2) following message will be displayed every 15 minutes to every player

<message>
<repeat>15</repeat>
<text>You're playing on my server (#name). Thank you .)</text>
</message>

3) following message will be displayed every 50 minutes to every player
and 10 minutes after player connect

<message>
<delay>10</delay>
<repeat>50</repeat>
<onconnect>1</onconnect>
<text>Check our web page at www.dayz.com</text>
</message>

4) following message will be displayed once
and 2 minutes after player connect

<message>
<delay>2</delay>
<onconnect>1</onconnect>
<text>Welcome to my server #name</text>.
</message>

-->
</messages>

Here you can specify the content of the messages yourself, as well as the different times when the messages should appear. Here is a short overview of the different commands you can use:

CommandDescription
onconnectMessage displayed to someone who just joined the server
repeatRepeats the message
countdownIndicates how much time is left. This message is sent every x minutes. Possible parameters: 60, 45, 30, 20, 15, 10, 5, 2, 1 minute.
shutdownSpecifies that the server will shut down when the countdown is over. If no countdown is set, the shutdown is ignored.