Advertisement
Guest User

Untitled

a guest
Oct 27th, 2016
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.48 KB | None | 0 0
  1. #include "..\..\script_macros.hpp"
  2. /*
  3. File: fn_unimpound.sqf
  4. Author: Bryan "Tonic" Boardwine
  5.  
  6. Description:
  7. Yeah... Gets the vehicle from the garage.
  8. */
  9. private["_vehicle","_vid","_pid","_unit","_price"];
  10. disableSerialization;
  11. if(lbCurSel 2802 == -1) exitWith {hint localize "STR_Global_NoSelection"};
  12. _vehicle = lbData[2802,(lbCurSel 2802)];
  13. _vehicle = (call compile format["%1",_vehicle]) select 0;
  14. _vid = lbValue[2802,(lbCurSel 2802)];
  15. _pid = getPlayerUID player;
  16. _unit = player;
  17.  
  18. if(isNil "_vehicle") exitWith {hint localize "STR_Garage_Selection_Error"};
  19.  
  20.  
  21. _price = M_CONFIG(getNumber,"LifeCfgVehicles",_vehicleLife,"price");
  22. _storageFee = LIFE_SETTINGS(getNumber,"vehicle_four_multiplier ");
  23. _purchasePrice = _price * LIFE_SETTINGS(getNumber,"vehicle_purchase_multiplier_CIVILIAN");
  24. _price = _purchasePrice * _storageFee;
  25.  
  26. if(typeName life_fourriere_sp == "ARRAY") then {
  27. [_vid,_pid,life_fourriere_sp select 0,_unit,_price,life_fourriere_sp select 1] remoteExecCall ["TON_fnc_spawnVehicle",2];
  28. } else {
  29. if(life_fourriere_sp in ["medic_spawn_1","medic_spawn_2","medic_spawn_3"]) then {
  30. [_vid,_pid,life_fourriere_sp,_unit,_price] remoteExecCall ["TON_fnc_spawnVehicle",2];
  31.  
  32. } else {
  33. [_vid,_pid,(getMarkerPos life_fourriere_sp),_unit,_price,markerDir life_fourriere_sp] remoteExecCall ["TON_fnc_spawnVehicle",2];
  34. };
  35. };
  36.  
  37. hint localize "STR_Garage_SpawningVeh";
  38.  
  39. life_atmcash = life_atmcash - _price;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement