Jump to content

[RELEASE] Welcome Messages v2.1 | Intro Music | Easy Config


Gr8

Recommended Posts

works well, thank you

 

Out of interest, whats the cords to get the text on the far right like in the video, the default cords leave the text just to the left of the player

 

That video was made with the original version of this script, which I'm still using. I tried the newest version and the credits didn't show up so I went back to the old version since it worked fine. This is the code I'm using:

 

// FILENAME: server_WelcomeCredits.sqf

// =====
// SCRIPT NAME: Server Intro Credits Script by IT07
// SCRIPT VERSION: v1.3.7 BETA
// Credits for original script: Bohemia Interactive http://bistudio.com
 
// ========== SCRIPT CONFIG ============
_onScreenTime = 6; //how long one role should stay on screen. Use value from 0 to 10 where 0 is almost instant transition to next role
//NOTE: Above value is not in seconds. It is percentage. Default: 6
 
// ==== CUSTOMIZING THE CREDITS ===
// If you want more or less credits on the screen, you have to add/remove roles.
// Watch out though, you need to make sure BOTH role lists match eachother in terms of amount.
// Just take a good look at the _role1 and the rest and you will see what I mean.
 
// == CUSTOMIZING TEXT COLOR ==
// Find line 49 and look for: color='#f2cb0b'
// #f2cb0b is the HTML color code for the text. As well as #FFFFFF in the row below it.
// Find the color code you want here: http://html-color-codes.info
// =====
 
// ==== SCRIPT START ====
sleep 15; //Wait in seconds before the credits start after player IS ingame
 
_role1 = "Welcome to";
_role1names = ["Killin Zedz Epoch Altis"];
_role2 = "Website";
_role2names = ["KillinZedz.net"];
_role3 = "Teamspeak";
_role3names = ["ts3.killinzedz.net"];
_role4 = "Admin contact";
_role4names = ["[email protected]"];
_role5 = "Server Hosted by";
_role5names = ["VertHosting"];
 
{
sleep 2;
_memberFunction = _x select 0;
_memberNames = _x select 1;
_finalText = format ["<t size='0.60' color='#f2cb0b' align='right'>%1<br /></t>", _memberFunction];
_finalText = _finalText + "<t size='0.75' color='#FFFFFF' align='right'>";
{_finalText = _finalText + format ["%1<br />", _x]} forEach _memberNames;
_finalText = _finalText + "</t>";
_onScreenTime + (((count _memberNames) - 1) * 0.5);
[
_finalText,
[safezoneX + safezoneW - 0.8,0.50], //DEFAULT: 0.5,0.35
[safezoneY + safezoneH - 0.8,0.7], //DEFAULT: 0.8,0.7
_onScreenTime,
0.5
] spawn BIS_fnc_dynamicText;
sleep (_onScreenTime);
} forEach [
//The list below should have exactly the same amount of roles as the list above
[_role1, _role1names],
[_role2, _role2names],
[_role3, _role3names],
[_role4, _role4names],
[_role5, _role5names] //make SURE the last one here does NOT have a , at the end
];

Link to comment
Share on other sites

Hey Guys...

where can i found the Init.sqf ?

 

in the a3_epoch_server.pbo?

 

no

just go into your MP Missions folder and select epoch.altis/chernarus/stratis which ever map you use.

 

unpack it so you see your description.ext + mission.sqm

 

right click and create new .txt file called init and rename the txt to sqf so your file will be called init.sqf and that should work

 

if you dont see file extensions just create a .txt file and call it anything....

 

go into it and type a random word then press save as>>>name init.sqf and in the drop down box select all files and this will make your init.sqf

Link to comment
Share on other sites

 

That video was made with the original version of this script, which I'm still using. I tried the newest version and the credits didn't show up so I went back to the old version since it worked fine. This is the code I'm using:

 

Any errors? Just dont apear at all? what about the music

Link to comment
Share on other sites

One thing I have understood that in other works and not others that become it;
On the server I tried many times not become anything in epoch mod tried and A3Wasteland_v1.0b.Altis nor there works but wasteland and can not work because some files are different as
waitUntil {! isNuLL (uiNameSpace getVariable ["EPOCH_loadingScreen", displayNull])};
waitUntil {isNuLL (uiNameSpace getVariable ["EPOCH_loadingScreen", displayNull])};

if someone can help me please.
And the other thing I've seen I do not know if I say correctly that the upload from your home server which is easy, and if you buy server (Nitrado) like me is very difficult. Do not tell for help on the forum is all German and I do not know why not help.
  Sorry for my english google translation

Link to comment
Share on other sites

I get confused with the various exceptions, what exactly do I need to alter to not get this:

28.12.2014 16:24:30: sendjes (192.168.1.2:2316) xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx - #20 "#line 1 "mpmissions\__CUR_MP.Chernarus\init.sqf"

[] execVM "custom\welcome.sqf";"

?

Link to comment
Share on other sites

I get confused with the various exceptions, what exactly do I need to alter to not get this:

28.12.2014 16:24:30: sendjes (192.168.1.2:2316) xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx - #20 "#line 1 "mpmissions\__CUR_MP.Chernarus\init.sqf"

[] execVM "custom\welcome.sqf";"

?

Your question was answered on the first page, see

Link to comment
Share on other sites

Hey again...

 

the messages works fine but the sound did not play..

I got this after spawn on my server "Sound intro not found"


 my description.ext looks like this

 

 

 
wreckManagerMode = 1;
wreckLimit = 2;
wreckRemovalMinTime = 60;
wreckRemovalMaxTime = 360;
 
class CfgRemoteExecCommands {};
 
class cfgSound
{
    class intro
    {
        name = "intro";
        sound[] = {"custom\intro.ogg", db+1,1};
    };
};
 

 

 

and my welcome.sqf


playSound "intro"; // This calls the code inside of description.ext //

 

 

 

i have put my intro.ogg into the custom folder.


Whats wrong?

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Advertisement
×
×
  • Create New...