Hallo NN Community,
Viele kennen es, viele nicht bei Altis Life 4.4r3 oder auch bei anderen Version aktualisiert sich die Uniform nicht sofort, oder einfach gar nicht.
Bei dieser Art von aktualisieren geht es um das Speichern.
Klickt ein Spieler auf Speichern, aktualisiert sich seine Uniform für alle Spieler.
Ihr müsst dem Spieler dann nur im Roleplay beibringen, dass seine Uniform nicht lädt
Kommen wir zum Tutorial :
Ihr öffnet im core\functions\fn_saveGear.sqf
-> Ihr scrollt ganz nach unten und fügt diese 2 ein, ja hudUpdate hab ich nur aus jucks rein gemacht.
Das ganze sollte dann so aussehen :
Code
#include "..\..\script_macros.hpp"
/*
File: fn_saveGear.sqf
Author: Bryan "Tonic" Boardwine
Full Gear/Y-Menu Save by Vampire
Edited: Itsyuka & Brizi Jaeger | Aktualisieren der Uniform
Description:
Saves the players gear for syncing to the database for persistence..
*/
private["_return","_uItems","_bItems","_vItems","_pItems","_hItems","_yItems","_uMags","_vMags","_bMags","_pMag","_hMag","_uni","_ves","_bag","_handled","_savedVirtualItems"];
_return = [];
_savedVirtualItems = LIFE_SETTINGS(getArray,"saved_virtualItems");
_return pushBack uniform player;
_return pushBack vest player;
_return pushBack backpack player;
_return pushBack goggles player;
_return pushBack headgear player;
_return pushBack assignedITems player;
if (playerSide isEqualTo west || playerSide isEqualTo civilian && {LIFE_SETTINGS(getNumber,"save_civilian_weapons") isEqualTo 1}) then {
_return pushBack primaryWeapon player;
_return pushBack handgunWeapon player;
} else {
_return pushBack [];
_return pushBack [];
};
_uItems = [];
_uMags = [];
_bItems = [];
_bMags = [];
_vItems = [];
_vMags = [];
_pItems = [];
_hItems = [];
_yItems = [];
_uni = [];
_ves = [];
_bag = [];
if (!(uniform player isEqualTo "")) then {
{
if (_x in (magazines player)) then {
_uMags pushBack _x;
} else {
_uItems pushBack _x;
};
} forEach (uniformItems player);
};
if (!(backpack player isEqualTo "")) then {
{
if (_x in (magazines player)) then {
_bMags pushBack _x;
} else {
_bItems pushBack _x;
};
} forEach (backpackItems player);
};
if (!(vest player isEqualTo "")) then {
{
if (_x in (magazines player)) then {
_vMags pushBack _x;
} else {
_vItems pushBack _x;
};
} forEach (vestItems player);
};
if (count (primaryWeaponMagazine player) > 0 && alive player) then {
_pMag = ((primaryWeaponMagazine player) select 0);
if (!(_pMag isEqualTo "")) then {
_uni = player canAddItemToUniform _pMag;
_ves = player canAddItemToVest _pMag;
_bag = player canAddItemToBackpack _pMag;
_handled = false;
if (_ves) then {
_vMags pushBack _pMag;
_handled = true;
};
if (_uni && !_handled) then {
_uMags pushBack _pMag;
_handled = true;
};
if (_bag && !_handled) then {
_bMags pushBack _pMag;
_handled = true;
};
};
};
if (count (handgunMagazine player) > 0 && alive player) then {
_hMag = ((handgunMagazine player) select 0);
if (!(_hMag isEqualTo "")) then {
_uni = player canAddItemToUniform _hMag;
_ves = player canAddItemToVest _hMag;
_bag = player canAddItemToBackpack _hMag;
_handled = false;
if (_ves) then {
_vMags pushBack _hMag;
_handled = true;
};
if (_uni && !_handled) then {
_uMags pushBack _hMag;
_handled = true;
};
if (_bag && !_handled) then {
_bMags pushBack _hMag;
_handled = true;
};
};
};
if (count (primaryWeaponItems player) > 0) then {
{
_pItems pushBack _x;
} forEach (primaryWeaponItems player);
};
if (count (handgunItems player) > 0) then {
{
_hItems pushBack _x;
} forEach (handGunItems player);
};
{
_val = ITEM_VALUE(_x);
if (_val > 0) then {
_yItems pushBack [_x,_val];
};
} forEach _savedVirtualItems;
_return pushBack _uItems;
_return pushBack _uMags;
_return pushBack _bItems;
_return pushBack _bMags;
_return pushBack _vItems;
_return pushBack _vMags;
_return pushBack _pItems;
_return pushBack _hItems;
if (LIFE_SETTINGS(getNumber,"save_virtualItems") isEqualTo 1) then {
_return pushBack _yItems;
} else {
_return pushBack [];
};
life_gear = _return;
[] call life_fnc_hudUpdate;
[] call life_fnc_playerSkins;
Alles anzeigen
Mit freundlichen Grüßen
Brizi Jaeger