This is going to be a tut on how to add in Music on spawn, and custom server messages like you see at the bottom of the screen in the video above.... This will not include the halo spawn, and will not answer any questions about it as a tut has already been written for that.
First, Make a .sqf file named playerspawn.sqf it should contain this base code.
Code:
waitUntil { alive player };
//BlurGaming Intro Script
sleep 4;
playsound "introSong";
cutText ["You are playing on *ServerName*", "PLAIN DOWN"];
sleep 4;
cutText ["Second Editable Text", "PLAIN DOWN"];
sleep 4;
cutText ["Third Editable Text", "PLAIN DOWN"];
With this code, you may Edit the time it takes for the song to start playing, you can edit when the 1st, 2nd & 3rd Text apears and also add more if you want.
When choosing a sound file for your server you must convert it to a .ogg format. for me my introSong is called introSong.ogg you can get this format by editing with sound editing programs like audacity. Personally i use SonyVegas because it is easy.
After making the intro song place it in your mission pbo in the root folder.
Now open your Description.ext file and find this
Code:
class RscPicture
{
access=0;
type=0;
idc=-1;
style=48;
colorBackground[]={0,0,0,0};
colorText[]={1,1,1,1};
font="TahomaB";
sizeEx=0;
lineSpacing=0;
text="";
};
Directly after the }; add this
Code:
class CfgSounds
{
sounds[] =
{
introSong
};
class introSong
{
name="introSong";
sound[]={introSong.ogg,0.9,1};
titles[] = {};
};
};
After you have done that, open your init.sqf.
Find
Code:
_id = player addEventHandler ["Respawn", {_id = [] spawn player_death;}];
and replace it with
Code:
_id = player addEventHandler ["Respawn", {_id = [] spawn player_death; _nul = [] execVM "playerspawn.sqf";}];
Then, Under _playerMonitor = .....
Add this
Code:
_nul = [] execVM "playerspawn.sqf";
and you are done, Thanks for Trying it out!
-BlurGaming.com