Jump to content
  • 0

Welcome messages


BetterDeadThanZed

Question

I've attempted to add this to both of my Epoch servers: http://opendayz.net/threads/dayz-welcome-message-credits-style.13071/

 

I followed the instructions, but I don't see the welcome messages when I join the server. I wonder if the line that loads it in the init.sqf file is placed someplace else for Epoch? The directions say to post it between these lines:

if (!isDedicated) then {
//Conduct map operations

I changed the path to custom\credits so it looks like this:

if (!isDedicated) then {
[] execVM "custom\credits\Server_WelcomeCredits.sqf";
//Conduct map operations

Anyone else using this script or another that does a similar thing?

Link to comment
Share on other sites

11 answers to this question

Recommended Posts

  • 0

I run this script fine with epoch

 

in my init it is like this (i have custom paths and also renamed the file)

if (!isDedicated) then {
// ######################### Custom Scripts Start #########################
	[] execVM "scripts\WelcomeCredits.sqf";
Link to comment
Share on other sites

  • 0

I have mine setup like this:

if (!isDedicated) then {
	//Conduct map operations
	0 fadeSound 0;
	waitUntil {!isNil "dayz_loadScreenMsg"};
	dayz_loadScreenMsg = (localize "STR_AUTHENTICATING");
	
	//Run the player monitor
	_id = player addEventHandler ["Respawn", {_id = [] spawn player_death;}];
	_playerMonitor = 	[] execVM "\z\addons\dayz_code\system\player_monitor.sqf";	
   [] execVM "scripts\Server_WelcomeCredits.sqf"; 
   [] execVM "scripts\safezone.sqf";
   [] execVM "scripts\kh_actions.sqf";	

You can ignore the other stuff but that is what mine looks like and works. I then have obviously the sqf in the right folder as its calling for it at execVM. Also you should post this in the other forum for scripting help.

Link to comment
Share on other sites

  • 0

if it helps mine looks like this 

 

 
if (!isDedicated) then {
        [] execVM "custom\Server_WelcomeCredits.sqf";
//Conduct map operations
0 fadeSound 0;
waitUntil {!isNil "dayz_loadScreenMsg"};
dayz_loadScreenMsg = (localize "STR_AUTHENTICATING");
execVM "service_point\service_point.sqf";
 
i had an issue where it didnt work because i  put a full stop instead of a comma on one of the lines 
 
pm me your code and i can take a look if you like ?
Link to comment
Share on other sites

  • 0
if (!isDedicated) then {
	//Conduct map operations
	0 fadeSound 0;
	waitUntil {!isNil "dayz_loadScreenMsg"};
	dayz_loadScreenMsg = (localize "STR_AUTHENTICATING");
	
	//Run the player monitor
	_id = player addEventHandler ["Respawn", {_id = [] spawn player_death;}];
	_playerMonitor = 	[] execVM "\z\addons\dayz_code\system\player_monitor.sqf";
	//Welcome Credits
	execVM "custom\fixes\WelcomeCredits.sqf";
};

Make sure if you have edited the messages you want to appear, that both sections have a matching amount of roles. IE :

 

_role1 = 
_role1names =
_role2 = 
_role2names =
_role3 = 
_role3names = 
 
And below : 
 
//The list below should have exactly the same amount of roles as the list above
[_role1, _role1names],
[_role2, _role2names],
[_role3, _role3names] //make SURE the last one here does NOT have a , at the end
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...