-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.sqf
68 lines (57 loc) · 1.2 KB
/
init.sqf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
/*
###MISSION_VERSION 1.1
*/
_d = execVM "scripts\debugRPT.sqf";
waitUntil {scriptDone _d};
_p = execVM "params.sqf";
waitUntil {scriptDone _p};
_a = TOUR_Core execVM "a2s_multitask.sqf";
waitUntil {scriptDone _a};
TOUR_HQ = [WEST, "HQ"];
{
_x setVariable ["BIS_noCoreConversations",true];
} forEach allUnits;
if (isServer) then
{
execVM "scripts\control\tasks.sqf";
execVM "spawn.sqf";
};
//player only
if (!isDedicated) then
{
[] call A2S_tasksSync;
#include "about.hpp"
doStop player;
sleep 2;
if (alive player) then
{
_date = date;
_year = _date select 0;
_month = _date select 1;
_day = _date select 2;
_hour = _date select 3;
_min = _date select 4;
_text_date = [];
if (_min < 10) then
{
_text_date = format ["%1-%2-%3 %4h0%5m", _month, _day, _year, _hour, _min];
}
else
{
if (_min == 60) then
{
_hour = _hour + 1;
_min = 0;
_text_date = format ["%1-%2-%3 %4h0%5m", _month, _day, _year, _hour, _min];
}
else
{
_text_date = format ["%1-%2-%3 %4h%5m", _month, _day, _year, _hour, _min];
};
};
_text_1 = "US Embassy";
_text_2 = "Altis";
sleep 2;
[_text_1, _text_date, _text_2] execVM "scripts\control\infoText.sqf";
};
};