Advertisement
Guest User

Untitled

a guest
Oct 19th, 2019
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.97 KB | None | 0 0
  1.  
  2. /*
  3. por: Icaruk y Warblast
  4. ["loop"] spawn ica_fnc_posicion; // init
  5. [true] spawn ica_fnc_posicion; // guardo
  6. [false] spawn ica_fnc_posicion; // cargo
  7. */
  8.  
  9. _param = _this select 0;
  10.  
  11. private ["_pos", "_posVieja", "_posNueva"];
  12.  
  13. if ((typeName _param) != "BOOL") then {
  14. if (_param isEqualTo "loop") exitWith {
  15. while {true} do {
  16. sleep (60 * 5);
  17. [true] spawn ica_fnc_posicion;
  18. };
  19. };
  20. };
  21.  
  22. if (_param) then {
  23. if (isNil {profileNamespace getVariable "sfpos"}) exitWith {
  24. _pos = getPosATL player;
  25. if (vehicle player != player) then { // estas en veh y te pongo a ras
  26. _pos set [2, 0];
  27. profileNamespace setVariable ["sfpos", _pos];
  28. } else {
  29. profileNamespace setVariable ["sfpos", _pos];
  30. };
  31. };
  32.  
  33. _posVieja = profileNamespace getVariable "sfpos";
  34. _posNueva = getPosATL player;
  35.  
  36. if ((profilenamespace getvariable "rutome") == 0) then {
  37. if ((_posVieja distance _posNueva) > 10) then {
  38. if (vehicle player != player) then { // estas en veh y te pongo a ras
  39. _posNueva set [2, 0];
  40. profileNamespace setVariable ["sfpos", _posNueva];
  41. } else {
  42. profileNamespace setVariable ["sfpos", _posNueva];
  43. };
  44. };
  45. };
  46. } else {
  47. _pos = profileNamespace getVariable "sfpos";
  48. if ((profileNamespace getVariable "rutome") > 0) exitWith {
  49. profileNamespace setVariable ["sfpos", nil]; // en nigromante hago cosas con esto
  50. };
  51. if ((_pos distance (getMarkerPos (["respawn_civilian", "esperaAutobus", "isla"] call ica_fnc_masCercano))) < 150) then {
  52. _pos = getMarkerPos "salidahospitalc";
  53. profileNamespace setVariable ["sfpos", _pos];
  54. };
  55. if(isNull _pos) then {
  56. _pos = getMarkerPos "salidahospitalc";
  57. };
  58. waitUntil {(!isNull player) AND (player == player)};
  59. sleep 2;
  60.  
  61. player setPosATL _pos;
  62. 0 spawn {
  63. player allowDamage false;
  64. sleep 3;
  65. player allowDamage true;
  66. };
  67.  
  68. [false, false] spawn ica_fnc_vistaBonita;
  69. heNacido = true;
  70.  
  71. _handle = [] spawn life_fnc_inicio;
  72. waitUntil {scriptDone _handle};
  73. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement