-
Notifications
You must be signed in to change notification settings - Fork 3
/
commsMP.sqf
60 lines (55 loc) · 1.81 KB
/
commsMP.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
if (!hasInterface) exitWith {};
if ((side player != buenos) and (side player != civilian)) exitWith {};
private ["_unit","_tipo","_texto","_display","_setText"];
_unit = _this select 0;
_tipo = _this select 1;
_texto = _this select 2;
if (_tipo == "sideChat") then
{
_unit sideChat format ["%1", _texto];
};
if (_tipo == "hint") then {hint format ["%1",_texto]};
if (_tipo == "hintCS") then {hintC format ["%1",_texto]};
if (_tipo == "globalChat") then
{
_unit globalChat format ["%1", _texto];
};
if (_tipo == "income") then
{
waitUntil {sleep 0.2; !incomeRep};
incomeRep = true;
//playSound3D ["a3\sounds_f\sfx\beep_target.wss", player];
playSound "3DEN_notificationDefault";
//[_texto,0.8,0.5,5,0,0,2] spawn bis_fnc_dynamicText;
[_texto, [safeZoneX + (0.8 * safeZoneW), (0.2 * safeZoneW)], 0.5, 5, 0, 0, 2] spawn bis_fnc_dynamicText;
incomeRep = false;
[] call statistics;
};
if (_tipo == "countdown") then
{
_texto = format ["Time Remaining: %1 secs",_texto];
hint format ["%1",_texto];
};
if (_tipo == "taxRep") then
{
incomeRep = true;
playSound "3DEN_notificationDefault";
//playSound3D ["a3\sounds_f\sfx\beep_target.wss", player];
//[_texto,0.8,0.5,5,0,0,2] spawn bis_fnc_dynamicText;
[_texto, [safeZoneX + (0.8 * safeZoneW), (0.2 * safeZoneW)], 0.5, 5, 0, 0, 2] spawn bis_fnc_dynamicText;
sleep 10;
incomeRep = false;
[] call statistics;
};
if (_tipo == "tier") then
{
waitUntil {sleep 0.2; !incomeRep};
incomeRep = true;
//playSound3D ["a3\sounds_f\sfx\beep_target.wss", player];
playSound "3DEN_notificationDefault";
//[_texto,0.8,0.5,5,0,0,2] spawn bis_fnc_dynamicText;
_texto = format ["War Level Changed<br/><br/>Current Level: %1",tierWar];
[_texto, [safeZoneX + (0.8 * safeZoneW), (0.2 * safeZoneW)], 0.5, 5, 0, 0, 2] spawn bis_fnc_dynamicText;
incomeRep = false;
[] call statistics;
};