Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- Author: Robin Withes
- */
- if(playerSide != west) exitWith {
- ["Why would i risk my life to sabotage the weed processor? This seems like something the cops would do.","#d32df0"] spawn RLG_fnc_RLGNotificationSystem;
- };
- _copStartSign = getpos player nearestObject "Land_InfoStand_V1_F";
- _weedMachine = getpos player nearestObject "Land_Device_assembled_F";
- _weedShop = getpos player nearestObject "Land_InfoStand_V2_F";
- [_copStartSign, true] remoteExec ["hideObjectGlobal", 2];
- _upp = "Setting up Bomb";
- //Need to alert everyone the cops are trying to destroy it here
- //Setup our progress bar.
- disableSerialization;
- "progressBar" cutRsc ["life_progress","PLAIN"];
- _ui = uiNamespace getVariable "life_progress";
- _progress = _ui displayCtrl 38201;
- _pgText = _ui displayCtrl 38202;
- _pgText ctrlSetText format ["%2 (1%1)...","%",_upp];
- _progress progressSetPosition 0.01;
- _cP = 0;
- while {true} do{
- sleep 1;
- _cP = _cP + 0.1;
- _progress progressSetPosition _cP;
- _pgText ctrlSetText format ["%3 (%1%2)...",round(_cP * 100),"%",_upp];
- if (player distance _copStartSign > 30) exitWith {hint "You moved too far away and werent able to keep capturing the zone!"; "progressBar" cutText ["","PLAIN"]; [_copStartSign, false] remoteExec ["hideObjectGlobal", 2];};
- if (!alive player) exitWith {"progressBar" cutText ["","PLAIN"]; [_copStartSign, false] remoteExec ["hideObjectGlobal", 2];};
- if (_cP >= 1) exitWith{"progressBar" cutText ["","PLAIN"];
- ["You succesfully captured weed processing long enough to plant a bomb to destroy it! You set the timer to 60 seconds! Better Run!","#d32df0"] spawn RLG_fnc_RLGNotificationSystem;
- Sleep 60;
- _bomb = "Bo_GBU12_LGB" createVehicle (getMarkerPos "weedRaidMRK");
- [_weedShop, true] remoteExec ["hideObjectGlobal", 2];
- [_weedMachine, true] remoteExec ["hideObjectGlobal", 2];
- _bomb setDamage 1;
- Sleep 60;
- //Need to alert everyone weed shop is back operational
- [_copStartSign, false] remoteExec ["hideObjectGlobal", 2];
- [_weedShop, false] remoteExec ["hideObjectGlobal", 2];
- [_weedMachine, false] remoteExec ["hideObjectGlobal", 2];
- };
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement