Jump to content

New spawn server info board and welcome message 1.0.6.1


Recommended Posts

 

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"];

This camera script works on my server! Looks great! THANKS A LOT Asian Kid!!!

Link to comment
Share on other sites

is it possible to get a copy of this that will play anytime a player logs in and plays intro song.  i tried edditing it mysel but im lost.  i dont want godmode or anything else.  just this message played for like 20s whenever someone gets into game.  the godmode thing seemed to be messing with my infistar and kicking people.  and the message would never start playing. 

 

Thanks in advance for any help

 

-Vape

Link to comment
Share on other sites

i cant get it to work on mine. i decided to try the credits style version and i added the music code to it and i catch my song half way through so i just moved the code down a little bit after the 10s wait for user to log in im hoping that works.  but i dont get the credits style screen either....  why cant i get the screen to credits or opening screen to work....

 

sorry for being so worthless

Link to comment
Share on other sites

Updated the spawn.sqf

Everything should work now

anyone know of a way to make the traders Info_Board_EP1  (death boards)  display more info other than deaths.

like server rules and or server mods...?

 

 

something like this maybe ..... just add it to the existing info board  ??

 

list_playerDeaths.sqf

private [];


PVDZE_plr_DeathB = [player];
publicVariableServer  "PVDZE_plr_DeathB";


waitUntil {!isNil "PVDZE_plr_DeathBResult"};


if((count PVDZE_plr_DeathBResult) > 0) then {
// load death message board ui
call EpochDeathBoardLoad;
} else {
cutText [(localize "str_epoch_player_36"), "PLAIN DOWN"];
PVDZE_plr_DeathBResult = nil;
};


"Total Calamity" 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'>self bloodbag right click blood bag</t><br/>
<t size='.7' shadow='1'align='left' color='#FFFFFF'></t><br/>
<t size='1.1' shadow='1'align='left' color='#FFFFFF'>suicide right click weapon</t><br/>
<t size='.7' shadow='1'align='left' color='#FFFFFF'></t><br/>
<t size='1.1' shadow='1'align='left' color='#FFFFFF'>deploy bike right click toolbox</t><br/>
<t size='.7' shadow='1'align='left' color='#FFFFFF'></t><br/>
<t size='1.1' shadow='1'align='left' color='#FFFFFF'>base jumping</t><br/>
<t size='.7' shadow='1'align='left' color='#FFFFFF'></t><br/>
<t size='1.1' shadow='1'align='left' color='#FFFFFF'>gem building</t><br/>
<t size='.7' shadow='1'align='left' color='#FFFFFF'></t><br/>
<t size='1.1' shadow='1'align='left' color='#FFFFFF'>drug dealer</t><br/>
<t size='.7' shadow='1'align='left' color='#FFFFFF'></t><br/>
<t size='1.1' shadow='1'align='left' color='#FFFFFF'>snap building</t><br/>
<t size='.7' shadow='1'align='left' color='#FFFFFF'></t><br/>
<t size='1.1' shadow='1'align='left' color='#FFFFFF'>www.yourwebsite.com/</t><br/>",
(servername)];
Link to comment
Share on other sites

Is there a list of keys I can use somewhere? What did your replace "xxxx" with?

Sorry this got buried in my content

if (_dikCode == 0x44) then {
		_nill = execvm "custom\scripts\Info.sqf";
};

xxxx is replaced by the path of the Info.sqf in your mission pbo, if you still need help with this send me a PM!

Link to comment
Share on other sites

  • 3 months later...
  • 4 months later...

Hi all:) Petite if youd like to camera to start from distance further away change this

 

//*********CAMERA CONNFIG**********
Camera = True; //Want the camera to show?
_distance = 40; //How far the camera starts off

 

To this :

 

//*********CAMERA CONNFIG**********
Camera = True; //Want the camera to show?
_camDistance = 100; //How far the camera starts off
 
I have it at 100 you can put whatever you want(i dont know about any limitations).
 
You can also play about with these [2,0,2], in the bit that looks like:
 
_camera camSetTarget vehicle player;
_camera camSetRelPos [2,0,2];
_camera camCommit 8;
 
I have them on zero, that zooms into inside of players skull.(It seems they all make a little difference to overall camera movemnt play about with them)
 
Link to comment
Share on other sites

  • 1 year later...

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...