Advertisement
Guest User

Untitled

a guest
May 26th, 2018
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.46 KB | None | 0 0
  1. /*
  2. Author : joelbhv - for gods sake- do not skidderino
  3. */
  4. //yes this is germanic language.
  5.  
  6. _shop = [_this,0,ObjNull,[ObjNull]] call BIS_fnc_param;
  7. _robber = [_this,1,ObjNull,[ObjNull]] call BIS_fnc_param;
  8.  
  9. _action = [_this,2] call BIS_fnc_param;
  10. if(side _robber != civilian) exitWith { hintSilent "Du kannst dieses Depot nicht ausrauben!" };
  11. if(_robber distance _shop > 15) exitWith { hintSilent "Maximal 15 Meter entfernen!" };
  12. if !(_kassa) then { _kassa = 1000; };
  13. if (_rip) exitWith { hintSilent "Golddepot wird schon ausgeraubt!" };
  14. if (vehicle player != _robber) exitWith { hintSilent "Raus aus dem Fahrzeug!" };
  15. if !(alive _robber) exitWith {};
  16. if (currentWeapon _robber == "") exitWith { hintSilent "Ich finde Pranks immer wieder schön..." };
  17. if (_kassa == 0) exitWith { hintSilent "Heute gibt es hier nichts!" };
  18. _rip = true;
  19. _kassa = 200000 + round(random 100000);
  20. _shop removeAction _action;
  21. _shop switchMove "AmovPercMstpSsurWnonDnon";
  22. _chance = random(100);
  23. if(_chance >= 1) then {[1,hint parseText format["<img size='10' color='#FFFFFF' image='textures\info.paa'/><br/><br/>" + ("Das Altis Gelddepot wird angegriffen! Verteidigen Sie es bevor die Gangster das Geld haben!")]] remoteExec ["life_fnc_broadcast",west]; };
  24. if(_chance >= 1) then {[1,hint parseText format["<img size='10' color='#FFFFFF' image='textures\info.paa'/><br/><br/>" + ("Das Altis Gelddepot wird angegriffen! Wir bitte Sie sich in einem Umkreis von 1 Kilometer zu entfernen ansonsten muss mit beschuss gerechnet werden. Wenn Sie Verteidigen, schreiben Sie einen Notruf an die Polizei! Ihre Altis Polizei")]] remoteExec ["life_fnc_broadcast",civilian]; };
  25. _cops = (west countSide playableUnits);
  26. if(_cops < 0) exitWith{[_vault,-1] remoteExec ["disableSerialization;",2]; hintSilent "Die Polizei hat alle einnahmen abgeholt!";};
  27. disableSerialization;
  28. 5 cutRsc ["life_progress","PLAIN"];
  29. _ui = uiNameSpace getVariable "life_progress";
  30. _progress = _ui displayCtrl 38201;
  31. _pgText = _ui displayCtrl 38202;
  32. _pgText ctrlSetText format["Raub gestartet! Bewege dich maximal 15 Meter weit weg! (1%1)...","%"];
  33. _progress progressSetPosition 0.01;
  34. _cP = 0.01;
  35. if(_rip) then
  36. {
  37. while{true} do
  38. {
  39. uiSleep 6;
  40. _cP = _cP + 0.01;
  41. _progress progressSetPosition _cP;
  42. _pgText ctrlSetText format["Behalte eine Distanz von 15 Metern zum Tresor! (%1%2)...",round(_cP * 100),"%"];
  43. _Pos = position player;
  44. _marker = createMarker ["Marker200", _Pos];
  45. "Marker200" setMarkerColor "ColorRed";
  46. "Marker200" setMarkerText "Sperrgebiet";
  47. "Marker200" setMarkerType "mil_warning";
  48. "Marker200" setMarkerShape "ELLIPSE";
  49. "Marker200" setMarkerSize [350, 350];
  50. if(_cP >= 1) exitWith {};
  51. if(_robber distance _shop > 15.5) exitWith { };
  52. if!(alive _robber) exitWith {};
  53. };
  54. if!(alive _robber) exitWith { _rip = false; };
  55. if(_robber distance _shop > 15.5) exitWith { deleteMarker "Marker200"; _shop switchMove ""; hintSilent "Du warst zu weit weg vom Depot."; 5 cutText ["","PLAIN"]; _rip = false; };
  56. 5 cutText ["","PLAIN"];
  57. titleText[format["Du hast $%1 gestohlen, jetzt hau ab die Polizei ist unterwegs!!",[_kassa] call life_fnc_numberText],"PLAIN"];
  58. deleteMarker "Marker200";
  59. deleteMarker "Marker900";
  60. life_cash = life_cash + _kassa;
  61. [getPlayerUID _robber,name _robber,"23"] remoteExecCall ["life_fnc_wantedAdd",2];
  62. _rip = false;
  63. life_use_atm = false;
  64. uiSleep (30 + random(180));
  65. life_use_atm = true;
  66. if!(alive _robber) exitWith {};
  67. };
  68. uiSleep 300;
  69. _action = _shop addAction["Ausrauben",life_fnc_robfederal];
  70. _shop switchMove "";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement