Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "..\..\script_macros.hpp"
- /*
- File: fn_atmMenu.sqf
- Author: Bryan "Tonic" Boardwine
- Description:
- Opens and manages the bank menu.
- */
- private["_units","_type"];
- if(!life_use_atm) exitWith {
- hint format [localize "STR_Shop_ATMRobbed",(LIFE_SETTINGS(getNumber,"noatm_timer"))];
- };
- if(!dialog) then {
- if(!(createDialog "Life_atm_management")) exitWith {};
- };
- disableSerialization;
- _units = CONTROL(2700,2703);
- lbClear _units;
- CONTROL(2700,2701) ctrlSetStructuredText parseText format["<img size='1.7' image='icons\bank.paa'/> $%1<br/><img size='1.6' image='icons\money.paa'/> $%2",[BANK] call life_fnc_numberText,[CASH] call life_fnc_numberText];
- {
- _name = _x GVAR ["realname",name _x];
- if(alive _x && (!(EQUAL(_name,profileName)))) then {
- switch (side _x) do {
- case west: {_type = "Cop"};
- case civilian: {_type = "Civ"};
- case independent: {_type = "EMS"};
- };
- _units lbAdd format["%1 (%2)",_x GVAR ["realname",name _x],_type];
- _units lbSetData [(lbSize _units)-1,str(_x)];
- };
- } foreach playableUnits;
- lbSetCurSel [2703,0];
- if(isNil {(grpPlayer GVAR "gang_bank")}) then {
- (CONTROL(2700,2705)) ctrlEnable false;
- (CONTROL(2700,2706)) ctrlEnable false;
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement