Guten tag ich habe vor einen bestimmten Skin für Zivilisten ab einen bestimmten Admin Lvl angezeigt bekommen
Also über admin lvl 3 dann haste anstatt nen normalen B_ViperHarness_blk_F haste nen texturierten B_ViperHarness_blk_F
Denke mal das die Abfrage irgendwie net so richtig ist bin kein Profi Coder sorry
Code
#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(FETCH_CONST(life_adminlevel) < 3)) then {
if (uniform player isEqualTo "U_I_CombatUniform") then {
player setObjectTextureGlobal [0, "textures\ProjektleitungKleidungByEber.jpg"];
};
if((backpack player) == "B_ViperHarness_blk_F") then {
player setObjectTextureGlobal [0, "textures\ProjektleitungRucksackByEber.jpg"];
};
};
case west: {
if (uniform player isEqualTo "U_Rangemaster") then {
_skinName = "textures\cop_uniform.jpg";
if (LIFE_SETTINGS(getNumber,"cop_extendedSkins") isEqualTo 1) then {
if (FETCH_CONST(life_coplevel) >= 1) then {
_skinName = ["textures\cop_uniform_",(FETCH_CONST(life_coplevel)),".jpg"] joinString "";
};
};
player setObjectTextureGlobal [0, _skinName];
};
};
Alles anzeigen