Advertisement
Guest User

Untitled

a guest
Aug 3rd, 2015
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.11 KB | None | 0 0
  1. /*
  2. File: fn_atmMenu.sqf
  3. Author: Bryan "Tonic" Boardwine
  4.  
  5. Description:
  6. Opens and manages the bank menu.
  7. */
  8. private["_display","_text","_units","_type"];
  9.  
  10. if(!life_use_atm) exitWith
  11. {
  12. hint "Weil du die Staatsbank ausgeraubt hast kannst du den Bankautomaten für 5 Minuten nicht benutzen.";
  13. };
  14.  
  15. if(!dialog) then
  16. {
  17. if(!(createDialog "Life_atm_management")) exitWith {};
  18. };
  19.  
  20. disableSerialization;
  21.  
  22. _display = findDisplay 2700;
  23. _text = _display displayCtrl 2701;
  24. _units = _display displayCtrl 2703;
  25.  
  26. lbClear _units;
  27. _text ctrlSetStructuredText parseText format["<img size='1.7' image='icons\bank.paa'/> $%1<br/><img size='1.6' image='icons\money.paa'/> $%2",[life_atmcash] call life_fnc_numberText,[life_cash] call life_fnc_numberText];
  28. player say3D "ATM_sound";
  29.  
  30. {
  31. if(alive _x) then
  32. {
  33. switch (side _x) do
  34. {
  35. case west: {_type = "Cop"};
  36. case civilian: {_type = "Civ"};
  37. case independent: {_type = "EMS"};
  38. };
  39. _units lbAdd format["%1 (%2)",_x getVariable["realname",name _x],_type];
  40. _units lbSetData [(lbSize _units)-1,str(_x)];
  41. };
  42. } foreach playableUnits;
  43.  
  44. lbSetCurSel [2703,0];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement