Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "..\..\script_macros.hpp"
- /*
- File: ------------
- Author: ------
- Description:
- -------------
- */
- private ["_type","_varName","_displayName","_sideFlag","_price"];
- _type = _this select 3;
- if (!isClass (missionConfigFile >> "Licenses" >> _type)) exitWith {}; //Bad entry?
- _displayName = M_CONFIG(getText,"Licenses",_type,"displayName");
- _price = M_CONFIG(getNumber,"Licenses",_type,"price");
- _sideFlag = M_CONFIG(getText,"Licenses",_type,"side");
- _varName = LICENSE_VARNAME(_type,_sideFlag);
- [0] call SOCK_fnc_updatePartial;
- if (life_inv_kontrakt > 0) titleText[format [localize "STR_NOTF_B_1", call life_fnc_numberText],"PLAIN"];
- missionNamespace setVariable [_varName,true];
- if (_var isEqualTo 0) exitWith {_exit = true;};
- if (_var < (_x select 1)) exitWith {_exit = true;};
- [2] call SOCK_fnc_updatePartial;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement