mirror of
https://github.com/EpochModTeam/Epoch.git
synced 2024-08-30 18:22:13 +00:00
15 lines
433 B
Plaintext
15 lines
433 B
Plaintext
private["_getCrypto"];
|
|
if !(isNil "EPOCH_takeCryptoLock") exitWith {};
|
|
EPOCH_takeCryptoLock = true;
|
|
if (!isNull _this) then {
|
|
if ((typeof _this) == "Land_MPS_EPOCH") then {
|
|
_getCrypto = _this getVariable["Crypto", 0];
|
|
[player, Epoch_personalToken, _this] remoteExec ["EPOCH_server_takeCrypto",2];
|
|
[format["You found %1 Krypto.", _getCrypto], 5] call Epoch_message;
|
|
};
|
|
};
|
|
[] spawn{
|
|
uiSleep 2;
|
|
EPOCH_takeCryptoLock = nil;
|
|
};
|