1. Dashboard
  2. Forum
    1. Unerledigte Themen
  3. Downloads
  4. Galerie
    1. Alben
  5. Toolbox
    1. Passwort Generator
    2. Portchecker
  6. Mitglieder
    1. Mitgliedersuche
    2. Benutzer online
    3. Trophäen
    4. Team
Mo: 19 Mai 2025
  • Anmelden oder registrieren
  • Suche
Dieses Thema
  • Alles
  • Dieses Thema
  • Dieses Forum
  • Artikel
  • Forum
  • Dateien
  • Seiten
  • Bilder
  • Erweiterte Suche

Schön, dass du den Weg zu NodeZone.net gefunden hast! Aktuell bist du nicht angemeldet und kannst deshalb nur eingeschränkt auf unsere Community zugreifen. Um alle Funktionen freizuschalten, spannende Inhalte zu entdecken und dich aktiv einzubringen, registriere dich jetzt kostenlos oder melde dich mit deinem Account an.

Anmelden oder registrieren
    1. Nodezone.net Community
    2. Forum
    3. Gameserver & Hosting
    4. ArmA Series - ArmA 3 / Reforger
    5. Hilfeforum

    Tankstellenraub Zeit verändern, und Geld erhöhen

    • Sw4mP
    • 23. Juli 2017 um 17:32
    • Geschlossen
    • Erledigt
    • Sw4mP
      Schüler
      Reaktionen
      4
      Trophäen
      10
      Beiträge
      98
      • 23. Juli 2017 um 17:32
      • #1

      Hallo,

      wie kann ich einstellen, dass ein Tankstellen raub länger dauert ?
      Und wo steht, wie viel Geld man kriegt ?

      Müsste ja alles in der Datei sein :)

      Code
      private["_robber","_shop","_kassa","_ui","_progress","_pgText","_cP","_rip","_pos"];
      _shop = [_this,0,ObjNull,[ObjNull]] call BIS_fnc_param; //The object that has the action attached to it is _this. ,0, is the index of object, ObjNull is the default should there be nothing in the parameter or it's broken
      _robber = [_this,1,ObjNull,[ObjNull]] call BIS_fnc_param; //Can you guess? Alright, it's the player, or the "caller". The object is 0, the person activating the object is 1
      //_kassa = 1000; //The amount the shop has to rob, you could make this a parameter of the call (https://community.bistudio.com/wiki/addAction). Give it a try and post below ;)
      _action = [_this,2] call BIS_fnc_param;//Action name
      
      if(side _robber != civilian) exitWith { hintSilent "You can not rob this station!" };
      if(_robber distance _shop > 5) exitWith { hintSilent "You need to be within 5m of the cashier to rob him!" };
      
      if !(_kassa) then { _kassa = 1000; };
      if (_rip) exitWith { hintSilent "Robbery already in progress!" };
      if (vehicle player != _robber) exitWith { hintSilent "Get out of your vehicle!" };
      
      if !(alive _robber) exitWith {};
      if (currentWeapon _robber == "") exitWith { hintSilent "HaHa, you do not threaten me! Get out of here you hobo!" };
      if (_kassa == 0) exitWith { hintSilent "There is no cash in the register!" };
      
      _rip = true;
      _kassa = 10000 + round(random 10000);
      _shop removeAction _action;
      _shop switchMove "AmovPercMstpSsurWnonDnon";
      _chance = random(100);
      if(_chance >= 85) then { hintSilent "The cashier hit the silent alarm, police has been alerted!"; [[1,format["ALARM! - Gasstation: %1 is being robbed!", _shop]],"life_fnc_broadcast",west,false] spawn life_fnc_MP; };
      
      _cops = (west countSide playableUnits);
      if(_cops < 1) exitWith{[[_vault,-1],"disableSerialization;",false,false] spawn life_fnc_MP; hintSilent "There isnt enough Police to rob gas station!";};
      disableSerialization;
      5 cutRsc ["life_progress","PLAIN"];
      _ui = uiNameSpace getVariable "life_progress";
      _progress = _ui displayCtrl 38201;
      _pgText = _ui displayCtrl 38202;
      _pgText ctrlSetText format["Robbery in Progress, stay close (10m) (1%1)...","%"];
      _progress progressSetPosition 0.01;
      _cP = 0.01;
       
      if(_rip) then
      {
      while{true} do
      {
      uiSleep 0.85;
      _cP = _cP + 0.01;
      _progress progressSetPosition _cP;
      _pgText ctrlSetText format["Robbery in Progress, stay close (10m) (%1%2)...",round(_cP * 100),"%"];
      _Pos = position player; // by ehno: get player pos
                                      _marker = createMarker ["Marker200", _Pos]; //by ehno: Place a Maker on the map
                                      "Marker200" setMarkerColor "ColorRed";
                                      "Marker200" setMarkerText "!ATTENTION! robbery !ATTENTION!";
                                      "Marker200" setMarkerType "mil_warning";            
      if(_cP >= 1) exitWith {};
      if(_robber distance _shop > 10.5) exitWith { };
      if!(alive _robber) exitWith {};
      };
      if!(alive _robber) exitWith { _rip = false; };
      if(_robber distance _shop > 10.5) exitWith { deleteMarker "Marker200"; _shop switchMove ""; hintSilent "You need to stay within 10m to Rob registry! - Now the registry is locked."; 5 cutText ["","PLAIN"]; _rip = false; };
      5 cutText ["","PLAIN"];
      
      titleText[format["You have stolen $%1, now get away before the cops arrive!",[_kassa] call life_fnc_numberText],"PLAIN"];
      deleteMarker "Marker200"; // by ehno delete maker
      life_cash = life_cash + _kassa;
      
      _rip = false;
      life_use_atm = false;
      uiSleep (30 + random(180));
      life_use_atm = true;
      if!(alive _robber) exitWith {};
      [[getPlayerUID _robber,name _robber,"211"],"life_fnc_wantedAdd",false,false] spawn life_fnc_MP;
      };
      uiSleep 300;
      _action = _shop addAction["Rob the Gas Station",life_fnc_robShops];    
      _shop switchMove "";
      Alles anzeigen

      Danke im Vorraus!

    • br1zey
      Meister
      Reaktionen
      881
      Trophäen
      11
      Beiträge
      2.458
      Dateien
      2
      Bilder
      58
      • 23. Juli 2017 um 17:51
      • #2
      Zitat von Sw4mP

      Und wo steht, wie viel Geld man kriegt ?

      Zitat von Sw4mP

      _kassa = 10000 + round(random 10000);

      Schon mal dir DDatei richtig Druchgeguckt ...

      Zitat von Sw4mP

      wie kann ich einstellen, dass ein Tankstellen raub länger dauert ?

      Zeile 40 das UiSleep Ändern zu zeit bekommst du alle 0.85Sec +1% Alls dauert es 85 Sec zur Zeit

      ReallifeRPG Admin, Scripter, Technischer Helfer, und Manchmal auch Spieler

      realliferpg128x128.png?resize=128%2C128&ssl=1

    • Gustav=)
      Frischling
      Reaktionen
      6
      Trophäen
      9
      Beiträge
      2
      Dateien
      3
      • 23. Juli 2017 um 17:54
      • #3

      _kassa = 3000 + round(random 12000); // 3000 - 12000 Diebstahl wäre so möglich, wird random generiert. (Zeile 19)

    • br1zey
      Meister
      Reaktionen
      881
      Trophäen
      11
      Beiträge
      2.458
      Dateien
      2
      Bilder
      58
      • 23. Juli 2017 um 17:55
      • #4

      Gustav=) dan währen es aber zwischen 3001 - 15000 :D

      ReallifeRPG Admin, Scripter, Technischer Helfer, und Manchmal auch Spieler

      realliferpg128x128.png?resize=128%2C128&ssl=1

    • Gustav=)
      Frischling
      Reaktionen
      6
      Trophäen
      9
      Beiträge
      2
      Dateien
      3
      • 23. Juli 2017 um 17:57
      • #5

      Wow :D

    • Sw4mP
      Schüler
      Reaktionen
      4
      Trophäen
      10
      Beiträge
      98
      • 24. Juli 2017 um 13:38
      • #6

      Danke für die Antworten! :D

      Kann ich bei

      _kassa = 3000 + round(random 12000);

      einfach irgendwas hinschreiben, also theoretisch auch 999.999$ ? [ _kassa = 40000 + round(random 120000); ] <--- Geht das `?

      Danke schonmal :D

    • blackfisch
      Legende
      Reaktionen
      2.944
      Trophäen
      9
      Beiträge
      5.966
      Dateien
      6
      Bilder
      63
      • 24. Juli 2017 um 13:39
      • #7

      jap

      #MakeArmaNotWar

      Kein Support via PN & Steam! / No Support via DM & Steam!


      Mit freundlichen Grüßen
      blackfisch
      ______________________

      Web: blackfisch.me

      GitHub: GitHub.com/blackfisch

      Mail: [email protected]

      ______________________
      Wichtige Links:
      [Erklärung|Leitfaden] Code Optimierung

      [Tutorial] life_fnc_MP zu remoteExec

      Ohne Logs & entsprechende Dateien kein Support!

      ______________________

    • Sw4mP
      Schüler
      Reaktionen
      4
      Trophäen
      10
      Beiträge
      98
      • 24. Juli 2017 um 13:39
      • #8

      Danke :D

    Registrieren oder Einloggen

    Du bist noch kein Mitglied von Native-Servers.com? Registriere dich kostenlos und werde Teil einer großartigen Community!

    Benutzerkonto erstellen

    Tags

    • zeit
    • Geld
    • Cops
    • raub
    • Tankstelle
    • Tankstellenraub
    • Dauer
    • erhöhen
    • fn_robShops.sqf
    • robShops

    Benutzer online in diesem Thema

    • 1 Besucher

    Wichtige Links & Informationen

    Server & Hosting-Ressourcen

      Server Administration & Hosting Basics

      Windows Server Support & Guides

      Linux Server Configuration & Help

      Setting up TeamSpeak 3 & VoIP Servers

      Domains & Web Hosting for Beginners & Professionals

      Cloud Hosting, Docker & Kubernetes Tutorials

    Gameserver & Modding-Ressourcen

      ArmA 3 Tutorials & Script Collection

      Renting & Operating Gameservers

      DayZ Server Management & Help

      FiveM (GTA V) Server & Script Development

      Rust Server Modding & Administration

      Setting up & Optimizing ARK Survival Servers

    NodeZone.net – Deine Community für Gameserver, Server-Hosting & Modding

      NodeZone.net ist dein Forum für Gameserver-Hosting, Rootserver, vServer, Webhosting und Modding. Seit 2015 bietet unsere Community eine zentrale Anlaufstelle für Server-Admins, Gamer und Technikbegeisterte, die sich über Server-Management, Hosting-Lösungen und Spielemodding austauschen möchten.


      Ob Anleitungen für eigene Gameserver, Hilfe bei Root- und vServer-Konfigurationen oder Tipps zu Modding & Scripting – bei uns findest du fundiertes Wissen und praxisnahe Tutorials. Mit einer stetig wachsenden Community findest du hier Antworten auf deine Fragen, Projektpartner und Gleichgesinnte für deine Gaming- und Serverprojekte. Schließe dich NodeZone.net an und werde Teil einer aktiven Community rund um Server-Hosting, Gameserver-Management und Modding-Ressourcen.

    Wer jetzt nicht teilt ist selber Schuld:
    1. Nutzungsbestimmungen
    2. Datenschutzerklärung
    3. Impressum
    4. Urheberrechts- oder Lizenzverstoß melden
  • Trimax Design coded & layout by Gino Zantarelli 2023-2025©
    Community-Software: WoltLab Suite™