Jump to content
  • 0

Welcome Server Messages?


Disturbed2015

Question

This is my welcome message
 

 

/* *********************************************************************** */
 
/* =======================================================================
/* SCRIPT NAME: Server Intro Credits Script by IT07
/* SCRIPT VERSION: v1.3.5 BETA
/* Credits for original script: Bohemia Interactive http://bistudio.com
/* =======================================================================
 
/* *********************************************************************** */
 
// ========== SCRIPT CONFIG ============
 
_onScreenTime = 10; //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!
 
// ==== HOW TO CUSTOMIZE 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.
 
// For further explanation of it all, I included some info in the code.
 
// == HOW TO CUSTOMIZE THE COLOR OF CREDITS ==
// Find line **** and look for: color='#f2cb0b'
// The numbers and letters between the 2 '' is the HTML color code for a certain yellow.
// If you want to change the color of the text, search on google for HTML color codes and pick the one your like.
// Then, replace the existing color code for the code you would like to use instead. Don't forget the # in front of it.
// HTML Color Codes Examples:
// #FFFFFF (white)
// #000000 (black) No idea why you would want black, but whatever
// #C80000 (red)
// #009FCF (light-blue)
// #31C300 (Razer Green)
// #FF8501 (orange)
// ===========================================
 
// SCRIPT START
 
waitUntil {!isNil "dayz_animalCheck"};
 
sleep 60; //Wait in seconds before the credits start after player IS ingame
 
