Also ich hab das nun so geändert.
Es kommt immernoch die gleiche Meldung.
Bash: fn_jail.sqf
#include <macro.h>
/*
File: fn_jail.sqf
Author: Bryan "Tonic" Boardwine
Description:
Starts the initial process of jailing.
*/
private["_bad","_unit","_time"];
_unit = [_this,0,ObjNull,[ObjNull]] call BIS_fnc_param;
hint format["%1", _unit];
if(isNull _unit) exitWith {}; //Dafuq?
if(_unit != player) exitWith {}; //Dafuq?
if(life_is_arrested) exitWith {}; //Dafuq i'm already arrested
_bad = [_this,1,false,[false]] call BIS_fnc_param;
_time = [_this,2,15,[0]] call BIS_fnc_param;
player SVAR ["restrained",false,true];
player SVAR ["Escorting",false,true];
player SVAR ["transporting",false,true];
titleText[localize "STR_Jail_Warn","PLAIN"];
hint localize "STR_Jail_LicenseNOTF";
player setPos (getMarkerPos "jail_marker");
if(_bad) then {
waitUntil {alive player};
sleep 1;
};
//Check to make sure they goto check
if(player distance (getMarkerPos "jail_marker") > 40) then {
player setPos (getMarkerPos "jail_marker");
};
[1] call life_fnc_removeLicenses;
if(life_inv_heroin_unprocessed > 0) then {[false,"heroinUnprocessed",life_inv_heroin_unprocessed] call life_fnc_handleInv;}; //heroinu
if(life_inv_heroin_processed > 0) then {[false,"heroinProcessed",life_inv_heroin_processed] call life_fnc_handleInv;}; //heroinp
if(life_inv_cocaine_unprocessed > 0) then {[false,"cocaineUnprocessed",life_inv_cocaine_unprocessed] call life_fnc_handleInv;}; //cocaine
if(life_inv_cocaine_processed > 0) then {[false,"cocaineProcessed",life_inv_cocaine_processed] call life_fnc_handleInv;}; //cocainep
if(life_inv_lsd > 0) then {[false,"lsd",life_inv_lsd] call life_fnc_handleInv;};
if(life_inv_turtle_raw > 0) then {[false,"turtle",life_inv_turtle_raw] call life_fnc_handleInv;};
if(life_inv_cannabis > 0) then {[false,"cannabis",life_inv_cannabis] call life_fnc_handleInv;};
if(life_inv_marijuana > 0) then {[false,"marijuana",life_inv_marijuana] call life_fnc_handleInv;};
if(life_inv_mash > 0) then {[false,"mash",life_inv_mash] call life_fnc_handleInv;}; //Moonshine
if(life_inv_moonshine > 0) then {[false,"moonshine",life_inv_moonshine] call life_fnc_handleInv;}; //Moonshine
if(life_inv_bottledshine > 0) then {[false,"bottledshine",life_inv_bottledshine] call life_fnc_handleInv;}; //Moonshine
[] call life_fnc_jailMe;
life_is_arrested = true;
removeAllWeapons player;
{player removeMagazine _x} foreach (magazines player);
[[player,_bad,_time],"life_fnc_jailSys",false,false] call life_fnc_MP;
[5] call SOCK_fnc_updatePartial;
Alles anzeigen
Außerdem kommt nun bei dem Beschlagnahmen der Waffe das hier.
Irgendwie werden es immer mehr Meldungen statt weniger.
Bash: fn_seizePlayerWeaponAction.sqf
/*
File: fn_seizePlayerWeaponAction.sqf
Author: Skalicon
Description:
Removes the players weapons client side
*/
removeAllWeapons player;
[] call life_fnc_civFetchGear;
[] call life_fnc_sessionUpdate; //Should make weapon remove persistent
[] call life_fnc_civLoadGear;
titleText["Deine Waffen wurden beschlagnahmt.","PLAIN"];
Alles anzeigen
Kann es sein dass diese Funktionen bei der 4.0 auch anders heißen als bei 3.1.4.8? Bin mir nicht sicher ob das Tut als ich das gemacht hatte für 4.0 war.