Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private["_chocnukez","_NearTraders","_vehicle","_inVehicle","_hasMoney","_position"];
- _chocnukez = 0;
- _NearTraders = count nearestObjects [player, ["HeliHCivil","HeliHEmpty"], 1500];
- _vehicle = vehicle player;
- _inVehicle = (_vehicle != player);
- if (_inVehicle) exitWith {
- systemChat ("You cannot call an air strikewhile in a vehicle!");
- };
- if (_NearTraders > 1) exitWith {
- systemChat ("You cannot call an air strike near a trader!");
- };
- _hasMoney = player getVariable["cashMoney",0];
- if (_hasMoney < _chocnukez) then {
- systemChat(format["Air Strike cost 1.5million - You dont have enough - Sorry!"]);
- breakOut "exit";
- };
- _cnt =05;
- for "_i" from 1 to 05 do
- {
- systemChat(format ["Calling in an Air Strike in %1s - Move to cancel",_cnt]);
- if((player distance _position) > 1) then {
- systemChat("Air Strike Canceled");
- breakOut "exit";
- };
- sleep 1;
- _cnt = _cnt - 1;
- };
- if (!([player, _chocnukez] call SC_fnc_removeCoins)) then {
- systemChat(format["Air Strike cost 1.5million - You dont have enough - Sorry!"]);
- breakOut "exit";
- } else {
- systemChat(format["You've paid 1.5million - Air Strike called! Get out! NOW!!"]);
- };
- [] spawn {
- private["_veh","_pos","_var","_num","_hgh"];
- _pos = (position player);
- cutText["Air Strike Incoming! Take Shelter!","PLAIN"];
- sleep 30;
- cutText["Air Strike Inbound!!!","PLAIN"];
- _var = 500;
- _num = 15 + (random 15);
- for "_i" from 0 to _num do {
- _hgh = 300 + (random 10);
- _veh = "Bo_GBU12_LGB" createvehicle [(_pos select 0) + (random _var) - _var,(_pos select 1) + (random _var) - _var, _hgh];
- _veh setVariable["ObjectID","1",true];
- _veh setVariable["ObjectUID","1",true];
- player reveal _veh;
- sleep (random 1);
- }
- };
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement