Files
DayZ-Epoch/Server Files/MPMissions/DayZ_Epoch_11.Chernarus/rules.sqf
ebaydayz d13aafcd0c Add streamer mode game options setting
The chat list does not appear to be toggleable on the fly because it is
a display with no accessible controls. Giving it an idd and using
closeDisplay did not work. So it needs to be manually set off screen in
its config or covered up.
2016-10-19 15:49:30 -04:00

31 lines
1.1 KiB
Plaintext

private ["_messages","_timeout"];
waitUntil {uiSleep 1; !isNil ("Dayz_loginCompleted")};
_messages = [
["DayZ Epoch", "Welcome "+(name player)],
["World", worldName],
["Teamspeak", "some TS info"],
["Website/Forums", "some website info"],
["Server Rules", "Duping, glitching or using any<br />exploit will result in a<br />permanent ban."],
["Server Rules", "No talking in side."],
["Server Rules", "Hackers will be banned permanently<br />Respect others"],
["News", "Some random new info!<br />Random news<br />"]
];
_timeout = 5;
{
private ["_title","_content","_titleText"];
uiSleep 2;
_title = _x select 0;
_content = _x select 1;
_titleText = format[("<t font='TahomaB' size='0.40' 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;
uiSleep (_timeout * 1.1);
} forEach _messages;