Funktioniert bei mir ebenfalls nicht,bleibt auch bei 1% hängen.
Beiträge von Mr.Unbekannt
-
-
Funktioniert leider nicht
-
Hallo,ich möchte,dass man anstatt Geld ein Z-Item bekommt,was muss ich da ändern?
Habe es schon versucht,aber wollte nicht so ganz funktionieren.
Danke
MFG
Mr. UnbekanntHier die Standard Datei:
Code
Alles anzeigenprivate["_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 { hint "You can not rob this station!" }; if(_robber distance _shop > 5) exitWith { hint "You need to be within 5m of the cashier to rob him!" }; if !(_kassa) then { _kassa = 1000; }; if (_rip) exitWith { hint "Robbery already in progress!" }; if (vehicle player != _robber) exitWith { hint "Get out of your vehicle!" }; if !(alive _robber) exitWith {}; if (currentWeapon _robber == "") exitWith { hint "HaHa, you do not threaten me! Get out of here you hobo!" }; if (_kassa == 0) exitWith { hint "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 { hint "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 < 2) exitWith{[[_vault,-1],"disableSerialization;",false,false] spawn life_fnc_MP; hint "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 { sleep 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 ""; hint "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; sleep (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; }; sleep 300; _action = _shop addAction["Rob the Gas Station",life_fnc_robShops]; _shop switchMove "";
-
Lag am Marktsystem habe sogar den genauen übeltäter endlich gefunden. Kann also geschlossen werden & Danke für die Hilfe (Y)
-
nadann versuche ich mal ohne;)
-
Das weiß ich nichtmehr genau,denn es hatte eigentlich immer funktioniert. Könnte das evtl. was mit dem Marktsystem von Ryan zu tun haben? Komischerweise kann ich marijuana,heroin usw. verkaufen aber Sachen wie Wasser,Äpfel usw. nicht.
-
Hallo,ich ahbe das problem,dass ich meine Z-Items nichtmehr verkaufen kann.
Könnte das an diesem Fehler liegen?
Wenn ja wie könnte ich diesen beheben?
Mit freundlichen Grüßen
Mr.UnbekanntCode
Alles anzeigen15:11:50 Error in expression <{[]}; _return = (_queryResult select 1) select 0; if(_multiarr) then { _return => 15:11:50 Error position: <select 0; if(_multiarr) then { _return => 15:11:50 Error Generic error in expression 15:11:50 File life_server\Functions\MySQL\fn_asyncCall.sqf, line 49 15:11:51 Error in expression <{[]}; _return = (_queryResult select 1) select 0; if(_multiarr) then { _return => 15:11:51 Error position: <select 0; if(_multiarr) then { _return => 15:11:51 Error Generic error in expression 15:11:51 File life_server\Functions\MySQL\fn_asyncCall.sqf, line 49
-
z.b machst du in deiner Mission einen unterordner mit textures,dann wäre der Pfad z.b textures\Bild.paa
-
Hey,ja das geht. Dazu einfach das Bild in den Ordner der Mission verschieben in dem du mit dem UI Editor gerade arbeitest und im UI Editor bei "Text" den Pfad angeben.
-
Code
Alles anzeigencase "CfgWeapons": { //New addition if(_toUniform) exitWith {player addItemToUniform _item;}; if(_toVest) exitWith {player addItemToVest _item;}; if(_ispack) exitWith {player addItemToBackpack _item;}; if((_details select 4) in [1,2,4,5,4096]) then { if((_details select 4) == 4096) then { if((_details select 5) == -1) then { _isgun = true; }; } else { _isgun = true; }; }; if(_item in _acecheck) then { player addItem _item; };
Ist das so richtig? Kann nähmlich nichts mehr kaufen.
-
-
Okay,werde ich gleich mal versuchen und ne Ahnung mit der wahrscheinlichkeit,dass es klappt?
-
Hallo
ich möchte gerne,dass meine Dietriche schneller und immer lockpicken,sodass man mit einem lockpick zu 100% das Fahrzeug knacken kann.
Was muss ich da ändern?sleep ist doch sicherlich die Zeit oder?
Und die wahrscheinlichkait,dass es klappt?Hier die Datei:
Code
Alles anzeigen/* File: fn_lockpick.sqf Author: Bryan "Tonic" Boardwine Description: Main functionality for lock-picking. */ private["_curTarget","_distance","_isVehicle","_title","_progressBar","_cP","_titleText","_dice","_badDistance"]; _curTarget = cursorTarget; life_interrupted = false; if(life_action_inUse) exitWith {}; if(isNull _curTarget) exitWith {}; //Bad type _distance = ((boundingBox _curTarget select 1) select 0) + 2; if(player distance _curTarget > _distance) exitWith {}; //Too far _isVehicle = if((_curTarget isKindOf "LandVehicle") OR (_curTarget isKindOf "Ship") OR (_curTarget isKindOf "Air")) then {true} else {false}; if(_isVehicle && _curTarget in life_vehicles) exitWith {hint localize "STR_ISTR_Lock_AlreadyHave"}; //More error checks if(!_isVehicle && !isPlayer _curTarget) exitWith {}; if(!_isVehicle && !(_curTarget getVariable["restrained",false])) exitWith {}; _title = format[localize "STR_ISTR_Lock_Process",if(!_isVehicle) then {"Handcuffs"} else {getText(configFile >> "CfgVehicles" >> (typeOf _curTarget) >> "displayName")}]; life_action_inUse = true; //Lock out other actions //Setup the progress bar disableSerialization; 5 cutRsc ["life_progress","PLAIN"]; _ui = uiNamespace getVariable "life_progress"; _progressBar = _ui displayCtrl 38201; _titleText = _ui displayCtrl 38202; _titleText ctrlSetText format["%2 (1%1)...","%",_title]; _progressBar progressSetPosition 0.01; _cP = 0.01; while {true} do { if(animationState player != "AinvPknlMstpSnonWnonDnon_medic_1") then { [[player,"AinvPknlMstpSnonWnonDnon_medic_1"],"life_fnc_animSync",true,false] spawn life_fnc_MP; player playMoveNow "AinvPknlMstpSnonWnonDnon_medic_1"; }; sleep 0; if(isNull _ui) then { 5 cutRsc ["life_progress","PLAIN"]; _ui = uiNamespace getVariable "life_progress"; _progressBar = _ui displayCtrl 38201; _titleText = _ui displayCtrl 38202; }; _cP = _cP + 0.01; _progressBar progressSetPosition _cP; _titleText ctrlSetText format["%3 (%1%2)...",round(_cP * 100),"%",_title]; if(_cP >= 1 OR !alive player) exitWith {}; if(life_istazed) exitWith {}; //Tazed if(life_interrupted) exitWith {}; if((player getVariable["restrained",false])) exitWith {}; if(player distance _curTarget > _distance) exitWith {_badDistance = true;}; }; //Kill the UI display and check for various states 5 cutText ["","PLAIN"]; player playActionNow "stop"; if(!alive player OR life_istazed) exitWith {life_action_inUse = false;}; if((player getVariable["restrained",false])) exitWith {life_action_inUse = false;}; if(!isNil "_badDistance") exitWith {titleText[localize "STR_ISTR_Lock_TooFar","PLAIN"]; life_action_inUse = false;}; if(life_interrupted) exitWith {life_interrupted = false; titleText[localize "STR_NOTF_ActionCancel","PLAIN"]; life_action_inUse = false;}; if(!([false,"lockpick",1] call life_fnc_handleInv)) exitWith {life_action_inUse = false;}; life_action_inUse = false; if(!_isVehicle) then { _curTarget setVariable["restrained",false,true]; _curTarget setVariable["Escorting",false,true]; _curTarget setVariable["transporting",false,true]; } else { _dice = random(100); if(_dice < 30) then { titleText[localize "STR_ISTR_Lock_Success","PLAIN"]; life_vehicles pushBack _curTarget; [[getPlayerUID player,profileName,"487"],"life_fnc_wantedAdd",false,false] spawn life_fnc_MP; } else { [[_curTarget],"life_fnc_CarAlarmSound",nil,true] spawn life_fnc_MP; [[getPlayerUID player,profileName,"215"],"life_fnc_wantedAdd",false,false] spawn life_fnc_MP; [[0,"STR_ISTR_Lock_FailedNOTF",true,[profileName]],"life_fnc_broadcast",west,false] spawn life_fnc_MP; titleText[localize "STR_ISTR_Lock_Failed","PLAIN"]; }; };
Mit freundlichen Grüßen
Mr.Unbekannt -
-
Ja,ACE ist installiert aber es haben komischerweise nicht immer alle das Problem.
-
Hallo,ich habe das Problem,dass man auf den Boden fällt,wenn man läuft.Manche haben dies manche nicht.
Woran könnte das liegen?
Habe ACE installiert und auch andere Mods.
Mfg
Mr. Unbekannt -
-
Hallo,ich möchte mir einen Dedicated Server zulegen für Arma 3 und noch einige andere Games.
Der Arma 3 Server sollte für 20-80 Spieler reichen und auch mit Mods spielbar sein.
Sollte ich eher Linux oder Windows holen?
Preisklasse wäre 50-80€ im Monat.
Kann mir da wer was empfehlen?Danke
Mit freundlichen Grüßen
Mr.Unbekannt -
Wie habt ihr das mit den Abstürzen minimiert?
-
Haben leider das gleiche Problem,trotz neuinstallation.....