Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "..\..\script_macros.hpp"
- /*
- File: fn_sellLicense.sqf
- Author: Bryan "Tonic" Boardwine
- Description: Called when selling a license. May need to be revised.
- */
- private["_type"];
- _type = SEL(_this,3);
- _price = M_CONFIG(getNumber,"Licenses",_type,"price");
- CALL life_fnc_licensePrice;
- _price = _price / 2;
- _license = [_type,0] CALL life_fnc_licenseType;
- //IF(life_cash < _price) exitWith {hint format[localize "STR_NOTF_NE_1",[_price] CALL life_fnc_numberText,_license SELECT 1];};
- CASH = CASH + _price;
- titleText[format[localize "STR_NOTF_ChopSoldCar", _license SELECT 1,[_price] CALL life_fnc_numberText],"PLAIN"];
- missionNamespace setVariable[(_license SELECT 0),FALSE];
- [1] CALL life_fnc_removeLicenses;
- SVAR_MNS [_varName,TRUE];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement