Jump to content
  • 0

Help with ZSC 3.0


lucho

Question

How i can make that when you wanna open bank dialog  and any players  are  near  you, it will block action or you cant not system text (you cant open bank any players are neares)

 

 

Config file

// Objects that can hold money. Vehicles are added automaticly. Size of  money capacity is depended on ammount of magazines the object can hold.
ZSC_MoneyStorage = ["VaultStorage"];

 

 

 

 

 

 

 

 

Action

 

    if(_typeOfCursorTarget in ZSC_MoneyStorage && (player distance _cursorTarget < 5)) then {
        if (s_bank_dialog < 0) then {
                s_bank_dialog = player addAction ["Money Storage", "ZSC\actions\bank_dialog.sqf",_cursorTarget, 3, true, true, "", ""];    
        };
    } else {
         player removeAction s_bank_dialog;
        s_bank_dialog = -1;
    };

 

 

 

bank_dialog

 

if(DZE_ActionInProgress) exitWith { cutText [(localize "str_epoch_player_10") , "PLAIN DOWN"]; };
DZE_ActionInProgress = true;

private ["_dialog"];
ZSC_CurrentStorage = _this select 3;
_dialog = createDialog "BankDialog";
call BankDialogUpdateAmounts;

DZE_ActionInProgress = false;

 

 

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...