Advertisement
Guest User

fn_sellLicense.sqf

a guest
Jun 17th, 2016
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQL 0.75 KB | None | 0 0
  1. #include "..\..\script_macros.hpp"
  2.  
  3. /* 
  4. File: fn_sellLicense.sqf        
  5. Author: Bryan "Tonic" Boardwine
  6. Description:    Called when selling a license. May need to be revised.
  7. */
  8.  
  9. private["_type"];
  10. _type = SEL(_this,3);
  11. _price = M_CONFIG(getNumber,"Licenses",_type,"price");
  12. CALL life_fnc_licensePrice;
  13. _price = _price / 2;
  14. _license = [_type,0] CALL life_fnc_licenseType;
  15. //IF(life_cash < _price) exitWith {hint format[localize "STR_NOTF_NE_1",[_price] CALL life_fnc_numberText,_license SELECT 1];};
  16.  
  17. CASH = CASH + _price;
  18.  
  19. titleText[format[localize "STR_NOTF_ChopSoldCar", _license SELECT 1,[_price] CALL life_fnc_numberText],"PLAIN"];
  20. missionNamespace setVariable[(_license SELECT 0),FALSE];
  21. [1] CALL life_fnc_removeLicenses;
  22. SVAR_MNS [_varName,TRUE];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement