Advertisement
Guest User

Untitled

a guest
Nov 23rd, 2017
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. #include "..\..\script_macros.hpp"
  2. /*
  3. File: ------------
  4. Author: ------
  5.  
  6. Description:
  7. -------------
  8. */
  9. private ["_type","_varName","_displayName","_sideFlag","_price"];
  10. _type = _this select 3;
  11.  
  12. if (!isClass (missionConfigFile >> "Licenses" >> _type)) exitWith {}; //Bad entry?
  13. _displayName = M_CONFIG(getText,"Licenses",_type,"displayName");
  14. _price = M_CONFIG(getNumber,"Licenses",_type,"price");
  15. _sideFlag = M_CONFIG(getText,"Licenses",_type,"side");
  16. _varName = LICENSE_VARNAME(_type,_sideFlag);
  17.  
  18. [0] call SOCK_fnc_updatePartial;
  19.  
  20. if (life_inv_kontrakt > 0) titleText[format [localize "STR_NOTF_B_1", call life_fnc_numberText],"PLAIN"];
  21. missionNamespace setVariable [_varName,true];
  22. if (_var isEqualTo 0) exitWith {_exit = true;};
  23. if (_var < (_x select 1)) exitWith {_exit = true;};
  24.  
  25. [2] call SOCK_fnc_updatePartial;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement