New spawn server info board and welcome message/intro

AsianKid

Well-Known Member
What the does?
- Make a info board like the trader menu
- displays info on your server or anything you want, such as rules

How can I edit it?
- Open the spawn.sqf and there is a config part only mess with that and the info board part.

Not working?
- Find this
Code:
waitUntil { alive player };
Replace with this
Code:
waitUntil {!isNil "dayz_animalCheck"};
Should look like this
Code:
//God mode Start
waitUntil {!isNil "dayz_animalCheck"};  
player_zombieCheck = {};
player_fired = {};
fnc_usec_damageHandler = {};
thePlayer removeAllEventHandlers "handleDamage";
thePlayer addEventHandler ["handleDamage", {false}];
thePlayer allowDamage false;
Photos
Info Board!!!!

Then turns into a temp debug the turns off god mode

TO INSTALL

Find this in the init.sqf

Code:
_id = player addEventHandler ["Respawn", {_id = [] spawn player_death;}];
Replace with this

Code:
_id = player addEventHandler ["Respawn", {_id = [] spawn player_death; _nul = [] execVM "spawn.sqf";}];
Now download the spawn.sqf and place it in the main mission folder

repack the pbo and upload it

DONE hope you enjoy and report bugs and other problems.

spawn.sqf


Code:
private [ "_Message","_Time","_Ending","_TimeL"];
/*
         Start up menu made my Asian Kid
         plz credit me when needed
*/










/*
*********** CONFIG START ***********
               (%1 is the players name don't change)
*/
_Message = format["Change me %1 ",format["%1", name player]];//Welcome message after the menu pops up
_Ending = format["Change me %1 ",format["%1", name player]];//end message after god mode is off
_Time = 20; //Time before the welcome message pop up, and the time it takes before god mode is off
_TimeL = 6; //Time between the welcome message to the end message
servername = "Change me"; //You server name
mess = true; //Show message when god mode is off
/*
*********** CONFIG END ***********
*/


//God mode Start
waitUntil { alive player };  //Not working right when your spawn, starting before?
//waitUntil {!isNil "dayz_animalCheck"};      //remove the line above and remove the // on this line and delete this note
player_zombieCheck = {};
player_fired = {};
fnc_usec_damageHandler = {};
thePlayer removeAllEventHandlers "handleDamage";
thePlayer addEventHandler ["handleDamage", {false}];
thePlayer allowDamage false;


sleep 4;


/*
        YOU CAN EDIT HERE
        Make sure to edit in the >xxxx<
*/
"Dayz Epoch" hintC parseText format ["
<t size='1.25' shadow='1'align='left' color='#ff8800'>Welcome to %1</t><br/>
<t size='.7' shadow='1'align='left' color='#FFFFFF'></t><br/>
<t size='1.1' shadow='1'align='left' color='#FFFFFF'>xxxxxxxxxxxxxxxxxxxxxxxxxx</t><br/>
<t size='.7' shadow='1'align='left' color='#FFFFFF'></t><br/>
<t size='1.1' shadow='1'align='left' color='#FFFFFF'>xxxxxxxxxxxxxxxxxxxxxxxxxx</t><br/>
<t size='.7' shadow='1'align='left' color='#FFFFFF'></t><br/>
<t size='1.1' shadow='1'align='left' color='#FFFFFF'>xxxxxxxxxxxxxxxxxxxxxxxxxx</t><br/>
<t size='.7' shadow='1'align='left' color='#FFFFFF'></t><br/>
<t size='1.1' shadow='1'align='left' color='#FFFFFF'>xxxxxxxxxxxxxxxxxxxxxxxxxx</t><br/>
<t size='.7' shadow='1'align='left' color='#FFFFFF'></t><br/>
<t size='1.1' shadow='1'align='left' color='#FFFFFF'>xxxxxxxxxxxxxxxxxxxxxxxxxx</t><br/>
<t size='.7' shadow='1'align='left' color='#FFFFFF'></t><br/>
<t size='1.1' shadow='1'align='left' color='#FFFFFF'>xxxxxxxxxxxxxxxxxxxxxxxxxx</t><br/>
<t size='.7' shadow='1'align='left' color='#FFFFFF'></t><br/>
<t size='1.1' shadow='1'align='left' color='#FFFFFF'>xxxxxxxxxxxxxxxxxxxxxxxxxx</t><br/>
<t size='.7' shadow='1'align='left' color='#FFFFFF'></t><br/>
<t size='1.1' shadow='1'align='left' color='#FFFFFF'>www.dayzfallendead.tk/</t><br/>",
(servername)];


sleep _Time;


cutText [_Message, "PLAIN DOWN"];
if ( mess ) then { systemChat ( "God mode off" ); };
player_zombieCheck = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\player_zombieCheck.sqf";
player_fired = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\player_fired.sqf";
fnc_usec_damageHandler = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\fn_damageHandler.sqf";
thePlayer addEventHandler ["handleDamage", {true}];
thePlayer removeAllEventHandlers "handleDamage";
thePlayer allowDamage true;


sleep _TimeL;


cutText [_Ending, "PLAIN DOWN"];
 
Last edited:

AsianKid

Well-Known Member
How to add music

Add this


Code:
playsound "intromusic";
After


Code:
//God mode Start
Looks like


Code:
//God mode Start
playsound "intromusic";
Now add this into the description.ext
under


Code:
class RscProgressNotFreeze
{
idc = -1;
type = 45;
style = 0;
x = 0.022059;
y = 0.911772;
w = 0.029412;
h = 0.039216;
texture = "#(argb,8,8,3)color(0,0,0,0)";
};
add this
Code:
class CfgSounds
{
    sounds[] =
    {
    intromusic
    };
    class intromusic
    {
    name="intromusic";
    sound[]={intromusic.ogg,0.9,1};
    titles[] = {};
    };
};
Sound must me called intromusic.ogg
Sound file must be an ogg
 
Top