Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Written by CMC. Smith for Arma Roleplay! - Thanks Steve from ILG for the refrence points
- while {true} do
- {
- uiSleep 120;
- _civs = 0;
- _Safehousearray = ["SafehouseMissionMain","SafehouseMission2"];
- _SafehouseSelection = _Safehousearray call bis_fnc_selectrandom;
- ["Quick! Civilians! Arm up and work together!",5,"red"] call A3L_Fnc_Msg;
- if (_SafehouseSelection == "SafehouseMissionMain") then {
- [{["Go to Safehouse #1 and fend off the cops! Make sure you go to the correct one!",5,"green"] call A3L_Fnc_Msg;},"BIS_fnc_spawn",true,true] call BIS_fnc_MP;
- }
- else
- {
- [{["Go to Safehouse #2 and fend off the cops! Make sure you go to the correct one!",5,"green"] call A3L_Fnc_Msg;},"BIS_fnc_spawn",true,true] call BIS_fnc_MP;};
- [{["Hold it for 30 minutes and you all get $350,000. (Providing you are in the vicinity!)",5,"red"] call A3L_Fnc_Msg;},"BIS_fnc_spawn",true,true] call BIS_fnc_MP;
- [{["You have 5 minutes to get armed and reach the Safehouse!",5,"red"] call A3L_Fnc_Msg;},"BIS_fnc_spawn",true,true] call BIS_fnc_MP;
- uiSleep 300;
- if ((((side _x) == CIVILIAN) && isPlayer _x)) then {
- if ((_x distance (getMarkerPos _SafehouseSelection)) <= 200) then {
- _civsOnScene = _civsOnScene + 1;};};
- if (_civsOnScene == 0) thenif (_civsOnScene == 0) then{[{["Sorry, No one made it on scene!",5,"red"] call A3L_Fnc_Msg;},"BIS_fnc_spawn",true,true] call BIS_fnc_MP;
- }
- else
- {
- _AreaMarker = createMarker ["AreaOrKillingSafehouse",getMarkerPos _SafehouseSelection];
- _AreaMarker setMarkerText "ELLIPSE";
- _AreaMarker setMarkerSize [200,200];
- _AreaMarker setMarkerColor "ColorRed";
- [] spawn life_fnc_copnotify
- [1800] execVM "timer.sqf"
- [{["The cops have been notified!",5,"blue"] call A3L_Fnc_Msg;},"BIS_fnc_spawn",true,true] call BIS_fnc_MP;
- [{["Defend the Safehouse with your life!",5,"red"] call A3L_Fnc_Msg;},"BIS_fnc_spawn",true,true] call BIS_fnc_MP;
- _Server_Counter = 0;
- while {true} do {
- _civsOnScene = 0;
- if ((((side _x) == CIVILIAN) && isPlayer _x)) then {
- if ((_x distance (getMarkerPos _SafehouseSelection)) <= 200) then {
- _civsOnScene = _civsOnScene + 1;};};
- if (_civsOnScene == 0) exitWith {[{["No civilians present in the safehouse! Cops have successfully secured the area!",5,"red"] call A3L_Fnc_Msg;},"BIS_fnc_spawn",true,true] call BIS_fnc_MP;};
- if (playerside == west) then {
- [{["Well done! Threat eliminated!",5,"green"] call A3L_Fnc_Msg;},"BIS_fnc_spawn",true,true] call BIS_fnc_MP;
- [{["Spend it wisely!",5,"green"] call A3L_Fnc_Msg;},"BIS_fnc_spawn",true,true] call BIS_fnc_MP;
- life_atmcash = life_atmcash + 100000;};
- if (playerside == civilian) then {
- [{["Shit! The cops took us all out.",5,"red"] call A3L_Fnc_Msg;},"BIS_fnc_spawn",true,true] call BIS_fnc_MP;
- [{["Better luck next time....",5,"red"] call A3L_Fnc_Msg;},"BIS_fnc_spawn",true,true] call BIS_fnc_MP;};
- deleteMarker _AreaMarker;};
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement