mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-21 10:56:29 +03:00
Add files via upload
This commit is contained in:
20
SQF/dayz_code/actions/zsc/atmDialog.sqf
Normal file
20
SQF/dayz_code/actions/zsc/atmDialog.sqf
Normal file
@@ -0,0 +1,20 @@
|
||||
if (dayz_actionInProgress) exitWith {localize "str_player_actionslimit" call dayz_rollingMessages;};
|
||||
dayz_actionInProgress = true;
|
||||
|
||||
private ["_typeOf"];
|
||||
|
||||
player setVariable["isBusy",true,true];
|
||||
_typeOf = typeOf (_this select 3);
|
||||
|
||||
if !(_typeOf in ZSC_bankObjects || _typeOf in ZSC_bankTraders) exitWith {
|
||||
dayz_actionInProgress = false;
|
||||
player setVariable["isBusy",false,true];
|
||||
format[localize "STR_CL_ZSC_BANKING_NOT_AVAIL",_typeOf] call dayz_rollingMessages;
|
||||
};
|
||||
|
||||
createDialog "atmDialog";
|
||||
call AtmDialogUpdateAmounts;
|
||||
|
||||
waitUntil {!dialog};
|
||||
|
||||
dayz_actionInProgress = false;
|
||||
Reference in New Issue
Block a user