Beiträge von vollabsicht
-
-
-
Ich weiß, aber ich will die anderen Geräusche abspielen aber wie ??!!!
[player,"mining",35,1] remoteExecCall ["life_fnc_say3D",RCLIENT];
[player,"shovel",35,1] remoteExecCall ["life_fnc_say3D",RCLIENT];
[player,"oilpump",35,1] remoteExecCall ["life_fnc_say3D",RCLIENT];
darum geht es -
Deshalb frage ich auch hier SHOXY
BLACKFISCH ?? Bitte als Code tag oder Dateianhang einbinden demnächst ??
-
Code
Alles anzeigen#include "..\..\script_macros.hpp" /* File: fn_mine.sqf Author: Devilfloh Editor: Dardo Description: Same as fn_gather,but it allows use of probabilities for mining. */ private ["_maxGather", "_resource", "_amount", "_requiredItem", "_mined"]; if (life_action_inUse) exitWith {}; if !(isNull objectParent player) exitWith {}; if (player getVariable "restrained") exitWith { hint localize "STR_NOTF_isrestrained"; }; _exit = false; if (player getVariable "playerSurrender") exitWith { hint localize "STR_NOTF_surrender"; }; life_action_inUse = true; _zone = ""; _requiredItem = ""; _resourceCfg = missionConfigFile >> "CfgGather" >> "Minerals"; _percent = (floor random 100) + 1; //Make sure it's not 0 for "_i" from 0 to count(_resourceCfg)-1 do { _curConfig = _resourceCfg select _i; _resources = getArray(_curConfig >> "mined"); _maxGather = getNumber(_curConfig >> "amount"); _zoneSize = getNumber(_curConfig >> "zoneSize"); _resourceZones = getArray(_curConfig >> "zones"); _requiredItem = getText(_curConfig >> "item"); _mined = ""; if (_resources isEqualTo []) exitWith {}; //Smart guy :O for "_i" from 0 to count (_resources) do { if (count _resources isEqualTo 1) exitWith { if (!((_resources select 0) isEqualType [])) then { _mined = _resources select 0; } else { _mined = (_resources select 0) select 0; }; }; _resource = (_resources select _i) select 0; _prob = (_resources select _i) select 1; _probdiff = (_resources select _i) select 2; if ((_percent >= _prob) && (_percent <= _probdiff)) exitWith { _mined = _resource; }; }; { if ((player distance(getMarkerPos _x)) < _zoneSize) exitWith { _zone = _x; }; } forEach _resourceZones; if (_zone != "") exitWith {}; }; if (_zone isEqualTo "") exitWith { life_action_inUse = false; }; if (_requiredItem != "") then { _valItem = missionNamespace getVariable "life_inv_" + _requiredItem; if (_valItem < 1) exitWith { switch (_requiredItem) do { case "pickaxe": { titleText[(localize "STR_NOTF_Pickaxe"), "PLAIN"]; }; case "oilpump": { titleText[(localize "STR_NOTF_Oilpump"), "PLAIN"]; }; case "shovel": { titleText[(localize "STR_NOTF_Shovel"), "PLAIN"]; }; case "harvestingsickle": { titleText[(localize "STR_NOTF_Harvestingsickle"), "PLAIN"]; }; case "frognet": { titleText[(localize "STR_NOTF_Frognet"), "PLAIN"]; }; case "svampekniv": { titleText[(localize "STR_NOTF_Svampekniv"), "PLAIN"]; }; }; life_action_inUse = false; _exit = true; }; }; if (_exit) exitWith { life_action_inUse = false; }; _amount = round(random(_maxGather)) + 1; _diff = [_mined, _amount, life_carryWeight, life_maxWeight] call life_fnc_calWeightDiff; if (_diff isEqualTo 0) exitWith { hint localize "STR_NOTF_InvFull"; life_action_inUse = false; }; [player,"mining",35,1] remoteExecCall ["life_fnc_say3D",RCLIENT]; [player,"shovel",35,1] remoteExecCall ["life_fnc_say3D",RCLIENT]; [player,"oilpump",35,1] remoteExecCall ["life_fnc_say3D",RCLIENT]; for "_i" from 0 to 4 do { player playMoveNow "AinvPercMstpSnonWnonDnon_Putdown_AmovPercMstpSnonWnonDnon"; waitUntil { animationState player != "AinvPercMstpSnonWnonDnon_Putdown_AmovPercMstpSnonWnonDnon"; }; sleep 0.5; }; if (([true, _mined, _diff] call life_fnc_handleInv)) then { _itemName = M_CONFIG(getText, "VirtualItems", _mined, "displayName"); titleText[format [localize "STR_NOTF_Mine_Success", (localize _itemName), _diff], "PLAIN"]; }; sleep 2.5; life_action_inUse = false;
ok sorry die warte Zeit .Ist auch ein wenig auf Dänisch Verzeihung
-
Ich habe alles in den Dateien gemacht
fn_gather.sqf
fn_mine.sqf
Config_Gather.hpp
Config_vItems.hpp
description.ext
aber es spielt alle die Töne ab von Spitzhacke zu Schaufel + mehr. Ich weiß nicht, wo ich sonst was mache muss
-
Guten Abend, wo kannst du die Zeit einstellen, wie lange es funktionieren soll?
-
hmmm sorry from denmark!! aber ich spräche ger . I cant test the player for drugs and alkohol and no Fehler in the RPT can some one help me !!!
-
hello TW_Sebastian i understand germany that you can right. But can you join my teamspeak then i can explaine plz
-
Hello i need some help. I got and Endmission ""only sometimes"" when ppl join the server i speak germean but cant right it so good my teamspeak is 137.74.12.8 hope you can help
-
PLZ can some one help on this my hair is gray now
-
Hmmmmm sorry still the same maby you can help over TS my ip is 46.32.54.172 there we can talk or over teamwiewer hope you can help me ABTW you are very nice in here SKÅLL all
-
after the new update from altis life i can get my BEC to run is the 4.4r2
19:06:06 : No Valid response. Trying to reconnect.!
19:06:10 : No Valid response. Trying to reconnect.!
19:07:21 : No Valid response. Trying to reconnect.!
19:07:25 : No Valid response. Trying to reconnect.!
19:07:29 : No Valid response. Trying to reconnect.!
19:07:33 : Lost Connection!
19:07:33 : Closing socket & exiting!
19:09:46 : No Valid response. Trying to reconnect.!
19:09:50 : No Valid response. Trying to reconnect.!
19:09:54 : No Valid response. Trying to reconnect.!
19:09:58 : Lost Connection!
19:09:58 : Closing socket & exiting!And i have try eveything
Can some one help me i talk GER or Danish