// DayZ Prison Detain/Release
// Created by Wiked Bubble
// Wiked Bubble, LevelGamers.net
Private ["_playerName","_humanity","_uid"];
_playerName = name player;
_humanity = player getVariable["humanity",0];
_uid = getPlayerUID player;
// If LG Council
if (_uid in masterUIDArray) then {
player setPosATL [3941.15,7859.58,2.3];
diag_log(format["RELEASED ADMIN BANDIT: %1 from Prison. HUMANITY: %2 UID: %3", _playerName, _humanity, _uid]);
} else {
disableUserInput true;
//Check If Bandit and not LG Council
//Release and Drop from 3.2m
if ((not (_uid in masterUIDArray)) and (_humanity <= 0)) then {
hint parseText format ["
<t size='.95' font='Bitstream' align='Center' color='#F10B0B'>--------------------------------</t><br/>
<t size='1' font='Bitstream' align='left' color='#4EDCFF'>You are in Prison...</t><br/>
<t size='1' font='Bitstream' align='left' color='#4EDCFF'>For trespassing...</t><br/>
<t size='1' font='Bitstream' align='left' color='#4EDCFF'>You Must Wait...</t><br/>
<t size='1' font='Bitstream' align='left' color='#4EDCFF'>about a minute...</t><br/>
<t size='1' font='Bitstream' align='left' color='#4EDCFF'>Bandits are not Welcome..</t><br/><br/>
<t size='1' font='Bitstream' align='left' color='#DF0101'>Humanity: </t><t size='1.15' font='Bitstream' align='right'>%1</t><br/>",
(player getVariable['humanity', 0])
];
sleep 45;
disableUserInput false;
player setPosATL [6539.1,6084.17,3.2];
diag_log(format["RELEASED BANDIT: %1 from Prison. HUMANITY: %2 UID: %3", _playerName, _humanity, _uid]);
terminate detained;
} else {
//If not LG Council just move
if (not (_uid in masterUIDArray))then {
hint parseText format ["
<t size='.95' font='Bitstream' align='Center' color='#F10B0B'>--------------------------------</t><br/>
<t size='1' font='Bitstream' align='left' color='#4EDCFF'>You are in Prison.</t><br/>
<t size='1' font='Bitstream' align='left' color='#4EDCFF'>For trespassing...</t><br/>
<t size='1' font='Bitstream' align='left' color='#4EDCFF'>You Must Wait...</t><br/>
<t size='1' font='Bitstream' align='left' color='#4EDCFF'>about a minute...</t><br/>
<t size='1' font='Bitstream' align='left' color='#4EDCFF'>It could be worse.</t><br/>
<t size='1' font='Bitstream' align='left' color='#4EDCFF'>If you're a Bandit.</t><br/><br/>
<t size='1' font='Bitstream' align='left' color='#DF0101'>Humanity: </t><t size='1.15' font='Bitstream' align='right'>%1</t><br/>",
(player getVariable['humanity', 0])
];
sleep 45;
disableUserInput false;
player setPosATL [6539.1,6084.17,0.001];
diag_log(format["RELEASED PLAYER: %1 HUMANITY: %2 UID: %3", _playerName, _humanity, _uid]);
terminate detained;
};
};
};