-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathCCdialog.sqf
47 lines (40 loc) · 1.36 KB
/
CCdialog.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
_art = _this select 0;
if !(ischief) exitwith {hintSilent "You are not the Chief Constable"};
if (_art == "CCdialog") then {
if (!(createDialog "CCdialog")) exitWith {hint "Dialog Error!";};
[2, 1, true, false] call DialogSpielerListe;
lbSetCurSel [1, 0];
[5] call GangList;
lbSetCurSel [5, 0];
_list = lbAdd [4, "Please select a reason"];
_list = lbAdd [4, "Tyres to be shot out"];
_list = lbAdd [4, "Air vehicle to be disabled"];
_list = lbAdd [4, "Raid Gang Area 1"];
_list = lbAdd [4, "Raid Gang Area 2"];
_list = lbAdd [4, "Raid Gang Area 3"];
lbSetCurSel [4, 0];
while {ctrlVisible 1006} do
{
sleep 0.3;
};
};
if ((_art == "MarLDialog") && !(mlaw)) then {
if (!(createDialog "MarLDialog")) exitWith {hint "Dialog Error!";};
_list = lbAdd [1,"Please select a reason"];
_list = lbAdd [1,"High Crime Rate"];
_list = lbAdd [1,"High Threat of Terrorism"];
_list = lbAdd [1,"War"];
lbSetCurSel [1, 0];
while {ctrlVisible 1106} do
{
sleep 0.3
};
};
if ((_art == "MarLDialog") && (mlaw)) then {
if (!(createDialog "ja_nein")) exitWith {hint "Dialog Error!"};
ctrlSetText [1,"Are you sure that you want to revoke Martial Law?"];
waitUntil{(not(ctrlVisible 1023))};
if (Antwort == 1) then {
format ["server globalChat ""Martial Law has been withdrawn"";mlaw = false"] call toClients;};
Antwort = 2;
};