Folgender fall ich habe das Script ihr Installiert :[Tutorial] Stolzerrabe | HackTheBank | Altis Life 5.0
Hab es auch getestet läuft alles Super bis auf eine Sache wenn die Bank erfolgreich gehackt wurde sollen die Atms nicht gehen dies klappt auch nur sollen diese nach 10 min wieder gehen was nicht der Fall ist könnt ihr mir vlt da ein denk anstoß geben.
Oder geht das nicht alleine wieder muss dort die Polizei was unternehmen ?
File: fn_atmMenu.sqf
#include "..\..\script_macros.hpp"
/*
File: fn_atmMenu.sqf
Author: Bryan "Tonic" Boardwine
Description:
Opens and manages the bank menu.
*/
private ["_units","_type"];
if (!life_use_atm) exitWith {
hint format [localize "STR_Shop_ATMRobbed",(LIFE_SETTINGS(getNumber,"noatm_timer"))];
};
if(life_ATMhacked == 1) exitWith { hint format["Da die Zentralbank gehackt wurde, steht dieser Service im Moment nicht zur Verfügung"]; };
if (!dialog) then {
if (!(createDialog "Life_atm_management")) exitWith {};
};
disableSerialization;
_units = CONTROL(2700,2703);
lbClear _units;
CONTROL(2700,2701) ctrlSetStructuredText parseText format["<img size='1.7' image=''/> $%1<br/><br/><img size='1.6' image=''/> $%2",[BANK] call life_fnc_numberText,[CASH] call life_fnc_numberText];
{
_name = _x getVariable ["realname",name _x];
if (alive _x && (!(_name isEqualTo profileName))) then {
switch (side _x) do {
case west: {_type = "Cop"};
case civilian: {_type = "Civ"};
case independent: {_type = "EMS"};
};
_units lbAdd format ["%1 (%2)",_x getVariable ["realname",name _x],_type];
_units lbSetData [(lbSize _units)-1,str(_x)];
};
} forEach playableUnits;
lbSetCurSel [2703,0];
if (isNil {(group player getVariable "gang_bank")}) then {
(CONTROL(2700,2705)) ctrlEnable false;
(CONTROL(2700,2706)) ctrlEnable false;
};
#include "..\..\script_macros.hpp"
/*
HACK THE BANK!
Autor: stolzerrabe
modify by: Kuchenplatte.com
You are allowed to:
Use, Share and modify
You are not allowed to:
Remove Author or say this script is yours in anyway!
*/
if(isNil "HackBankCam") then {HackBankCam = 0;};
[]spawn
{
while {true} do
{
// FALLS DAS HACKING BEI ZUGRIFF AUF DIE CAM UNTERBROCHEN WIRD,
// SOMIT WIRD DIE CAM NICHT DAUERHAFT SICHTBAR!
waitUntil{HackBankCam == 1};
sleep = (60 * 15);
HackBankCam = 0;
};
};
[] spawn
{
while {true} do
{
private["_dehack","_check"];
_check = 0;
waitUntil{life_ATMhacked == 1};
if(life_ATMhacked == 1) then
{
_check = 1;
[2,"Die Zentralbank wurde gehackt! Aus Sicherheitsgründen sind alle Geldautomaten 15min nicht nutzbar!",false] remoteExecCall ["life_fnc_broadcast",0];
_dehack = (60 * 10);
sleep _dehack;
life_ATMhacked = 0;
publicVariable "life_ATMhacked";
HackBankCam = 0;
};
if((life_ATMhacked == 1) && (_check == 1)) then
{
_check = 0;
[2,"Die Polizei hat ihr bestes gegeben! Alle Geldautomaten sind wieder nutzbar!",false] remoteExecCall ["life_fnc_broadcast",0];
};
};
};
Alles anzeigen