SHARE
TWEET

Untitled

a guest Sep 15th, 2019 87 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include "..\..\script_macros.hpp"
  2. /*
  3.     Müllfarmen by BrandyScotchland
  4. */
  5. if(!hasInterface) exitWith {};
  6. if(life_action_inUse) exitWith {};
  7. if(playerSide in [west,independent]) exitWith {["Du kannst als Polizist oder Medic nicht Müll farmen!",true,"fast"] call life_fnc_notification_system;};
  8. if((vehicle player) !=player) exitWith {["Du kannst aus dem Auto keine Müll farmen!",true,"fast"] call life_fnc_notification_system;};
  9. if(!alive player) exitWith {["Du musst am Leben sein um Müll zu farmen",true,"fast"] call life_fnc_notification_system;};
  10. if(player getVariable "restrained") exitWith {[localize "STR_NOTF_isrestrained",true,"fast"] call life_fnc_notification_system;};
  11. if(player getVariable "playerSurrender") exitWith {[localize "STR_NOTF_surrender",true,"fast"] call life_fnc_notification_system;};
  12.  
  13. _exit = false;
  14. _markerPos = markerPos "Muellplatz";
  15. _meters = _markerPos distance player;
  16. life_action_inUse = true;
  17.  
  18. if(_meters > 30) exitWith {
  19.     ["Hier findest du keine Sachen. Bleibe im Radius von 30 Metern",true,"fast"] call life_fnc_notification_system;
  20.     life_action_inUse = false;
  21. };
  22.  
  23. if(life_inv_toolbox <= 0) exitWith {
  24.     ["Du brauchst eine ToolBox um Müll zu farmen!",true,"fast"] call life_fnc_notification_system;
  25.     life_action_inUse = false;
  26.     _exit = true;
  27. };
  28.  
  29. if(_exit) exitWith {life_action_inUse = false;};
  30.  
  31.  
  32. for "_i" from 0 to 4 do {
  33.     player playMoveNow "AinvPercMstpSnonWnonDnon_Putdown_AmovPercMstpSnonWnonDnon";
  34.     waitUntil {
  35.         animationState player != "AinvPercMstpSnonWnonDnon_Putdown_AmovPercMstpSnonWnonDnon";
  36.     };
  37.     sleep 0.5;
  38. };
  39.  
  40. _random = round(random(100));
  41. _rnd = round(random(10));
  42.  
  43. if(_rnd < 3) exitWith {["Du hast nichts gefunden!",true,"fast"] call life_fnc_notification_system;};
  44.  
  45. _new = switch {true} do {
  46.     case(_random < 5): {[true,"muell",3] call life_fnc_handleInv; titleText ["Du hast 3 Müll gesammelt", "PLAIN DOWN"];};
  47.     case(_random >= 5 && _random < 10): {[true,"schrott",3] call life_fnc_handleInv; titleText ["Du hast 3 Schrott gesammelt", "PLAIN DOWN"];};
  48.     case(_random >= 10 && _random < 15): {[true,"muell",3] call life_fnc_handleInv; titleText ["Du hast 3 Müll gesammelt", "PLAIN DOWN"];};
  49.     case(_random >= 15 && _random < 20): {[true,"muell",1] call life_fnc_handleInv; titleText ["Du hast 1 Müll gesammelt", "PLAIN DOWN"];};
  50.     case(_random >= 20 && _random < 25): {[true,"schrott",1] call life_fnc_handleInv; titleText ["Du hast 1 Müll gesammelt", "PLAIN DOWN"];};
  51.     case(_random >= 25 && _random < 30): {[true,"muell",1] call life_fnc_handleInv; titleText ["Du hast 1 Müll gesammelt", "PLAIN DOWN"];};
  52.     case(_random >= 30 && _random < 35): {[true,"rabbit",4] call life_fnc_handleInv; titleText ["Du hast 4 Hasen gesammelt", "PLAIN DOWN"];};
  53.     case(_random >= 35 && _random < 40): {[true,"muell",4] call life_fnc_handleInv; titleText ["Du hast 4 Müll gesammelt", "PLAIN DOWN"];};
  54.     case(_random >= 40 && _random < 45): {[true,"bauplan",1] call life_fnc_handleInv; titleText ["Du hast einen Bauplan gesammelt", "PLAIN DOWN"];};
  55.     case(_random >= 45 && _random < 50): {[true,"muell",1] call life_fnc_handleInv; titleText ["Du hast 1 Müll gesammelt", "PLAIN DOWN"];};
  56.     case(_random >= 50 && _random < 55): {[true,"marijuana",3] call life_fnc_handleInv; titleText ["Du hast 3 Marijuana gesammelt", "PLAIN DOWN"];};
  57.     case(_random >= 55 && _random < 60): {[true,"muell",5] call life_fnc_handleInv; titleText ["Du hast 5 Müll gesammelt", "PLAIN DOWN"];};
  58.     case(_random >= 60 && _random < 65): {[true,"muell",6] call life_fnc_handleInv; titleText ["Du hast 6 Müll gesammelt", "PLAIN DOWN"];};
  59.     case(_random >= 65 && _random < 70): {[true,"muell",10] call life_fnc_handleInv; titleText ["Du hast 10 Müll gesammelt", "PLAIN DOWN"];};
  60.     case(_random >= 70 && _random < 75): {[true,"goldbar",1] call life_fnc_handleInv; titleText ["Du hast einen Goldbarren gesammelt", "PLAIN DOWN"];};
  61.     case(_random >= 75 && _random < 80): {[true,"waffenteile",1] call life_fnc_handleInv; titleText ["Du hast Waffenteile gesammelt", "PLAIN DOWN"];};
  62.     case(_random >= 80 && _random < 85): {[true,"fakeidcard",1] call life_fnc_handleInv; titleText ["Du hast ein Fakeausweiß gesammelt", "PLAIN DOWN"];};
  63.     case(_random >= 85 && _random < 90): {[true,"muell",1] call life_fnc_handleInv; titleText ["Du hast ein Müll gesammelt", "PLAIN DOWN"];};
  64.     case(_random >= 90 && _random < 95): {[true,"schrott",10] call life_fnc_handleInv; titleText ["Du hast 10 Schrott gesammelt", "PLAIN DOWN"];};
  65.     case(_random >= 95 && _random < 98): {[true,"artifact",1] call life_fnc_handleInv; titleText ["Du hast ein Artefakt gesammelt", "PLAIN DOWN"];};
  66.     case(_random >= 100): {[true,"artifact_minor",1] call life_fnc_handleInv; titleText ["Du hast ein Artefakt gesammelt", "PLAIN DOWN"];};
  67. };
  68.  
  69. sleep 2.5;
  70. life_action_inUse = false;
  71. ["SachenAbgebaut"] spawn mav_ttm_fnc_addExp;
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top