Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- File: fn_armjets.sqf
- Author: RPGforYOU
- Website: www.outlawed-veterans.com
- Description:
- Add Ammo to specific jets.
- */
- private["_jet","_jetname","_action","_armamentcost"];
- _jet = (vehicle player);
- if (typeOf(_jet) == "I_Plane_Fighter_03_CAS_F") then {
- _jetname = "A-143 Buzzard";
- } else {
- _jetname = "error";
- };
- _armamentcost = 250000;
- _action = [
- 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],
- "Armament Service - Outlawed Veterans",
- "ARM jet!",
- "No."
- ] call BIS_fnc_guiMessage;
- if(_action) then {
- //diag_log format["jet type: %1",_jet];
- //Add ammo types
- _jet addMagazineTurret ["2Rnd_LG_scalpel",[-1]];
- _jet addMagazineTurret ["2Rnd_GBU12_LGB_MI10",[-1]];
- //deducted money from bank account
- life_yy74fsd65f4 = life_yy74fsd65f4 - _armamentcost;
- hint format["Your %1 has been armed for: \n\n %2",_jetname,[_armamentcost] call life_fnc_numberText];
- } else {
- hint"Okay sir/madam, maybe next time you feel the need for some more heavy armament!";
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement