Moin, also folgendes:
Die Kleidung wird dem eigenem Spieler angezeigt, aber anderen nicht ? Wie kann ich das lösen?
C: fn_playerSkins.sqf
#include "..\..\script_macros.hpp"
/*
File: fn_playerSkins.sqf
Author: Daniel Stuart
Description:
Sets skins for players by their side and uniform.
*/
private["_skinName"];
switch (playerSide) do {
case civilian: {
if (LIFE_SETTINGS(getNumber,"civ_skins") isEqualTo 1) then {
if (uniform player isEqualTo "U_C_Poloshirt_blue") then {
player setObjectTextureGlobal [0, "textures\civilian_uniform_1.jpg"];
};
if (uniform player isEqualTo "U_C_Poloshirt_burgundy") then {
player setObjectTextureGlobal [0, "textures\civilian_uniform_2.jpg"];
};
if (uniform player isEqualTo "U_C_Poloshirt_stripped") then {
player setObjectTextureGlobal [0, "textures\civilian_uniform_3.jpg"];
};
if (uniform player isEqualTo "U_C_Poloshirt_tricolour") then {
player setObjectTextureGlobal [0, "textures\civilian_uniform_4.jpg"];
};
if (uniform player isEqualTo "U_C_Poloshirt_salmon") then {
player setObjectTextureGlobal [0, "textures\civilian_uniform_5.jpg"];
};
if (uniform player isEqualTo "U_C_Poloshirt_redwhite") then {
player setObjectTextureGlobal [0, "textures\civilian_uniform_6.jpg"];
};
if (uniform player isEqualTo "U_C_Commoner1_1") then {
player setObjectTextureGlobal [0, "textures\civilian_uniform_7.jpg"];
};
};
};
case west: {
if (uniform player isEqualTo "U_Rangemaster") then {
if (FETCH_CONST(life_coplevel) == 1) then {
player setObjectTextureGlobal [0, "textures\RD\Kleidung\POLSTAND.paa"];
};
if (FETCH_CONST(life_coplevel) == 2) then {
player setObjectTextureGlobal [0, "textures\RD\Kleidung\POLSTAND.paa"];
};
if (FETCH_CONST(life_coplevel) == 3) then {
player setObjectTextureGlobal [0, "textures\RD\Kleidung\phk.paa"];
};
if (FETCH_CONST(life_coplevel) == 4) then {
player setObjectTextureGlobal [0, "textures\RD\Kleidung\phk.paa"];
};
if (FETCH_CONST(life_coplevel) == 5) then {
player setObjectTextureGlobal [0, "textures\RD\Kleidung\skn.paa"];
};
if (FETCH_CONST(life_coplevel) == 6) then {
player setObjectTextureGlobal [0, "textures\RD\Kleidung\skn.paa"];
};
if (FETCH_CONST(life_coplevel) == 7) then {
player setObjectTextureGlobal [0, "textures\RD\Kleidung\pdr.paa"];
};
};
if (uniform player isEqualTo "U_B_CombatUniform_mcam_worn") then {
if (FETCH_CONST(life_coplevel) == 1) then {
player setObjectTextureGlobal [0, "textures\RD\Kleidung\AP.paa"];
};
if (FETCH_CONST(life_coplevel) == 2) then {
player setObjectTextureGlobal [0, "textures\RD\Kleidung\AP.paa"];
};
if (FETCH_CONST(life_mcoplevel) == 3) then {
player setObjectTextureGlobal [0, "textures\RD\Kleidung\AP.paa"];
};
if (FETCH_CONST(life_coplevel) == 4) then {
player setObjectTextureGlobal [0, "textures\RD\Kleidung\AP.paa"];
};
if (FETCH_CONST(life_coplevel) == 5) then {
player setObjectTextureGlobal [0, "textures\RD\Kleidung\AP.paa"];
};
if (FETCH_CONST(life_coplevel) == 6) then {
player setObjectTextureGlobal [0, "textures\RD\Kleidung\AP.paa"];
};
if (FETCH_CONST(life_coplevel) == 7) then {
player setObjectTextureGlobal [0, "textures\RD\Kleidung\AP.paa"];
};
};
if (uniform player isEqualTo "U_B_CombatUniform_mcam") then {
if (FETCH_CONST(life_copleve) == 1) then {
player setObjectTextureGlobal [0, "textures\RD\Kleidung\BP.paa"];
};
if (FETCH_CONST(life_copleve) == 2) then {
player setObjectTextureGlobal [0, "textures\RD\Kleidung\BP.paa"];
};
if (FETCH_CONST(life_copleve) == 3) then {
player setObjectTextureGlobal [0, "textures\RD\Kleidung\BP.paa"];
};
if (FETCH_CONST(life_copleve) == 4) then {
player setObjectTextureGlobal [0, "textures\RD\Kleidung\BP.paa"];
};
if (FETCH_CONST(life_copleve) == 5) then {
player setObjectTextureGlobal [0, "textures\RD\Kleidung\sk.paa"];
};
if (FETCH_CONST(life_copleve) == 6) then {
player setObjectTextureGlobal [0, "textures\RD\Kleidung\sk.paa"];
};
if (FETCH_CONST(life_coplevel) == 7) then {
player setObjectTextureGlobal [0, "textures\RD\Kleidung\sk.paa"];
};
};
};
case independent: {
if (uniform player isEqualTo "U_Rangemaster") then {
player setObjectTextureGlobal [0, "textures\RD\Kleidung\RDPOLO.paa"];
};
if (uniform player isEqualTo "U_B_CombatUniform_mcam") then {
if (FETCH_CONST(life_mediclevel) == 1) then {
player setObjectTextureGlobal [0, "textures\RD\Kleidung\SAN.paa"];
};
if (FETCH_CONST(life_mediclevel) == 2) then {
player setObjectTextureGlobal [0, "textures\RD\Kleidung\SEG.paa"];
};
if (FETCH_CONST(life_mediclevel) == 3) then {
player setObjectTextureGlobal [0, "textures\RD\Kleidung\RS.paa"];
};
if (FETCH_CONST(life_mediclevel) == 4) then {
player setObjectTextureGlobal [0, "textures\RD\Kleidung\NS.paa"];
};
if (FETCH_CONST(life_mediclevel) == 5) then {
player setObjectTextureGlobal [0, "textures\RD\Kleidung\NA.paa"];
};
};
};
};
Alles anzeigen