2016-09-01 00:29:08 +00:00
|
|
|
//[[[cog import generate_private_arrays ]]]
|
|
|
|
private ["_getCrypto"];
|
|
|
|
//[[[end]]]
|
2015-09-14 20:55:36 +00:00
|
|
|
if !(isNil "EPOCH_takeCryptoLock") exitWith {};
|
|
|
|
EPOCH_takeCryptoLock = true;
|
|
|
|
if (!isNull _this) then {
|
2016-08-08 17:12:20 +00:00
|
|
|
_getCrypto = _this getVariable["Crypto", 0];
|
|
|
|
if (_getCrypto > 0) then {
|
2015-12-23 17:38:11 +00:00
|
|
|
[player, Epoch_personalToken, _this] remoteExec ["EPOCH_server_takeCrypto",2];
|
2018-08-16 14:24:16 +00:00
|
|
|
[format["You found %1 Crypto", _getCrypto], 5] call Epoch_message;
|
2016-08-08 19:24:47 +00:00
|
|
|
} else {
|
2018-08-16 14:24:16 +00:00
|
|
|
["No Crypto found", 5] call Epoch_message;
|
2015-09-14 20:55:36 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
[] spawn{
|
|
|
|
uiSleep 2;
|
|
|
|
EPOCH_takeCryptoLock = nil;
|
2015-12-23 17:38:11 +00:00
|
|
|
};
|