Jump to content

New spawn server info board and welcome message 1.0.6.1


Recommended Posts

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.
 

 
Photos
Info Board!!!!
2014_03_06_00003.jpg
Then turns into a temp debug the turns off god mode
2014_03_06_00002.jpg
TO INSTALL
 
Find this in the init.sqf
 

	3 fadeSound 1;
	3 fadeMusic 1;
	endLoadingScreen;

Add this under
 

[] execVM "scripts\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 
 
 

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 {!isNil "dayz_animalCheck"}; 
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"];
Link to comment
Share on other sites

How to add music

 

Add this 

 

playsound "intromusic";
After

 

//God mode Start
Looks like 

 

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

under

 

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

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

Link to comment
Share on other sites

Not sure if this will work it should tho

private [ "_Message","_Time","_Timec","_Ending","_TimeL","_camera","_distance","_Morning","_Afternoon"];

/*
         Start up menu made my Asian Kid
         plz credit me when needed
		 Camera code based off lport3

		 
		 
                *********** 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
_Timec = 4; //Time before the info board show up after the camera is done or when the info board shows up after the player is spawned in
servername = "Change me"; //You server name
mess = true; //Show message when god mode is off

//*********CAMERA CONNFIG**********
Camera = True; //Want the camera to show?
_distance = 40; //How far the camera starts off
showCinemaBorder true;  //Want black boarders
NVGS = false; //Your server have night time?

//CHANGE THE XX OR IT WILL NOT WORK!!!!
//Time for the nvgs on the camera
_Afternoon = 17;  //what time you want nvgs to turn on  (should be around 16 to 18)
_Morning = 7;     //What time you want nvgs off        (Should be around 6 to 8
_Day = daytime; //Don't touch
/*
               *********** CONFIG END ***********
*/


//God mode Start
waitUntil {!isNil "dayz_animalCheck"}; 
player_zombieCheck = {};
player_fired = {};
fnc_usec_damageHandler = {};
thePlayer removeAllEventHandlers "handleDamage";
thePlayer addEventHandler ["handleDamage", {false}];
thePlayer allowDamage false;

//CAMERA START
if(Camera) then {
//If NVGS is true
if(NVGS) then {
while { ( _Day < _Afternoon ) and ( _Day < _Morning ) } do {
camUseNVG True;
};
while { ( _Day > _Morning ) and ( _Day < _Afternoon ) } do {
camUseNVG false;
};
};
_camera = "camera" camCreate [(position player select 0)-2, position player select 1,(position player select 2)+_camDistance];
_camera cameraEffect ["internal","back"];
 
_camera camSetFOV 2.000;
_camera camCommit 0;
waitUntil {camCommitted _camera};
 
_camera camSetTarget vehicle player;
_camera camSetRelPos [0,0,2];
_camera camCommit 8;

waitUntil {camCommitted _camera};
 
_camera cameraEffect ["terminate","back"];
camDestroy _camera;
};
//CAMERA END

sleep _Timec;


