Jump to content
  • 0

Message only once when a player joins the server


Airwaves Man

Question

5 answers to this question

Recommended Posts

  • 0
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.

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...