Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.79 KB | None | 0 0
  1. //Written by CMC. Smith for Arma Roleplay! - Thanks Steve from ILG for the refrence points
  2. while {true} do
  3. {
  4. uiSleep 120;
  5. _civs = 0;
  6. _Safehousearray = ["SafehouseMissionMain","SafehouseMission2"];
  7. _SafehouseSelection = _Safehousearray call bis_fnc_selectrandom;
  8. ["Quick! Civilians! Arm up and work together!",5,"red"] call A3L_Fnc_Msg;
  9. if (_SafehouseSelection == "SafehouseMissionMain") then {
  10. [{["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;
  11. }
  12. else
  13. {
  14. [{["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;};
  15. [{["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;
  16. [{["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;
  17. uiSleep 300;
  18.  
  19. if ((((side _x) == CIVILIAN) && isPlayer _x)) then {
  20. if ((_x distance (getMarkerPos _SafehouseSelection)) <= 200) then {
  21. _civsOnScene = _civsOnScene + 1;};};
  22.  
  23. 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;
  24. }
  25. else
  26. {
  27. _AreaMarker = createMarker ["AreaOrKillingSafehouse",getMarkerPos _SafehouseSelection];
  28. _AreaMarker setMarkerText "ELLIPSE";
  29. _AreaMarker setMarkerSize [200,200];
  30. _AreaMarker setMarkerColor "ColorRed";
  31. [] spawn life_fnc_copnotify
  32. [1800] execVM "timer.sqf"
  33. [{["The cops have been notified!",5,"blue"] call A3L_Fnc_Msg;},"BIS_fnc_spawn",true,true] call BIS_fnc_MP;
  34. [{["Defend the Safehouse with your life!",5,"red"] call A3L_Fnc_Msg;},"BIS_fnc_spawn",true,true] call BIS_fnc_MP;
  35. _Server_Counter = 0;
  36. while {true} do {
  37. _civsOnScene = 0;
  38. if ((((side _x) == CIVILIAN) && isPlayer _x)) then {
  39. if ((_x distance (getMarkerPos _SafehouseSelection)) <= 200) then {
  40. _civsOnScene = _civsOnScene + 1;};};
  41. 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;};
  42. if (playerside == west) then {
  43. [{["Well done! Threat eliminated!",5,"green"] call A3L_Fnc_Msg;},"BIS_fnc_spawn",true,true] call BIS_fnc_MP;
  44. [{["Spend it wisely!",5,"green"] call A3L_Fnc_Msg;},"BIS_fnc_spawn",true,true] call BIS_fnc_MP;
  45. life_atmcash = life_atmcash + 100000;};
  46. if (playerside == civilian) then {
  47. [{["Shit! The cops took us all out.",5,"red"] call A3L_Fnc_Msg;},"BIS_fnc_spawn",true,true] call BIS_fnc_MP;
  48. [{["Better luck next time....",5,"red"] call A3L_Fnc_Msg;},"BIS_fnc_spawn",true,true] call BIS_fnc_MP;};
  49. deleteMarker _AreaMarker;};
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement