Philip123 häng mal die fn_unrestrain.sqfcopInteractionMenu.sqf und fn_action.Keyhandler.sqfan.
[Tutorial] Kabelbinder mit Knebel und Augenbinden für Civs
-
- Altis Life
-
AvirexDE -
22. Juli 2017 um 17:34
Hinweis zur Zukunft von Nodezone
Das neue Nodezone befindet sich in der finalen Entwicklungsphase. Mit dem geplanten Start wird das bisherige Forum auf Read Only umgestellt und künftig als Archiv erhalten bleiben.
Alle Informationen zur neuen Plattform, zur Accountübernahme und zum weiteren Ablauf findest du hier: Zum aktuellen Nodezone Beitrag
Das neue Nodezone befindet sich in der finalen Entwicklungsphase. Mit dem geplanten Start wird das bisherige Forum auf Read Only umgestellt und künftig als Archiv erhalten bleiben.
Alle Informationen zur neuen Plattform, zur Accountübernahme und zum weiteren Ablauf findest du hier: Zum aktuellen Nodezone Beitrag
-
-
OK hier sind sie AvirexDE
-
Philip123 ich habe die Dateien bearbeitet, sie befinden sich im Anhang einfach austauschen.
-
AvirexDE Super Danke! Klappt alles!
-
Bei kann ich die Leute als Cop nicht mehr festnehmen...
Server Logs:
arma3server_2018-05-04_19-19-50.rpt
-
da sind die clientlogs spannender

-
Bei kann ich die Leute als Cop nicht mehr festnehmen...
Guck mal 2 Posts weiter oben... Das Problem hatte ich auch aber Avirex hat es behoben
-
Müsste ich eig. auch gefixt haben... ich guck mal ob ich wieder jemanden finde

-
Ich bekomme jetzt ein Error:
arma3server_2018-05-05_12-53-44.rptSQL: fn_copInterationMenu.sqf
Alles anzeigen#include "..\..\script_macros.hpp" /* File: fn_copInteractionMenu.sqf Author: Bryan "Tonic" Boardwine Description: Replaces the mass addactions for various cop actions towards another player. */ #define Btn1 37450 #define Btn2 37451 #define Btn3 37452 #define Btn4 37453 #define Btn5 37454 #define Btn6 37455 #define Btn7 37456 #define Btn8 37457 #define Btn9 37458 #define Title 37401 private["_display","_curTarget","_seizeRank","_Btn1","_Btn2","_Btn3","_Btn4","_Btn5","_Btn6","_Btn7","_Btn8","_Btn9"]; disableSerialization; _curTarget = param [0,objNull,[objNull]]; _seizeRank = LIFE_SETTINGS(getNumber,"seize_minimum_rank"); if (player getVariable ["Escorting", false]) then { if (isNull _curTarget) exitWith {closeDialog 0;}; //Bad target if (!isPlayer _curTarget && side _curTarget isEqualTo civilian) exitWith {closeDialog 0;}; //Bad side check? if (player distance _curTarget > 4 ) exitWith {closeDialog 0;}; // Prevents menu accessing from far distances. }; if (!dialog) then { createDialog "pInteraction_Menu"; }; _display = findDisplay 37400; _Btn1 = _display displayCtrl Btn1; _Btn2 = _display displayCtrl Btn2; _Btn3 = _display displayCtrl Btn3; _Btn4 = _display displayCtrl Btn4; _Btn5 = _display displayCtrl Btn5; _Btn6 = _display displayCtrl Btn6; _Btn7 = _display displayCtrl Btn7; _Btn8 = _display displayCtrl Btn8; _Btn9 = _display displayCtrl Btn9; life_pInact_curTarget = _curTarget; switch (playerSide) do { case west: { if (player getVariable ["isEscorting",false]) then { { _x ctrlShow false; } forEach [_Btn1,_Btn2,_Btn3,_Btn5,_Btn6,_Btn7,_Btn8,_Btn9]; }; //Set Unrestrain Button _Btn1 ctrlSetText localize "STR_pInAct_Unrestrain"; _Btn1 buttonSetAction "[life_pInact_curTarget] call life_fnc_unrestrain; closeDialog 0;"; //Set Check Licenses Button _Btn2 ctrlSetText localize "STR_pInAct_checkLicenses"; _Btn2 buttonSetAction "[player] remoteExecCall [""life_fnc_licenseCheck"",life_pInact_curTarget]; closeDialog 0;"; //Set Search Button _Btn3 ctrlSetText localize "STR_pInAct_SearchPlayer"; _Btn3 buttonSetAction "[life_pInact_curTarget] spawn life_fnc_searchAction; closeDialog 0;"; //Set Escort Button if (player getVariable ["isEscorting",false]) then { _Btn4 ctrlSetText localize "STR_pInAct_StopEscort"; _Btn4 buttonSetAction "[] call life_fnc_stopEscorting; closeDialog 0;"; } else { _Btn4 ctrlSetText localize "STR_pInAct_Escort"; _Btn4 buttonSetAction "[life_pInact_curTarget] call life_fnc_escortAction; closeDialog 0;"; }; //Set Ticket Button _Btn5 ctrlSetText localize "STR_pInAct_TicketBtn"; _Btn5 buttonSetAction "[life_pInact_curTarget] call life_fnc_ticketAction;"; _Btn6 ctrlSetText localize "STR_pInAct_Arrest"; _Btn6 buttonSetAction "[life_pInact_curTarget] call life_fnc_arrestAction; closeDialog 0;"; _Btn6 ctrlEnable false; _Btn7 ctrlSetText localize "STR_pInAct_PutInCar"; _Btn7 buttonSetAction "[life_pInact_curTarget] call life_fnc_putInCar; closeDialog 0;"; //SeizeWeapons Button _Btn8 ctrlSetText localize "STR_pInAct_Seize"; _Btn8 buttonSetAction "[life_pInact_curTarget] spawn life_fnc_seizePlayerAction; closeDialog 0;"; _Btn9 ctrlSetText localize "STR_pInAct_RevokeLicense"; _Btn9 buttonSetAction "[life_pInact_curTarget] call life_fnc_revokeLicense;"; if (FETCH_CONST(life_coplevel) < _seizeRank) then {_Btn8 ctrlEnable false;}; { if ((player distance (getMarkerPos _x) <30)) exitWith { _Btn6 ctrlEnable true;}; } forEach LIFE_SETTINGS(getArray,"sendtoJail_locations"); }; case civilian: { if (player getVariable ["isEscorting",false]) then { { _x ctrlShow false; } forEach [_Btn1,_Btn2,_Btn4,_Btn5,_Btn6]; }; if (player getVariable ["isEscorting",false]) then { _Btn3 ctrlSetText localize "STR_pInAct_StopEscort"; _Btn3 buttonSetAction "[] call life_fnc_stopEscorting; closeDialog 0;"; } else { _Btn3 ctrlSetText localize "STR_pInAct_Escort"; _Btn3 buttonSetAction "[life_pInact_curTarget] call life_fnc_escortAction; closeDialog 0;"; }; _Btn4 ctrlSetText localize "STR_pInAct_PutInCar"; _Btn4 buttonSetAction "[life_pInact_curTarget] call life_fnc_putInCar;"; //SeizeWeapons Button _Btn5 ctrlSetText localize "STR_pInAct_Seize"; _Btn5 buttonSetAction "[life_pInact_curTarget] spawn life_fnc_seizePlayerAction; closeDialog 0;"; if ((_curTarget getVariable ["blindfolded", false])) then { _Btn2 ctrlSetText "Remove blindfold"; _Btn2 buttonSetAction "[] call life_fnc_untieb; closeDialog 0;"; } else { _Btn2 ctrlSetText "Blindfold Person"; _Btn2 buttonSetAction "[] call life_fnc_tieingActionb; closeDialog 0;"; }; if ((_curTarget getVariable ["gagged", false])) then { _Btn6 ctrlSetText "Remove Gag"; _Btn6 buttonSetAction "[] call life_fnc_removeGagAction; closeDialog 0;"; } else { _Btn6 ctrlSetText "Gag Person"; _Btn6 buttonSetAction "[] call life_fnc_gagAction; closeDialog 0;"; }; if (!(_curTarget getVariable ["tied", false])) then { _Btn1 ctrlSetText "Ziptie Person"; _Btn1 buttonSetAction "[] call life_fnc_tieingAction; closeDialog 0;"; _Btn2 ctrlEnable false; _Btn3 ctrlEnable false; _Btn4 ctrlEnable false; _Btn5 ctrlEnable false; _Btn6 ctrlEnable false; } else { _Btn1 ctrlSetText "Remove Zipties"; _Btn1 buttonSetAction "[] call life_fnc_untie; closeDialog 0;"; }; if (player getVariable ["isEscorting",false]) then { { _x ctrlShow false; } forEach [_Btn1,_Btn2,_Btn4,_Btn5,_Btn6]; _Btn3 ctrlEnable true; }; _Btn7 ctrlShow false; _Btn8 ctrlShow false; }; }; }; -
TheFireRunner Felix wiederhol den Schritt 9: nochmnal. Ich habe das Tutorial da geändert. Da Woltlab es nicht gebacken bekommt die Formatierung einzuhalten. Hab ich das ganze in eine Datei verpackt.

-
Oki ich gucki
-
Leider geht es nochimmer nicht... wenn ich Shift+R drücke lädt der nur seine Waffe nach...
Was muss denn in der fn_keyHander.sqf rein?
Weil ich hatte da noch ein anderes kabelbinder script und jetzt ist da was "anderes" 
Spoiler anzeigen
//Restraining (Shift + R)
case 19: {
if (_shift) then {_handled = true;};
if (_shift && playerSide isEqualTo west && {!isNull cursorObject} && {cursorObject isKindOf "Man"} && {(isPlayer cursorObject)} && {(side cursorObject in [civilian,independent])} && {alive cursorObject} && {cursorObject distance player < 3.5} && {!(cursorObject getVariable "Escorting")} && {!(cursorObject getVariable "restrained")} && {speed cursorObject < 1}) then {
[] call life_fnc_restrainAction;
} else {
if (_shift && playerSide isEqualTo civilian && {!isNull cursorObject} && {cursorObject isKindOf "Man"} && {(isPlayer cursorObject)} && {(side cursorObject in [civilian,west])} && {alive cursorObject} && {cursorObject distance player < 3.5} && {!(cursorObject getVariable "Escorting")} && {!(cursorObject getVariable "restrained")} && {speed cursorObject < 1}) then {
if (life_inv_kabelbinder > 0) then {
if ([false,"kabelbinder",1] call life_fnc_handleInv) then {
[] call life_fnc_restrainAction;
} else {hintSilent "Du besitzt keine Kabelbinder";};
} else {hintSilent "Du besitzt keine Kabelbinder";};
};
};
};
-
Hay,
ich habe alles so gemacht wie es im Tutorial steht doch leider kann ich die nicht fesseln und ja er hat die Hände überdem Kopf Es kommt auch keine Fehlermeldung. -
Poste am besten mal deine Dateien und du solltest die anderen Fehler auch beheben die in den Logs auftauchen.
Code
Alles anzeigenRPT-LOG 21:37:09 Error in expression <merzmittel hat erfolgreich gewirkt"); };> 21:37:09 Error position: <};> 21:37:09 Error Missing { 21:37:09 File core\functions\fn_painkiller.sqf [life_fnc_painkiller], line 28 21:37:09 Error in expression <merzmittel hat erfolgreich gewirkt"); };> 21:37:09 Error position: <};> 21:37:09 Error Missing { 21:37:09 File core\functions\fn_painkiller.sqf [life_fnc_painkiller], line 28 21:37:10 CallExtension 'ARMA_LOG' could not be found 22:38:52 String STR_MAR_HQ_Security not found Wrong color format 57 22:39:01 Wrong color format 57 22:39:01 Wrong color format 604,554 22:39:01 Wrong color format 604,554 22:39:01 Wrong color format 604,554 22:39:01 Wrong color format 604,554 22:39:01 Wrong color format 604,554 22:39:01 Wrong color format 604,554 (Irgendwo ein falscher Farbcode eingegeben) -
Crynex Danke für den hinweis der Fehler die habe ich auch schon gesehen

Dateien sind alle in der ZIP -
LonoxX im Dateianhang findest du deine Dateien, ich habe diese entsprechend bearbeitet. Deshalb bitte alle ersetzen.
Das Tutorial ist nicht für Copy & Paste gedacht, man muss selber etwas Verständnis dafür haben und die Formatierung entsprechend anpassen.
-
Vielen Dank AvirexDE
-
Em ich habe das Problem wenn ich auf den Server joine das , das hier steht aber ich habe die Datei eingefügt , woran liegt das?
">
-
Em ich habe das Problem wenn ich auf den Server joine das , das hier steht aber ich habe die Datei eingefügt , woran liegt das?
auch in der Functions?
-
auch in der Functions?
Ja
-