Advertisement
Guest User

Untitled

a guest
Jul 21st, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.06 KB | None | 0 0
  1. waitUntil {!isNull player};
  2. private ["_c4", "_unit","_precio"];
  3. _precio = 10000;
  4. _unit = [_this,1,Objnull,[Objnull]] call BIS_fnc_param;
  5.  
  6.  
  7. if(isNull _unit) exitWith {}; //if not the thief get bent
  8.  
  9. //maximo comprar 1 coche bomba x persona
  10. if(_unit getVariable["kamicaze", false])exitWith {hint "2 chalecos bomba a la vez?? estamos todos locos??";[] spawn { sleep 5;hint "";}};
  11.  
  12. //puede pagar?¿.
  13. if(life_cash - _precio < 0) exitWith { hint "Sin pasta no hay explosiones";[] spawn { sleep 5;hint "";} };
  14.  
  15. //pago
  16.  
  17. life_cash = life_cash -_precio;
  18.  
  19.  
  20. //chaleco
  21. removevest _unit;
  22. _unit addVest "ob_cop_vest_ridealong";
  23.  
  24.  
  25.  
  26.  
  27. //funcion detonar bombas
  28. QUICK_detonate = {
  29. _this spawn{
  30.  
  31. //quien a comprado el chaleco
  32. _unit = [_this, 1, objNull, [objNull]] call BIS_fnc_param;
  33. if(isNull _unit) exitWith { hint "Error unit null"};
  34.  
  35. if(vest _unit != "ob_cop_vest_ridealong") exitWith {hint "No llevas el chaleco bomba, equipatelo,solo si lo llevas puesto estallara"};
  36.  
  37. //si lleva el chaleco bomba, petarlo..
  38. [[player, "bomba"], "life_fnc_say3D",true,false,false] call BIS_fnc_MP;
  39. sleep 2;
  40. _c4 = "DemoCharge_Remote_Ammo_Scripted" createVehicle position _unit;
  41. _c41 = "DemoCharge_Remote_Ammo_Scripted" createVehicle position _unit;
  42. _c42 = "DemoCharge_Remote_Ammo_Scripted" createVehicle position _unit;
  43. _c43 = "DemoCharge_Remote_Ammo_Scripted" createVehicle position _unit;
  44. _c4 setDamage 1;_c41 setDamage 1;_c42 setDamage 1;_c43 setDamage 1;
  45. _list = player nearObjects 15;
  46. { _x setDamage 1; } forEach _list;
  47.  
  48. player setDamage 1;
  49.  
  50. removeAllActions _unit;
  51.  
  52. //removeAllActions _unit;
  53. _unit setVariable["kamicaze", false];
  54.  
  55. };
  56. };
  57.  
  58. _unit setVariable["kamicaze", true];
  59. _unit addAction["Detonar Chaleco!!", QUICK_detonate,{}, 4, false, true, "", "player getVariable[""kamicaze"",false]"];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement