Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- File: fn_RobPharm
- Author: Nic
- Decription: Core script for robbing pharmaceuticals
- */
- private["_drugRandom", "_amountRandom", "_countdown", "_pos"]
- if({side _x = west} count playableUnits < 3) exitWith {hint "There needs to be 3 cops to rob this!"};
- if(!alive player) exitWith {};
- if(currentWeapon == "") exitWith {hint "You dont scare me... scram!"};
- if(playerSide == west) exitWith {Hint "Haha very funny officer, shouldn't you be on patrol?"};
- if(playerSide == independent) exitWith {hint "Nice try, I know you are medic!"};
- _pos = position player;
- createMarker ["markerAlertPharm", _Pos];
- "markerAlertPharm" setMarkerColor "ColorRed";
- "markerAlertPharm" setMarkerText "!ATTENTION! robbery !ATTENTION!";
- "markerAlertPharm" setMarkerType "mil_warning";
- hint format ["Hold im getting the drugs man dont kill me! (%1 seconds remain)", _countdown];
- while { _countdown > 0 } do {
- uiSleep 1;
- _countdown = _countdown - 1;
- if(!alive player) exitWith {
- hint "You failed because you died!";
- deleteMarker "markerAlertPharm";
- };
- if((player distance _pos) > 5) exitWith {
- hint "You got to far away!";
- deleteMarker "markerAlertPharm";
- };
- };
- _amountRandom = floor(random(20));
- _drugRandom = floor(random(10));
- if(_amountRandom == 20) then {
- _amountRandom = 4;
- };
- if(_amountRandom <= 10) then {
- _amountRandom = 1;
- };
- if(_amountRandom <= 15) then {
- _amountRandom = 2;
- };
- if(_amountRandom <= 19) then {
- _amountRandom = 3;
- };
- if(_drugRandom = x) then {
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement