Automated server messages are a simple but effective way to communicate important information directly to your players in-game. You can use them to display server rules, announce events, or remind players about your Discord.
For Deadlock, you can set this up using Schedules: ZapX runs the say command in your server console at set times and sends it to your server over RCON. All connected players will see the message in chat.
A schedule with the Run command action enters a command in your server console at the scheduled time, just as if you had entered it yourself in the Console tab. ZapX sends it to your server over RCON, so you don't need to enter your RCON password. If the console isn't accepting commands yet, apply the offered update by clicking Apply update.
First, test the command manually. Open the Console tab and enter a command like this:
say Welcome to our server!
If it works, create the schedule:
- Open the Schedules tab and click New Schedule.
- Enter a Name, for example,
Discord-Hinweis. - Under Action, select Run command.
- In the Command field, enter your message command, for example,
say Join our Discord!. - Under Schedule (Cron), set when the message should be sent. You can choose a preset such as Every hour or enter a custom Cron expression, for example,
*/30 * * * *for every 30 minutes. - Click Create.
For more details on setting up schedules, see the Schedules guide.
- The command is sent only if your server is running at the scheduled time. If it's stopped, ZapX skips the execution and displays “Game server is not running” for the schedule.
- A schedule always sends the same text. To send different messages, simply create multiple schedules. You can create up to 20 schedules per game server.
The server.cfg file isn't suitable for this: your server only runs it once each time it starts.
Alternatively, you can use an RCON program on your own computer that supports the Source RCON protocol to send commands to your server. Enter these details in the program:
- Address and port:
IP:Portfrom your server's Overview. Deadlock uses the same port for RCON as it does for the game. - Password: your RCON Password. In ZapX, you can set it in the Configuration tab under Startup parameters, in the RCON Password field. If you left the field blank, your server generated a password. You can find it in the
rcon_password.txtfile in the Files tab.
If you changed your RCON password, restart your server for the change to take effect.
To send a chat message to all players, use this command:
say [your message text]
Replace [your message text] with the message you want your players to see.
You can use schedules in ZapX or an RCON program that sends commands on a schedule to automate messages such as:
- Displaying server rules every few minutes
- Announcing upcoming events at set times
- Reminding players about Discord or website links
A program like this runs on your own computer and sends messages only while it is running and connected to your server.
Share your RCON password only with people and programs you trust. RCON gives full control over your server.
For Deadlock, you can send recurring messages to your players using a schedule and the say command, or with your own RCON program. For an overview of all the sections of your server in ZapX, see our Dashboard overview guide.
If you have questions or need help, our support team is here for you every day! 🙂