/*
        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"];
Link to comment
Share on other sites

Great ;) Have not tested it yet, but if i wanted to have it on every login and not on respawn only would it be enough to run it in the playermonitor section like this

 

_nul execVM "loginCamera.sqf";

 

 

And maybe as start condition not AnimalCheck but this : waitUntil {!isNil ("PVDZE_plr_LoginRecord")};

 

Would that work? :D

Link to comment
Share on other sites

Great ;) Have not tested it yet, but if i wanted to have it on every login and not on respawn only would it be enough to run it in the playermonitor section like this

 

_nul execVM "loginCamera.sqf";

 

 

And maybe as start condition not AnimalCheck but this : waitUntil {!isNil ("PVDZE_plr_LoginRecord")};

 

Would that work? :D

Did you try the new sqf?

with the camera I can't test is so let me know plz

 

want it to show every time do this

 

[] execVM "spawn.sqf";

Link to comment
Share on other sites

I couldn't get this to work. Well not the way you described in the instruction. Got it working by calling it in the

 

 just like the welcome message script

 

But I edited it and used it in a new spawn script so that it only shows if your new to the server or a fresh spawn.(Napf Server)

 

Can you post an example? of how to force it only for new spawns?

Link to comment
Share on other sites

 

Modified newspawn_execute.sqf

 

private ["_Time"];


//*********** CONFIG START ***********


_Time = 25;//Time before the welcome message pop up (Seconds)
servername = "FP Gaming.com"; //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"};
player_zombieCheck = {};
player_fired = {};
fnc_usec_damageHandler = {};
thePlayer removeAllEventHandlers "handleDamage";
thePlayer addEventHandler ["handleDamage", {false}];
thePlayer allowDamage false;


sleep 2;

cutText ["","BLACK FADED"];

"Dayz Epoch" hintC parseText format ["
<t size='1.25' shadow='1'align='left' color='#ff8800'>Welcome to %1</t><br/>
<t size='.6' shadow='1'align='left' color='#FFFFFF'></t><br/>
<t size='1' shadow='1'align='left' color='#FFFFFF'>Respect other players and the Admins.</t><br/>
<t size='.6' shadow='1'align='left' color='#FFFFFF'></t><br/>
<t size='1' shadow='1'align='left' color='#FFFFFF'>Vehicles left at traders will be removed by Admin. Move it or lose it!!!!</t><br/>
<t size='.6' shadow='1'align='left' color='#FFFFFF'></t><br/>
<t size='1' shadow='1'align='left' color='#FFFFFF'>No base building in exisitng buildings.</t><br/>
<t size='.6' shadow='1'align='left' color='#FFFFFF'></t><br/>
<t size='1' shadow='1'align='left' color='#FFFFFF'>No Base Raiding. No Destroying Locked Vehicles.</t><br/>
<t size='.6' shadow='1'align='left' color='#FFFFFF'></t><br/>
<t size='1' shadow='1'align='left' color='#FFFFFF'>Please no vehicles in mission zones until its clear of AI.</t><br/>
<t size='.6' shadow='1'align='left' color='#FFFFFF'></t><br/>
<t size='1' shadow='1'align='left' color='#FFFFFF'>No running AI over. Fight like a man!!!!!</t><br/>
<t size='.6' shadow='1'align='left' color='#FFFFFF'></t><br/>
<t size='1' shadow='1'align='left' color='#FFFFFF'>3 Hour restarts with plenty of warnings.</t><br/>
<t size='.6' shadow='1'align='left' color='#FFFFFF'></t><br/>
<t size='1.1' shadow='1'align='left' color='#FFFF00'>PVP only allowed in the PVP zone</t><br/>
<t size='.6' shadow='1'align='left' color='#FFFFFF'></t><br/>
<t size='1.1' shadow='1'align='left' color='#33FF33'>www.fp-gaming.com</t><br/>
<t size='.6' shadow='1'align='left' color='#FFFFFF'></t><br/>
<t size='1.1' shadow='1'align='left' color='#FF0000'>WAIT A FEW SECONDS FOR THE SPAWN MENU</t><br/>",
(servername)];

sleep _Time;

titleFadeOut 1;

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 1;
waitUntil {!dialog};
systemChat ('Use your scroll wheel to select a spawn location!');
cutText ["                 \nUse your scroll wheel to select a spawn location!","PLAIN"];
execVM "Scripts\Newspawn\newspawn_main.sqf";

Works ok, probably could do with the code tidying up a bit.

 

Thnxs to /index.php?/user/1130-asian-kid/">Asian Kid for the original script.

Link to comment
Share on other sites

  • 1 month later...

Thanks for this! Tossing it up now. Just a not though, we already had a custom intro song on and as per a different set of installation instructions we named is introSong.ogg. Just thought I'd let you know that it does work if the file isn't named introMusic.ogg as long as you match everything up. =]

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
×
×
  • Create New...