Es Funktioniert
Vielen dank hail
Es Funktioniert
Vielen dank hail
so jetzt aber
23:08:10 " End of Altis Life Client Init :: Total Execution Time 4.23206 seconds "
23:08:10 "----------------------------------------------------------------------------------------------------"
23:08:26 Error in expression <playableUnits);
if(_cops < 1) exitWith{[_vault,-1] remoteExec ["disableSerializa>
23:08:26 Error position: <_vault,-1] remoteExec ["disableSerializa>
23:08:26 Error Nicht definierte Variable in Ausdruck: _vault
23:08:26 File mpmissions\__CUR_MP.[lexicon]Tanoa[/lexicon]\core\actions\fn_robShops.sqf, line 24
23:08:26 Error in expression <_MP.Tanoa\core\actions\fn_robShops.sqf"
params [
["_shop",objNull,[objNull]],
[>
23:08:26 Error position: <params [
["_shop",objNull,[objNull]],
[>
23:08:26 Error 1 Elemente angegeben, 2 erwartet
23:08:26 File mpmissions\__CUR_MP.[lexicon]Tanoa[/lexicon]\core\actions\fn_robShops.sqf, line 1
Ok
Geht immer noch nicht hier mal der Fehler mit rpt
22:51:35 "----------------------------------------------------------------------------------------------------"
22:51:35 " End of Altis Life Client Init :: Total Execution Time 7.25598 seconds "
22:51:35 "----------------------------------------------------------------------------------------------------"
22:51:36 Fresnel k must be >0, given n=1,k=0
22:51:36 Fresnel n must be >0, given n=0,k=0
22:51:36 Fresnel k must be >0, given n=0.001,k=0
22:52:15 slb2k11_city\proxys\yetski.p3d: vehicle, config class missing
22:52:15 slb2k11_city\proxys\yetskired.p3d: vehicle, config class missing
22:52:32 Error in expression <playableUnits);
if(_cops < 1) exitWith{[_vault,-1] remoteExec ["disableSerializa>
22:52:32 Error position: <_vault,-1] remoteExec ["disableSerializa>
22:52:32 Error Nicht definierte Variable in Ausdruck: _vault
22:52:32 File mpmissions\__CUR_MP.[lexicon]Tanoa[/lexicon]\core\actions\fn_robShops.sqf, line 21
22:52:32 Error in expression <_MP.Tanoa\core\actions\fn_robShops.sqf"
params [
["_shop",objNull,[objNull]],
[>
22:52:32 Error position: <params [
["_shop",objNull,[objNull]],
[>
22:52:32 Error 1 Elemente angegeben, 2 erwartet
22:52:32 File mpmissions\__CUR_MP.[lexicon]Tanoa[/lexicon]\core\actions\fn_robShops.sqf, line 1
Edit:
sry hab was falsch gemacht meld mich gleich wieder
Ok
Vielen Dank dafür werde es testen und mich nochmal melden.
ok
vielen dank
Ok glaube die fehler gehen nach und nach weiter.
Hier die fn_robShop.sqf Aktuell und den rpt log.
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 (http://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 (isNil "_kassa") exitWith { _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 >= 1) then {[1,format["ALARM! - Gasstation: %1 is being robbed!", _shop]] remoteExec ["life_fnc_broadcast",west]; };
_cops = (west countSide playableUnits);
if(_cops < 1) exitWith{[_vault,-1] remoteExec ["disableSerialization;",2]; 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 {};
};
uiSleep 300;
_action = _shop addAction["Rob the Gas Station",life_fnc_robShops];
_shop switchMove "";
Guten Abend zusammen
Als erstes das das Perso script ist wirklich sehr gut gefällt mir richtig gut.
Nur hab ich ein Problem das wenn ich den Perso einmal aufrufe das er dann nicht mehr weg geht er bleibt die ganze zeit im bild.
ja hab ich rein gemacht aber dann kommt das
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 (http://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 (isNil _kassa) exitWith { _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 >= 1) then {[1,format["ALARM! - Gasstation: %1 is being robbed!", _shop]] remoteExec ["life_fnc_broadcast",west]; };
_cops = (west countSide playableUnits);
if(_cops < 1) exitWith{[_vault,-1] remoteExec ["disableSerialization;",2]; 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 {};
};
uiSleep 300;
_action = _shop addAction["Rob the Gas Station",life_fnc_robShops];
_shop switchMove "";
Ok
Hab ich gemacht dann bekomme ich die Meldung siehe Bild.
Und hier mal die fn_robShop.sqf
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 (http://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 >= 1) then {[1,format["ALARM! - Gasstation: %1 is being robbed!", _shop]] remoteExec ["life_fnc_broadcast",west]; };
_cops = (west countSide playableUnits);
if(_cops < 1) exitWith{[_vault,-1] remoteExec ["disableSerialization;",2]; 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 {};
};
uiSleep 300;
_action = _shop addAction["Rob the Gas Station",life_fnc_robShops];
_shop switchMove "";
Hi
mach es einfach so @CUP_UNITS und mit den anderen 2 genau so und benenne die ordner auch so dann sollte es gehn
Hi
Schon den A3l Taser versucht der ist auch ganz gut
hi zusammen
Ich versuch es mal hier vllt kann mir ja hier jemand weiter helfen.
Also ich habe das tut https://native-network.net/thread/3584-tu…35270#post35270 für das Tankstellen Ausrauben versucht einzufügen.
Nun hab ich das Problem das ich einen Script Fehler bekomme siehe BILD.
Zur INFO ich benutze die Altis Life RPG V5.0.0
Bin um jede Hilfe dankbar
Das ist die Life RPB V5.0.0
Hallo zusammen
Ich hab das Script wie im tut mit eingebunden aber ich bekomme einen Script Fehler hmm
Vllt kann mir da jemand weiter helfen.
Danke für die Hilfe werden es die Nacht mal testen
Nein Sitzt alles wie es soll an der stelle ist im Editor auch kein Krankenhaus das kommt erst wenn der Server an ist.
Haben auch in der @life_server den Maker von dem Krankenhaus gefunden und auch mal Test halber entfernt aber immer noch das selbe Problem nur halt ohne Krankenhaus am Meeresgrund
Hallo nochmal zusammen
Jetzt hab ich das nexte Problem das wenn einer der Medic seinen Heli aus der Garage nehmen will Spawnt er am 0 punkt der Map also links unten an der ecke der Karte ziemlich hoch in der Luft.
Was auch komisch ist das dort das Krankenhaus von Kavala auf Meeresgrund steht.
Zur INFO das ganze wird bei uns auf [lexicon]Tanoa[/lexicon] gespielt.
Und das ganze macht nur beim Medic Heli Garage die Probleme Fahrzeuge gehn ohne Probleme.
Civ und Cop geht alles wie es soll.
Vllt kann uns da mal jemand weiterhelfen
Kann Geschlossen werden
Das ist der A3L Taser den link hab ich glaub nicht mehr, aber ich werd in suchen kann in dir auch Hochladen.