zapatahacks

Untitled

Sep 5th, 2017
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.75 KB | None | 0 0
  1. /*
  2. By zapata
  3. ["solicito"] spawn ica_fnc_farmeopetroleo;
  4. ["fianza"] spawn ica_fnc_farmeopetroleo;
  5. ["cargo"] spawn ica_fnc_farmeopetroleo;
  6. ["descargo"] spawn ica_fnc_farmeopetroleo;
  7. ["reset"] spawn ica_fnc_farmeopetroleo;
  8. */
  9.  
  10. _param = _this select 0;
  11.  
  12. if (_param isEqualTo "solicito") exitWith {
  13. if (!license_civ_driver) exitwith {hint "No tienes carnet de conducir B, no puedes conducir este camión!"};
  14. if (pop_din < 1500) exitwith {hint "La fianza del camión son 1500 €"};
  15. pop_din = pop_din - 1500;
  16. _veh = "C_Van_01_box_F" createvehicle position player;
  17. _veh addAction["CARGAR PETROLEO.", {["cargo"] spawn ica_fnc_farmeopetroleo}];
  18. _veh addAction["DESCARGAR PETROLEO.", {["descargo"] spawn ica_fnc_farmeopetroleo}];
  19. _veh setvariable ["cargando",false,true];
  20. _veh setvariable ["propietario",name player,true];
  21. _code = '
  22. if (name player != (vehicle player getvariable "propietario")) then {
  23. moveout player;
  24. hint "Solo el dueño puede usar este vehiculo";
  25. };
  26. ';
  27. [_veh, "getIn", _code, true] call ica_fnc_addEH;
  28. _veh setVariable ["dbInfo",[(getPlayerUID player), 0],true];
  29. _mat = format["ZA-%1-AL", round(random(9999))];
  30. _veh setVariable ["matricula", _mat, true];
  31. hint "Todo listo, ve a por petroleo y recarga las gasolineras";
  32. };
  33.  
  34. if (_param isEqualTo "fianza") exitWith {
  35. if ((count (nearestObjects [player, ["man"], 4]))>1) exitwith {hint "De uno en uno por favor"};
  36. _veh = nearestObject [player, "C_Van_01_box_F"];
  37. if (isnil "_veh") exitwith {hint "No veo cerca ningún camión"};
  38. if ((player distance _veh)>10) exitwith {hint "Acerca el camión"};
  39. _propietario = _veh getvariable "propietario";
  40. if (name player != _propietario) exitwith {hint "Este camión no esta registrado a tu nombre"};
  41. deletevehicle _veh;
  42. pop_din = pop_din + 7500;
  43. [10] call ica_fnc_ganoExp;
  44. hint "Todo listo, el camión está guardado en el garage municipal, vuelve a por más trabajo cuando quieras";
  45. };
  46.  
  47. if (_param isEqualTo "cargo") exitWith {
  48. if ((player distance (getMarkerPos "cargopetroleo")) > 8) exitWith {hint "Ya esta el camión cargado ve a la zona de descarga de Metropolis"};
  49. _cantidad = ;
  50.  
  51. _manguera = ropeCreate [vehicle player, [0,0,0], surtidor, [-0.5,0,(random 0.05)], (distancia - 2)];
  52. surtidor = cursorObject;
  53. distancia = Null;
  54.  
  55. sleep 15;
  56. deletevehicle _manguera;
  57.  
  58. hintSilent format ["Cantidad: %1", _cantidad];
  59.  
  60. };
  61.  
  62. if (_param isEqualTo "descargo") exitWith {
  63. if ((player distance (getMarkerPos "descargopetroleo")) > 8) exitWith {hint "Ya esta el camión descargado vuelve a entregarlo"};
  64. _cantidad = ;
  65. _dinero = ;
  66.  
  67. surtidorpt = surtidorpt + _cantidad;
  68. hintSilent format ["Cantidad: %1\nDinero %2", _cantidad, _dinero];
  69. };
  70.  
  71. if (_param isEqualTo "reset") exitWith {
  72.  
  73. };
Advertisement
Add Comment
Please, Sign In to add comment