Advertisement
Guest User

Untitled

a guest
May 30th, 2015
233
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.10 KB | None | 0 0
  1. /*
  2.     File: fn_armjets.sqf
  3.     Author: RPGforYOU
  4.     Website: www.outlawed-veterans.com
  5.    
  6.     Description:
  7.     Add Ammo to specific jets.
  8. */
  9. private["_jet","_jetname","_action","_armamentcost"];
  10. _jet = (vehicle player);
  11. if (typeOf(_jet) == "I_Plane_Fighter_03_CAS_F") then {
  12. _jetname = "A-143 Buzzard";
  13. } else {
  14. _jetname = "error";
  15. };
  16. _armamentcost = 250000;
  17.  
  18. _action = [
  19.             format["Are you sure you want to arm your --- %1 --- It will cost you $%2 taken from your bank account!",_jetname,[_armamentcost] call life_fnc_numberText],
  20.             "Armament Service - Outlawed Veterans",
  21.             "ARM jet!",
  22.             "No."
  23.         ] call BIS_fnc_guiMessage;
  24. if(_action) then {
  25. //diag_log format["jet type: %1",_jet];
  26. //Add ammo types
  27. _jet addMagazineTurret ["2Rnd_LG_scalpel",[-1]];
  28. _jet addMagazineTurret ["2Rnd_GBU12_LGB_MI10",[-1]];
  29. //deducted money from bank account
  30. life_yy74fsd65f4 = life_yy74fsd65f4 - _armamentcost;
  31. hint format["Your %1 has been armed for: \n\n %2",_jetname,[_armamentcost] call life_fnc_numberText];
  32. } else {
  33.             hint"Okay sir/madam, maybe next time you feel the need for some more heavy armament!";
  34. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement