Airwaves Man Posted March 16, 2017 Report Share Posted March 16, 2017 Hey guys, how can I display a message or show a dialog only once a restart when a player joins the server, so that after a relog the player dont get the message twice. Link to comment Share on other sites More sharing options...
0 Airwaves Man Posted March 17, 2017 Author Report Share Posted March 17, 2017 Bumb Link to comment Share on other sites More sharing options...
0 salival Posted March 17, 2017 Report Share Posted March 17, 2017 I have been working on a system like this, called Message of the Day. It's not too hard, you just need to save a variable to the players profileNameSpace and read that on startup Airwaves Man 1 Link to comment Share on other sites More sharing options...
0 Airwaves Man Posted March 17, 2017 Author Report Share Posted March 17, 2017 Thanks for that. I had no idea what kind of variable to use. Link to comment Share on other sites More sharing options...
0 salival Posted March 17, 2017 Report Share Posted March 17, 2017 2 minutes ago, A Man said: Thanks for that. I had no idea what kind of variable to use. Here's somewhat of an example thrown together _showMOTD = profileNameSpace getVariable ["showMOTD",true]; if (_showMOTD) then { execVM "scripts\motd.sqf"; profileNameSpace setVariable ["showMOTD",false]; saveProfileNameSpace;}; Now to be fair, that will only enable it once, it wont reset on startup, I would think you would need to have the server send the client a publicVariable and the server keep track of it. Airwaves Man 1 Link to comment Share on other sites More sharing options...
0 juandayz Posted March 17, 2017 Report Share Posted March 17, 2017 10 minutes ago, A Man said: Thanks for that. I had no idea what kind of variable to use. maybe you can get an idea from here mate http://opendayz.net/threads/display-a-hint-message-on-player-spawn-new-spawn-only.13260/ Airwaves Man 1 Link to comment Share on other sites More sharing options...
Question
Airwaves Man
Hey guys,
how can I display a message or show a dialog only once a restart when a player joins the server, so that after a relog the player dont get the message twice.
Link to comment
Share on other sites
5 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now