Asian Kid Posted March 6, 2014 Report Share Posted March 6, 2014 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!!!! Then turns into a temp debug the turns off god mode 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"]; unrealPANDA, adrianna, DJbeast11 and 1 other 4 Link to comment Share on other sites More sharing options...
Asian Kid Posted March 6, 2014 Author Report Share Posted March 6, 2014 How to add music Add this playsound "intromusic";After //God mode StartLooks like //God mode Start playsound "intromusic";Now add this into the description.extunder 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 thisclass CfgSounds { sounds[] = { intromusic }; class intromusic { name="intromusic"; sound[]={intromusic.ogg,0.9,1}; titles[] = {}; }; }; Sound must me called intromusic.oggSound file must be an ogg Link to comment Share on other sites More sharing options...
Asian Kid Posted March 7, 2014 Author Report Share Posted March 7, 2014 Updated the spawn.sqfEverything should work now Link to comment Share on other sites More sharing options...
Grinchen Posted March 7, 2014 Report Share Posted March 7, 2014 This looks really good. Might have to try it later. :D Link to comment Share on other sites More sharing options...
Asian Kid Posted March 7, 2014 Author Report Share Posted March 7, 2014 In your spawn.sqf: */ and this line this should mess all the scirpt no? it isn't commented out Link to comment Share on other sites More sharing options...
Asian Kid Posted March 7, 2014 Author Report Share Posted March 7, 2014 Well no, Sublime says it isn't commented out :P http://gyazo.com/8c29179e4df75777958d4919e16a4bb5 Is my bad updating soon adding something new Link to comment Share on other sites More sharing options...
Asian Kid Posted March 7, 2014 Author Report Share Posted March 7, 2014 Everything is done [Added] The end time to the donfig [Fix] The player name not showing up [Added] Tut on fixing the start up Link to comment Share on other sites More sharing options...
peipo118 Posted March 7, 2014 Report Share Posted March 7, 2014 Hmm did not work for me at all.. i have implemented a spawn cam into the script but it should have shown the screen anyways though.. Asian Kid 1 Link to comment Share on other sites More sharing options...
Asian Kid Posted March 7, 2014 Author Report Share Posted March 7, 2014 Try the not working option Link to comment Share on other sites More sharing options...
BetterDeadThanZed Posted March 7, 2014 Report Share Posted March 7, 2014 This looks really cool. I'll be adding it to both of my servers. What are the numbers in this line: sound[]={intromusic.ogg,0.9,1}; How long should the music be? Link to comment Share on other sites More sharing options...
Asian Kid Posted March 7, 2014 Author Report Share Posted March 7, 2014 Don't mess with it The music last how long it actually is You guys want me to add a camera intro? Can be turned off or on Link to comment Share on other sites More sharing options...
BetterDeadThanZed Posted March 7, 2014 Report Share Posted March 7, 2014 Don't mess with it The music last how long it actually is You guys want me to add a camera intro? Can be turned off or on How long does the intro last? Link to comment Share on other sites More sharing options...
Asian Kid Posted March 7, 2014 Author Report Share Posted March 7, 2014 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 More sharing options...
peipo118 Posted March 8, 2014 Report Share Posted March 8, 2014 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 More sharing options...
Asian Kid Posted March 8, 2014 Author Report Share Posted March 8, 2014 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 More sharing options...
peipo118 Posted March 8, 2014 Report Share Posted March 8, 2014 Yes i tried it just now and did not get anything..... i will try doing the [] execVM "spawn.sqf"; Will keep you posted ( actually the camera should work like that ...) Link to comment Share on other sites More sharing options...
peipo118 Posted March 8, 2014 Report Share Posted March 8, 2014 BTW does it work for you with the normal script? Link to comment Share on other sites More sharing options...
peipo118 Posted March 8, 2014 Report Share Posted March 8, 2014 Hmm worked for 1 time.. but somehow zombies did not aggro anymore at all (don´t know how that is related right now, probably something that godmode did not end properly) Link to comment Share on other sites More sharing options...
Renegade2k6 Posted March 8, 2014 Report Share Posted March 8, 2014 I couldn't get this to work. Well not the way you described in the instruction. Got it working by calling it in the if (!isDedicated) then { dayzgreywolf 1 Link to comment Share on other sites More sharing options...
LoadingSA Posted March 8, 2014 Report Share Posted March 8, 2014 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 More sharing options...
Renegade2k6 Posted March 9, 2014 Report Share Posted March 9, 2014 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 More sharing options...
Asian Kid Posted May 2, 2014 Author Report Share Posted May 2, 2014 bump Link to comment Share on other sites More sharing options...
Diesel Weasel Posted May 2, 2014 Report Share Posted May 2, 2014 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 More sharing options...
Ackusativobjekt Posted May 2, 2014 Report Share Posted May 2, 2014 Where is the download button? D: Link to comment Share on other sites More sharing options...
Diesel Weasel Posted May 2, 2014 Report Share Posted May 2, 2014 Where is the download button? D: You copy and paste the code the nice gentleman posted and create your own file, silly. =] Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now