Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ERIE COUNTY LIFE - CAPTURABLE AREAS BY GEORGE MATTHEWS
- // ERIECOUNTYLIFE.ENJIN.COM
- // STEAMCOMMUNITY.COM/ID/URGAHDEFLURBA IS GEORGE'S STEAM
- // PLEASE CONTACT BEFORE USING THIS SCRIPT
- // SCRIPT ORIGINAL AND WRITTEN FOR ERIE COUNTY LIFE
- // PROTECTED BY BOHEMIA CONTENT CREATOR PROTECTION OR SOMETHING LIKE THAT
- // George's Backend Variables
- contestor = profileName;
- if(side player == west) then {contestor = "Erie County Sheriff's Office"};
- proofCheck = "Empty";
- _area = area1;
- _areaowner = ugandaOccupied;
- _handWeapon = currentWeapon player;
- _cops = (west countSide playableUnits);
- // George's Pre-Capture Checks
- if(ugandaOccupied == contestor) exitWith {hint "You already occupy Emita Castle"};
- if(_handWeapon == "") exitWith {hint "Sorry, You must be armed to capture the castle!"};
- if(side player == independent) exitWith {hint "Medical Services cannot intervene in gang issues!"};
- if(_cops < 2) exitWith {hint "You are not allowed to capture Emita Castle with less than 2 officers online!"};
- _cocker = true;
- _capturer = player;
- _kysyeah = true;
- disableSerialization;
- 5 cutRsc ["life_progress","PLAIN"];
- _ui = uiNameSpace getVariable "life_progress";
- _progress = _ui displayCtrl 38201;
- _pgText = _ui displayCtrl 38202;
- _pgText ctrlSetText format["[ECL] Capturing Emita Castle, Dont leave (10m) (10m) (1%1)...","%"];
- _progress progressSetPosition 0.01;
- _cP = 0.0001;
- if(_cocker) then
- {
- while{true} do
- {
- sleep 2;
- _cP = _cP + 0.05;
- _progress progressSetPosition _cP;
- _pgText ctrlSetText format["[ECL] Capturing Emita Castle, Dont leave (10m) (%1%2)...",round(_cP * 100),"%"];
- if(_cP >= 1) exitWith {};
- if(_capturer distance _area > 10.5) exitWith { };
- if!(alive _capturer) exitWith {};
- };
- if!(alive _capturer) exitWith { _cocker = false; };
- if(_capturer distance _area > 10.5) exitWith { hint "You have ran to far! Capturing failed."; 5 cutText ["","PLAIN"]; _cocker = false; };
- 5 cutText ["","PLAIN"];
- _cocker = false;
- };
- // George's Capture Messages
- [1,format["Emita Castle was captured by: %1 it was previously owned by: %2",contestor,_areaowner]] remoteExec ["life_fnc_broadcast",west];
- [1,format["Emita Castle was captured by: %1 it was previously owned by: %2",contestor,_areaowner]] remoteExec ["life_fnc_broadcast",civilian];
- //Set The Capturer as the Capturer
- ugandaOccupied = contestor;
- publicVariable "ugandaOccupied";
- while {ugandaOccupied == contestor && side player == civilian} do
- {
- sleep 5;
- hint "You will recieve Emita Castle paycheck in 5 minutes";
- sleep 300;
- _tax = 2500 + round(random 20000);
- life_atmcash = life_atmcash + _tax;
- hint format ["You recieved %1 extra paycheck from occupying Emita Castle",_tax];
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement