Hat sich erledigt
Beiträge von Sw4mP
-
-
Okey, danke, ich werde mich da mal ransetzen
-
Hallo,
wenn jemand bei mir auf'm server in ner Gang ist, kann er nicht joinen. Dann steht da: Frage Spielerinformationen zu UUID.. ab, oder so.
Kennt jemand ne lösung ?
Danke im Vorraus! -
-
Hallo,
wenn man sich nen Haus kauft, und einmal vom Server geht, sind die Schlüssel weg, ich denke das hat mit der Datenbank zu tun, aber was genau muss man machen ?
Danke im Vorraus!
Edit:
Das haus wird in der Datenbank angezeigt, nur der User hat den schlüssel nicht.
-
Hallo,
zurzeit ist es bei mir so, dass die Cops ganz Selten gerufen werden, wo kann ich einstellen, dass sie immer Gerufen werden (Also das immer ne Nachricht kommt).
Es hat ja hier mit was zu tun:
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; };
aber was genau heißt >=85 ?Außerdem wird, wenn 2 Tankstellen gleichzeitig ausgeraubt werden, nur eine auf der Map angezeigt, wie kann man das ändern ?
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 { 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 = 40000 + round(random 120000); _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 1.3; _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 "";
Danke schonmal!
-
-
Danke für die Antworten!
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
-
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
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 { 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 "";
Danke im Vorraus!
-
-
-
Moin,
erstmal voraus, ich bin kein Profi Scripter, ich mache das nur, um Privat bisschen mit paar Kumpels zu spiele.
Ich möchte, das mehrere Fahrzeuge der Cops, EMP'n können. Ich hatte das schonmal umgestellt, weiß aber die Datei nichtmehr
Danke schonmal!
-
Ja, weiß ich Aber von unser ehemaliger server war 3.1.4.8, und dann habe ich einfach den Wieder drauf gemacht ;D
-
Moin,
erstmal voraus, ich bin kein Profi Scripter, ich mache das nur, um Privat bisschen mit paar Kumpels zu spiele.
Wie muss ich die Bank richtig verschieben ? Ich weiß, dass ich irgendwelche Koordinaten in der @life_server ändern muss (Wenn das überhaupt stimmt) Und dann einfach diesen Bank Container verschieben auf der Map.
Wie verhält sich das mit den Türen, muss man dann alle Türen im Umkreis aufbrechen ?Danke schonmal!
-
Moin,
erstmal voraus, ich bin kein Profi Scripter, ich mache das nur, um Privat bisschen mit paar Kumpels zu spiele.
Wie kann ich einstellen, das Cops auch leute wiederbeleben können ?
Danke schonmal!
-
Hallo. Wir haben heute erst herausgefunden, dass der Tempest Gerät nur Sachen farmt, welche man mit der Spitzhacke abbauen kann. Wo kann ich das ändern ?
Danke schonmal
~ SwamP
-
-
Hey Leute,
weiß jemand wo ich einstelle, wer Objekte wie Spikes aufheben kann ? Also mir wer ist Cop, Ziv oder Medic gemeint.
Danke im Vorraus!
~ SwamP
-
Hey Leute,
gibt es eine Möglich das ich einen Typen hinstelle, dann Scrolle ich dadran, dann kriege ich kostenlos ein Item. Das kann ich belibig oft wiederholen, bis mein Inv voll ist. Evtl. noch mit Cooldown, d.h. ich kann nur jede Minute einen Einsammeln
Jemand ne Idee ?
Danke im Vorraus!
~ SwamP
-