_role1 = "Welcome to";
_role1names = ["Disturbed Gaming];
_role2 = "Website";
_role2names = ["disturbedgaming1.enjin.com/"];
_role3 = "Server Admins 1";
_role3names = ["Joe - Mr.GoodTrust","Rob - Stallem","Digi-"];
_role4 = "Teamspeak 3";
_role4names = ["Coming Soon!"];
_role5 = "Server Features 1";
_role5names = ["Currency & Banking", "Deploy Vehicle", "Self BB", "Tow/Lift" ,"DAZI/WAI/DZMS", "JAEM"];
_role6 = "Server Features 2";
_role6names = ["Bandit HQ's"];
_role7 = "Server Features 3";
_role7names = ["Service Points with Rearm+","More To Come Soon""];
_role8 = "Server Rules";
_role8names = ["No PVP","No Stealing","No Trespassing at Bases","No Hacking","No Cheating","No Griefing","No Profanity","No Mass Building or Vehicle Destruction!"];
 
{
sleep 2;
_memberFunction = _x select 0;
_memberNames = _x select 1;
_finalText = format ["<t size='0.40' color='#f2cb0b' align='right'>%1<br /></t>", _memberFunction];
_finalText = _finalText + "<t size='0.70' color='#FFFFFF' align='right'>";
{_finalText = _finalText + format ["%1<br />", _x]} count _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);
} count [
//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],
[_role6, _role6names],
[_role7, _role7names],
[_role8, _role8names]
];
// Had a timing issue with freindlies being set so I moved into here which is executed after the flayer is in game.
 
I have it in a custom folder.  
 
Line:

[] execVM "don\Server_WelcomeCredits.sqf";
 
 And seen somehwere on the forums about

InfiStar - /*  Use cut-scene ?       */ _UCS =  true; /* true or false */ /* dynamicText ~ often colored, animated or used in credits */
 
I have CutScene on and the welcome credits still aren't working. Or did I miss something?

 

Link to comment
Share on other sites

7 answers to this question

Recommended Posts

  • 0

Change these type of lines : 

_role8names = ["No PVP","No Stealing","No Trespassing at Bases","No Hacking","No Cheating","No Griefing","No Profanity","No Mass Building or Vehicle Destruction!"];

to : 

_role8names = ["No PVP,No Stealing,No Trespassing at Bases,No Hacking,No Cheating,No Griefing,No Profanity,No Mass Building or Vehicle Destruction!"];

Too many """"""""""""". See if that helps.

Link to comment
Share on other sites

  • 0

Too many """"""""""""". See if that helps.

That's not how any of this works mate. An array consists of elements, each element was a string._array = ["string","string2","string3"]; is correct syntax. What you did is created array with single string element... Might as well get rid of both square brackets and commas as they would make no difference.

 

@Disturbed2015:

Get yourself SQF syntax higlighter for notepad++. It will help you pin down issues by adding colors to all variables and values. I loaded your script and right away colors went batshit crazy.

You were missing few quotation marks as you were editing file, be more careful:

_role1names = ["Disturbed Gaming]; //missing " from element

_role7names = ["Service Points with Rearm+","More To Come Soon""]; // extra " at the end

Rest of the script looks fine.

Link to comment
Share on other sites

  • 0

That's not how any of this works mate. An array consists of elements, each element was a string._array = ["string","string2","string3"]; is correct syntax. What you did is created array with single string element... Might as well get rid of both square brackets and commas as they would make no difference.

 

@Disturbed2015:

Get yourself SQF syntax higlighter for notepad++. It will help you pin down issues by adding colors to all variables and values. I loaded your script and right away colors went batshit crazy.

You were missing few quotation marks as you were editing file, be more careful:

_role1names = ["Disturbed Gaming]; //missing " from element

_role7names = ["Service Points with Rearm+","More To Come Soon""]; // extra " at the end

Rest of the script looks fine.

I use Notepad++, didn't know about the SQF Syntax highlight, I'll get that. And thanks

Link to comment
Share on other sites

  • 0

Here is another welcome credits you can use. I did not make this. Credit goes to the real maker.

 

Server_WelcomeCredits.sqf

private ["_messages", "_timeout"];


waitUntil { alive player };
sleep 2;
waituntil {!isnull (finddisplay 46)};
sleep 10; //Wait in seconds before the credits start after player loads into the game


_messages = [
        ["Welcome To", "Disturbed Gaming<br />"+(name player)],
        ["Admins", "Joe<br />Mr.GoodTrust<br />Rob<br />Stallem<br />Digi"],
        ["Teamspeak", "Coming Soon!"],
        ["Website", "disturbedgaming1.enjin.com"],
        ["Server Rules", "No PVP<br />No Stealing<br />No Trespassing at Bases<br />No Hacking<br />No Cheating<br />No Mass Building<br />No Vehicle Destruction"],
        ["Side Chat Rules", "No Profanity<br />No Griefing<br  />No racism or Homophobia"],
        ["Server Features 1", "Currency & Banking<br />Deploy Vehicle<br />Self BB<br />Tow/Lift<br />DAZI/WAI/DZMS<br />JAEM"],
	["Server Features 2", "Bandit HQ's"],
	["Server Features 3", "Service Points with Rearm+<br />More To Come Soon"],
	["Thank You", "For Playing On<br />Disturbed Gaming<br />"+(name player)]
];

{
        private ["_title", "_content", "_titleText"];
        sleep 2;
        _title = _x select 0;
        _content = _x select 1;
        _titleText = format[("<t font='TahomaB' size='0.50' color='#a81e13' align='right' shadow='1' shadowColor='#000000'>%1</t><br /><t shadow='1'shadowColor='#000000' font='TahomaB' size='0.60' color='#FFFFFF' align='right'>%2</t>"), _title, _content];
        [
                _titleText,
                [safezoneX + safezoneW - 0.8,0.50],     //DEFAULT: 0.5,0.35
                [safezoneY + safezoneH - 0.8,0.7],      //DEFAULT: 0.8,0.7
                _timeout,
                0.5
        ] spawn BIS_fnc_dynamicText;
        sleep (_timeout * 1.1);
} forEach _messages; 

 

Bottom of the init.sqf or if you got ESS put at the bottom of start.sqf

execVM "Path\To\Server_WelcomeCredits.sqf";

I think they look a lot better. Welcomes them with there name and easier to use i think.

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
  • Advertisement
  • Discord

×
×
  • Create New...