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
Fr: 23 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

    Central Bank Gold

      • Altis Life
    • Frenzy
    • 6. Mai 2021 um 01:09
    • Erledigt
    • Frenzy
      Schüler
      Reaktionen
      1
      Trophäen
      5
      Beiträge
      124
      • 6. Mai 2021 um 01:09
      • #1

      Hello ,

      I want money instead of gold from central bank robbery but somehow I don't know what file it's on. Which script do I need to review ?

    • B4v4r!4n_Str!k3r
      Nerd
      Reaktionen
      246
      Trophäen
      11
      Beiträge
      725
      Bilder
      5
      • 6. Mai 2021 um 08:50
      • #2

      Have a look at fn_safeTake.sqf, fn_safeStore.sqf and fn_safeOpen.sqf ;)

      23106-logo-schrift-dunkel-390-70-png class=

      Services rund um ArmA RPG Life

      ArmA Bibel: https://community.bistudio.com/wiki/

    • Frenzy
      Schüler
      Reaktionen
      1
      Trophäen
      5
      Beiträge
      124
      • 6. Mai 2021 um 11:31
      • #3
      Zitat von B4v4r!4n_Str!k3r

      Have a look at fn_safeTake.sqf, fn_safeStore.sqf and fn_safeOpen.sqf ;)

      Thank you. But, I mean. I want it to come out in cash instead of gold. It's like the gasoline scenario. I want to add the explosive bomb to this script and I want the bank robbed after the bomb explodes. I also want an AAN news message when the bomb is set. I want it to contact this script.

      Code
      /*
      Author : MrKraken edited by Brizi jaeger
      */
      //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 (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 "Du kannst dieses Depot nicht ausrauben!" };
      if(_robber distance _shop > 15) exitWith { hintSilent "Maximal 15 Meter entfernen!" };
      if !(_kassa) then { _kassa = 1000; };
      if (_rip) exitWith { hintSilent "Golddepot wird schon ausgeraubt!" };
      if (vehicle player != _robber) exitWith { hintSilent "Raus aus dem Fahrzeug!" };
      if !(alive _robber) exitWith {};
      if (currentWeapon _robber == "") exitWith { hintSilent "Ich finde Pranks immer wieder schön..." };
      if (_kassa == 0) exitWith { hintSilent "Heute gibt es hier nichts!" };
      _rip = true;
      _kassa = 200000 + round(random 100000);
      _shop removeAction _action;
      _shop switchMove "AmovPercMstpSsurWnonDnon";
      _chance = random(100);
      if(_chance >= 1) then {[1,hint parseText format["<img size='10' color='#FFFFFF' image='textures\info.paa'/><br/><br/>" + ("Das Altis Gelddepot wird angegriffen! Verteidigen Sie es bevor die Gangster das Geld haben!")]] remoteExec ["life_fnc_broadcast",west]; };
      if(_chance >= 1) then {[1,hint parseText format["<img size='10' color='#FFFFFF' image='textures\info.paa'/><br/><br/>" + ("Das Altis Gelddepot wird angegriffen! Wir bitte Sie sich in einem Umkreis von 1 Kilometer zu entfernen ansonsten muss mit beschuss gerechnet werden. Wenn Sie Verteidigen, schreiben Sie einen Notruf an die Polizei! Ihre Altis Polizei")]] remoteExec ["life_fnc_broadcast",civilian]; };
      _cops = (west countSide playableUnits);
      if(_cops < 0) exitWith{[_vault,-1] remoteExec ["disableSerialization;",2]; hintSilent "Die Polizei hat alle einnahmen abgeholt!";};
      disableSerialization;
      5 cutRsc ["life_progress","PLAIN"];
      _ui = uiNameSpace getVariable "life_progress";
      _progress = _ui displayCtrl 38201;
      _pgText = _ui displayCtrl 38202;
      _pgText ctrlSetText format["Raub gestartet! Bewege dich maximal 15 Meter weit weg! (1%1)...","%"];
      _progress progressSetPosition 0.01;
      _cP = 0.01;
      if(_rip) then
      {
      while{true} do
      {
      uiSleep 6;
      _cP = _cP + 0.01;
      _progress progressSetPosition _cP;
      _pgText ctrlSetText format["Behalte eine Distanz von 15 Metern zum Tresor! (%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 "Sperrgebiet";
      "Marker200" setMarkerType "mil_warning"; // "mil_warning"
      "Marker200" setMarkerShape "ELLIPSE"; //create sperrgebiet by brizi
      "Marker200" setMarkerSize [350, 350]; //create sperrgebiet by brizi
      if(_cP >= 1) exitWith {};
      if(_robber distance _shop > 15.5) exitWith { };
      if!(alive _robber) exitWith {};
      };
      if!(alive _robber) exitWith { _rip = false; };
      if(_robber distance _shop > 15.5) exitWith { deleteMarker "Marker200"; _shop switchMove ""; hintSilent "Du warst zu weit weg vom Depot."; 5 cutText ["","PLAIN"]; _rip = false; };
      5 cutText ["","PLAIN"];
      titleText[format["Du hast $%1 gestohlen, jetzt hau ab die Polizei ist unterwegs!!",[_kassa] call life_fnc_numberText],"PLAIN"];
      deleteMarker "Marker200"; // by ehno delete maker
      deleteMarker "Marker900"; // by brizi delete sperrgebiet
      life_cash = life_cash + _kassa;
      [getPlayerUID _robber,name _robber,"23"] remoteExecCall ["life_fnc_wantedAdd",2];
      _rip = false;
      life_use_atm = false;
      uiSleep (30 + random(180));
      life_use_atm = true;
      if!(alive _robber) exitWith {};
      };
      uiSleep 300;
      _action = _shop addAction["Ausrauben",life_fnc_robfederal];
      _shop switchMove "";
      Alles anzeigen

      Einmal editiert, zuletzt von Frenzy (6. Mai 2021 um 12:30)

    Registrieren oder Einloggen

    Du bist noch kein Mitglied von NodeZone.net? Registriere dich kostenlos und werde Teil einer großartigen Community!

    Registrieren

    Ähnliche Themen

    • Zentralbank

      • Frenzy
      • 1. Mai 2021 um 12:56
      • Hilfeforum

    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™