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  
iamredseal

onUserDisconnect Script

Recommended Posts

I noticed some servers are showing disconnects and some don't. As a server admin, I see an option to put a script/message to run when a player disconnects, however, I wanted to know:

A) Are we allowed to show disconnects

B) What does the script need to be?

I have tried to find ways on these forums and elsewhere (Arma Forums) and I came across something like so:

onUserDisconnected = "server globalChat format['Player %1 has disconnected.'];";

From what I understand, this should be added to the cfg file for the server.

Will this work?

Disclaimer: Sorry if someone has already posted answering these questions, I used the search feature to try and find what I was looking for before posting.

Share this post


Link to post
Share on other sites

isnt it related to the "difficulty" settings? like on expert or whatever it doesnt show up

Share this post


Link to post
Share on other sites

no, I can put in an actual script that will send a message via global chat in the server.cfg, but anything i try errors. Wants to know if any of those that have it working will share.

Share this post


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

×