Advertisement
Guest User

Untitled

a guest
Apr 22nd, 2019
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.37 KB | None | 0 0
  1. private ["_player","_shop","_action","_gain", "_ok"];
  2.  
  3. _station = [_this,0,ObjNull,[ObjNull]] call BIS_fnc_param;
  4. _player = [_this,1,ObjNull,[ObjNull]] call BIS_fnc_param;
  5. _action = [_this,2] call BIS_fnc_param;
  6. _gain = 5000 + round(random 50000);
  7. _ok = true;
  8.  
  9. if (isNull _player) exitWith {
  10. ["Interaction invalide."] call AlysiaClient_fnc_error;
  11. };
  12. if(side _player !=civilian) exitWith {
  13. ["Vous devez être un civil pour voler ce magasin."] call AlysiaClient_fnc_error;
  14. };
  15. if(_player distance _station > 10) exitWith {
  16. ["Vous devez rester dans un rayon de 10m pour voler ce magasin"] call AlysiaClient_fnc_error;
  17. };
  18. if (vehicle player !=_player) exitWith {
  19. ["Vous devez d'abord être hors de votre véhicule!"] call AlysiaClient_fnc_error;
  20. };
  21.  
  22. if(_ok) then {
  23. if (["Braquage test", 10, _player, "", "AinvPknlMstpsnonWnonDnon_medic_1"] call AlysiaClient_fnc_showProgress) then{
  24. while{true} do {
  25. sleep 5;
  26. _marker = createMarker ["Marker200", _station];
  27. "Marker200" setMarkerColor "ColorRed";
  28. "Marker200" setMarkerText "ATTENTION: ROBBERY IN PROGRESS!!!";
  29. "Marker200" setMarkerType "mil_warning";
  30. };
  31. titleText[format["Vous avez réussi à voler %1, partez maintenant avant l'arrivée des flics!", [_gain] call AlysiaClient_fnc_numberText], "PLAIN"];
  32. g_cash = g_cash + _gain;
  33. };
  34. } else {
  35. ["Tout et pas OK"] call AlysiaClient_fnc_error;
  36. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement