Doppelposts beziehen sich auf Beiträge. Klar wurde es schon geantwortet, weh tut's aber nicht
Wäre das ganze hier ne Threadleiche, hätte es dafür ne Verwarnung gegeben ![]()
Beiträge von blackfisch
-
-
Kann für dich auch die Positionen raus suchen. Arbeit von paar Minuten.
lass die Leute doch auch mal selbst arbeiten Fox

-
Den NRM gibt es nicht mehr, da dieser fehlerhaft war und meines Wissens nach nicht mehr weiterentwickelt wird
-
damit kannst du die Koordinaten raussuchen
RichertA warum der Dislike? ist doch vollkommen richtig
-
Revive auch definiert in der description.ext?
-
...Wäre dann ein stumpfer Hotkey nicht einfacher? Bitte dazu neues Thema eröffnen
-
müsstest du einiges umschreiben, da das Nagelband ja auch die Funktion an sich braucht
-
-
Öffnet eure config.cpp und fügt über class Systems folgendes ein
über class Systems, nicht über class Life_Systems
Da dachte ich schon, so ist das Idiotensicher formuliert
Code: config.cpp
Alles anzeigenclass DefaultEventhandlers; class CfgPatches { class life_server { units[] = {"C_man_1"}; weapons[] = {}; requiredAddons[] = {"A3_Data_F","A3_Soft_F","A3_Soft_F_Offroad_01","A3_Characters_F"}; fileName = "life_server.pbo"; author = "Tonic"; }; }; class CfgFunctions { class MySQL_Database { tag = "DB"; class MySQL { file = "\life_server\Functions\MySQL"; class numberSafe {}; class mresArray {}; class queryRequest{}; class asyncCall{}; class insertRequest{}; class updateRequest{}; class mresToArray {}; class insertVehicle {}; class bool {}; class mresString {}; class updatePartial {}; }; }; class Life_System { tag = "life"; class Wanted_Sys { file = "\life_server\Functions\WantedSystem"; class wantedFetch {}; class wantedPerson {}; class wantedBounty {}; class wantedRemove {}; class wantedAdd {}; class wantedCrimes {}; class wantedProfUpdate {}; }; class Jail_Sys { file = "\life_server\Functions\Jail"; class jailSys {}; }; class Client_Code { file = "\life_server\Functions\Client"; }; }; class TON_System { tag = "TON"; class DynMarket { file = "\life_server\Functions\DynMarket"; class calculatePrices {}; class config {}; class getUpdate {}; class HandleDB {}; class playerLogged {}; class sleeper {}; }; class Systems { file = "\life_server\Functions\Systems"; class managesc {}; class cleanup {}; class huntingZone {}; class getID {}; class vehicleCreate {}; class spawnVehicle {}; class getVehicles {}; class vehicleStore {}; class vehicleDelete {}; class spikeStrip {}; class transferOwnership {}; class federalUpdate {}; class chopShopSell {}; class clientDisconnect {}; class cleanupRequest {}; class setObjVar {}; class keyManagement {}; class vehicleUpdate {}; class recupkeyforHC {}; class handleBlastingCharge {}; }; class Housing { file = "\life_server\Functions\Housing"; class addHouse {}; class addContainer {}; class deleteDBContainer {}; class fetchPlayerHouses {}; class initHouses {}; class sellHouse {}; class sellHouseContainer {}; class updateHouseContainers {}; class updateHouseTrunk {}; class houseCleanup {}; class houseGarage {}; }; class Gangs { file = "\life_server\Functions\Gangs"; class insertGang {}; class queryPlayerGang {}; class removeGang {}; class updateGang {}; }; class Actions { file = "\life_server\Functions\Actions"; class pickupAction {}; }; class PlayTime { file = "\life_server\Functions\PlayTime"; class setPlayTime {}; class getPlayTime {}; }; }; }; class CfgVehicles { class Car_F; class CAManBase; class Civilian; class Civilian_F : Civilian { class EventHandlers; }; class C_man_1 : Civilian_F { class EventHandlers: EventHandlers { init = "(_this select 0) execVM ""\life_server\fix_headgear.sqf"""; }; }; }; -
Code
17:09:11 Error in expression <jectile","_part","_curWep"]; _unit = SEL(_this,0); _part = SEL(_this,1); _damage> 17:09:11 Error position: <(_this,0); _part = SEL(_this,1); _damage> 17:09:11 Error Missing ; 17:09:11 File core\functions\fn_handleDamage.sqf [life_fnc_handleDamage], line 68der kommt vom stumpfen Copy&Paste irgendwo her behaupte ich mal
Code
Alles anzeigen17:09:41 Error in expression <hwarzpulver",35000, ["goldbar",200000] ]; DYNMARKET_Items_CurrentPriceArr => 17:09:41 Error position: <; DYNMARKET_Items_CurrentPriceArr => 17:09:41 Error Missing ] 17:09:41 File life_server\Functions\DynMarket\fn_config.sqf, line 109der von ner unsauberen Config.
Zeile 107: [schwarzpulver",35000, <- fehlt eine Klammer nach der 35000
-
-
PBO neu gepackt und auf dem Server ersetzt?
-
ist ein Link -> klick mal drauf

-
blackfisch na dann lag ich ja gar nicht soweit daneben, ok das mit der Public Variable hat gefehlt

und bei Start des Servers würde ich das auch eher so machen, damit man nicht gleich in den ersten 5 min das ding ausrauben kann.
kann man machen, muss jeder für mich selbst wissen
Für mich persönlich macht das generell keinen Sinn, weil warum sollte man nicht mehrere überfallen können? :p -
moeck könnte, wird's aber net
keine publicVariable :pCode
Alles anzeigen//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 _timer = 300; // 5*60=300 == 5min if (servertime < life_nextrob) exitWith {hintSilent format ["You can not rob this station! Because there was a robbery already and all stations are warned! Please wait %1 seconds", (life_nextrob - servertime)] }; 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 { life_nextrob = servertime + _timer; publicVariable "life_nextrob"; 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 _timer; _action = _shop addAction["Rob the Gas Station",life_fnc_robShops]; _shop switchMove "";sowie folgendes in die initServer.sqf:
Soll ja für alle gelten, also bitte per publicVariable :p
-
[life_corpse,"Revive"] remoteExec ["life_fnc_say3D",RANY];
ersetz mal mit
[_target,"Revive"] remoteExec ["life_fnc_say3D",RANY];
-
keine Lösung, aber eine Idee. Poste ich wenn ich nachher am Rechner bin
-
Code
Alles anzeigenclass Los Diablos { displayName = "Los Diablos"; spawnMarker = "civ_spawn_3"; icon = "\a3\ui_f\data\map\MapControl\watertower_ca.paa"; conditions = ""; }; class Danky Town { displayName = "Danky Town"; spawnMarker = "civ_spawn_2"; icon = "\a3\ui_f\data\map\MapControl\watertower_ca.paa"; conditions = ""; };Keine Leerzeichen in Classbezeichnern

-
Eigentlich kannst du dir das kicken sparen
Richtig - warum willst du das denn tun?
-
& die fn_insertPlayerInfo.sqf bitte