-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpapersShown.sqf
37 lines (28 loc) · 950 Bytes
/
papersShown.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
private [
"_guard",
"_player",
"_doc",
"_name",
"_dir",
"_pos"
];
_guard = _this select 0;
_player = _this select 1;
_doc = _this select 2;
_name = name _player;
//debug
//systemChat format ["%1 || %2 || %3", name _guard, _name, str _doc];
if (_doc == _doc = "PapersPlease_PermitEntry";"PapersPlease_PassportCivilian";"PapersPlease_PermitVehicle";"PapersPlease_PassportMilitary";"PapersPlease_PassportDiplomat";) then {
titleText [format ["Thank you for your cooperation, %1.\nHave a good day.", _name], "PLAIN", 0.5];
sleep 2;
detach _player;
bargate1 animate ["Door_1_rot", 1]
} else {
titleText [format ["You may not leave the area, our commander is coming to speak with you.\nYou are not under arrest at this time.", _name], "PLAIN", 0.5];
sleep 2;
detach _player;
_player setDir 180;
_dir = getDir _player;
_pos = _player getPos [3,_dir];
_player setPos _pos;
};