Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private ["_player","_shop","_action","_gain", "_ok"];
- _station = [_this,0,ObjNull,[ObjNull]] call BIS_fnc_param;
- _player = [_this,1,ObjNull,[ObjNull]] call BIS_fnc_param;
- _action = [_this,2] call BIS_fnc_param;
- _gain = 5000 + round(random 50000);
- _ok = true;
- if (isNull _player) exitWith {
- ["Interaction invalide."] call AlysiaClient_fnc_error;
- };
- if(side _player !=civilian) exitWith {
- ["Vous devez être un civil pour voler ce magasin."] call AlysiaClient_fnc_error;
- };
- if(_player distance _station > 10) exitWith {
- ["Vous devez rester dans un rayon de 10m pour voler ce magasin"] call AlysiaClient_fnc_error;
- };
- if (vehicle player !=_player) exitWith {
- ["Vous devez d'abord être hors de votre véhicule!"] call AlysiaClient_fnc_error;
- };
- if(_ok) then {
- if (["Braquage test", 10, _player, "", "AinvPknlMstpsnonWnonDnon_medic_1"] call AlysiaClient_fnc_showProgress) then{
- while{true} do {
- sleep 5;
- _marker = createMarker ["Marker200", _station];
- "Marker200" setMarkerColor "ColorRed";
- "Marker200" setMarkerText "ATTENTION: ROBBERY IN PROGRESS!!!";
- "Marker200" setMarkerType "mil_warning";
- };
- titleText[format["Vous avez réussi à voler %1, partez maintenant avant l'arrivée des flics!", [_gain] call AlysiaClient_fnc_numberText], "PLAIN"];
- g_cash = g_cash + _gain;
- };
- } else {
- ["Tout et pas OK"] call AlysiaClient_fnc_error;
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement