Advertisement
TaktischerSpeck

Untitled

Jun 16th, 2019
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.44 KB | None | 0 0
  1. // Land_GasTank_01_yellow_F
  2. //deleteVehicle FLASCHE;
  3. //deleteVehicle FLASCHE;
  4. _Platzieren = 0;
  5. _house = cursorObject;
  6. if (!isNull _house && _house isKindOf "House_F" && {player distance _house < 20}) then{ _Platzieren = 1;
  7. if(([player] call life_fnc_PlayerInBuilding)) then { _Platzieren = 1;
  8. if(!(_house in life_vehicles) OR isNil {_house getVariable "house_owner"}) then { _Platzieren = 0; ["Nur in deinem Haus!",true,"fast"] call life_fnc_NachrichtSys;
  9. } else { _Platzieren = 1;};
  10. } else {_Platzieren = 0; ["Du bist in keinem Haus!",true,"fast"] call life_fnc_NachrichtSys;};
  11. } else {_Platzieren = 0; ["Du bist in keinem Haus oder zu weit entfernt!",true,"fast"] call life_fnc_NachrichtSys;};
  12. if (_Platzieren == 0) exitWith {["Abgebrochen",true,"fast"] call life_fnc_NachrichtSys;};
  13.  
  14. if(isNil {MF_CrystalPlaced}) then {
  15. MF_CrystalPlaced = 0;
  16. };
  17.  
  18. if (MF_CrystalPlaced == 1) exitWith {["Du kannst nur einen Methylamin Platzieren!",true,"fast"] call life_fnc_NachrichtSys;};
  19. MF_CrystalPlaced = MF_CrystalPlaced + 1;
  20.  
  21.  
  22.  
  23. player playMoveNow "AinvPercMstpSnonWnonDnon_Putdown_AmovPercMstpSnonWnonDnon";
  24. waitUntil{animationState player != "AinvPercMstpSnonWnonDnon_Putdown_AmovPercMstpSnonWnonDnon";};
  25.  
  26. [false,"methylamin",1] call life_fnc_handleInv;
  27.  
  28. _POSI = getPosATL player;
  29.  
  30. _FLASCHE = "Land_GasTank_01_yellow_F" createVehicle _POSI;
  31. _FLASCHE allowDamage false;
  32. _FLASCHE enableSimulation false;
  33. _FLASCHE setPos (_POSI vectorAdd [0,-0.6,0]);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement