Jump to content

Release: Local Server Messages


Cherdenko

Recommended Posts

puts out pre-defined server messages in a random order
 

  Reveal hidden contents

and you are good to go

Link to comment
Share on other sites

  • 4 months later...

@nova

For example: If u put the msg.sqf into Your Server Root/Mpmissions\Your instance\msg\

then  open your init.sqf and find:

execFSM "\z\addons\dayz_code\system\player_monitor.fsm";

just below paste:

execVM "msg\msg.sqf";

*NOTE: if u wanna use dynamicText function then into msg.sqf

//find:

systemChat format["%1 %2",_chattxt,_randmsg];

//change by:

[format["<t size='0.5' color='#D01000'>%1</t><br/><t size='0.5'>%2</t>",_chattxt,_randmsg],0,0,2,2] spawn BIS_fnc_dynamicText;	

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

 

Another way to make something similar, without externals scripts is using the motd line located in your : serverRoot\your instance\ config.cfg

this line:

motd[] = {"DayZ Epoch","Have fun!"};
motdInterval = 0;

then change this line by:

motd[] = {
"My first Msg",
"My second Msg",
"My 3 Msg",
"My 4 Msg"//last line without ","
};
motdInterval = 120;//time in seconds between each msg.

 

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...