Hallo Liebe NN Community,
Und zwar habe ich probiert mehrere Uniformen auf die gleiche kleidung zu legen in der fn_playerskins und der fn_initcop allerdings funktionieren nur die ersten 5 Ränge nicht danach geht alles Taddellos ...
Ich habe versucht dass Problem zu finden aber es hilft leider garnichts.
C
fn_initcop.sqf
#include "..\script_macros.hpp"
/*
File: fn_initCop.sqf
Author: Bryan "Tonic" Boardwine
Description:
Cop Initialization file.
*/
player addRating 9999999;
waitUntil {!(isNull (findDisplay 46))};
if (life_blacklisted) exitWith {
["Blacklisted",false,true] call BIS_fnc_endMission;
sleep 30;
};
if (!(str(player) in ["cop_9999"])) then {
if ((FETCH_CONST(life_coplevel) isEqualTo 0) && (FETCH_CONST(life_adminlevel) isEqualTo 0)) then {
["NotWhitelisted",false,true] call BIS_fnc_endMission;
sleep 35;
};
};
player setVariable ["rank",(FETCH_CONST(life_coplevel)),true];
[] call life_fnc_spawnMenu;
waitUntil{!isNull (findDisplay 38500)}; //Wait for the spawn selection to be open.
waitUntil{isNull (findDisplay 38500)}; //Wait for the spawn selection to be done.
[] spawn {
while {true} do {
switch (true) do {
case (__GETC__(life_coplevel) == 1) : {
waitUntil {uniform player == "U_Rangemaster"};
player setObjectTextureGlobal [0,"textures\cop\inspektor.jpg"];
waitUntil {uniform player != "U_Rangemaster"};
};
default {};
};
};
};
[] spawn {
while {true} do {
switch (true) do {
case (__GETC__(life_coplevel) == 2) : {
waitUntil {uniform player == "U_O_officer_noInsignia_hex_F"};
player setObjectTextureGlobal [0,"textures\cop\GruppenInspektorL.paa"];
waitUntil {uniform player != "U_O_officer_noInsignia_hex_F"};
};
case (__GETC__(life_coplevel) == 3) : {
waitUntil {uniform player == "U_O_officer_noInsignia_hex_F"};
player setObjectTextureGlobal [0,"textures\cop\BezirksInspektorL.paa"];
waitUntil {uniform player != "U_O_officer_noInsignia_hex_F"};
};
case (__GETC__(life_coplevel) == 4) : {
waitUntil {uniform player == "U_O_officer_noInsignia_hex_F"};
player setObjectTextureGlobal [0,"textures\cop\ChefInspektorL.paa"];
waitUntil {uniform player != "U_O_officer_noInsignia_hex_F"};
};
case (__GETC__(life_coplevel) == 5) : {
waitUntil {uniform player == "U_O_officer_noInsignia_hex_F"};
player setObjectTextureGlobal [0,"textures\cop\LeutnantL.paa"];
waitUntil {uniform player != "U_O_officer_noInsignia_hex_F"};
};
case (__GETC__(life_coplevel) == 6) : {
waitUntil {uniform player == "U_O_officer_noInsignia_hex_F"};
player setObjectTextureGlobal [0,"textures\cop\HauptmannL.paa"];
waitUntil {uniform player != "U_O_officer_noInsignia_hex_F"};
};
case (__GETC__(life_coplevel) == 9) : {
waitUntil {uniform player == "U_O_officer_noInsignia_hex_F"};
player setObjectTextureGlobal [0,"textures\cop\GeneralL.paa"];
waitUntil {uniform player != "U_O_officer_noInsignia_hex_F"};
};
case (__GETC__(life_coplevel) == 10) : {
waitUntil {uniform player == "U_O_officer_noInsignia_hex_F"};
player setObjectTextureGlobal [0,"textures\cop\BereichsleiterL.paa"];
waitUntil {uniform player != "U_O_officer_noInsignia_hex_F"};
};
case (__GETC__(life_coplevel) == 11) : {
waitUntil {uniform player == "U_O_officer_noInsignia_hex_F"};
player setObjectTextureGlobal [0,"textures\cop\GeneralDirektorL.paa"];
waitUntil {uniform player != "U_O_officer_noInsignia_hex_F"};
};
case (__GETC__(life_coplevel) == 7) : {
waitUntil {uniform player == "U_B_CombatUniform_mcam"};
player setObjectTextureGlobal [0,"textures\USFFHCneu.paa"];
waitUntil {uniform player != "U_B_CombatUniform_mcam"};
};
case (__GETC__(life_coplevel) == 11) : {
waitUntil {uniform player == "U_B_CTRG_1"};
player setObjectTextureGlobal [0,"textures\USFFHCoffizier.paa"];
waitUntil {uniform player != "U_B_CTRG_1"};
};
default {};
};
};
};
Alles anzeigen
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((FETCH_CONST(life_coplevel) >= 7) && ((uniform player) == "U_B_CombatUniform_mcam")) then {
player setObjectTextureGlobal [0, "textures\USFFHCneu.paa"];
};
if((FETCH_CONST(life_coplevel) >= 11) && ((uniform player) == "U_B_CTRG_1")) then {
player setObjectTextureGlobal [0, "textures\USFFHCoffizier.paa"];
};
if((FETCH_CONST(life_coplevel) >= 1) && ((uniform player) == "U_O_officer_noInsignia_hex_F")) then {
player setObjectTextureGlobal [0, "textures\cop\AspriantL.paa"];
};
if((FETCH_CONST(life_coplevel) >= 1) && ((uniform player) == "U_O_officer_noInsignia_hex_F")) then {
player setObjectTextureGlobal [0, "textures\cop\RevierInspektorL.paa"];
};
if((FETCH_CONST(life_coplevel) >= 2) && ((uniform player) == "U_O_officer_noInsignia_hex_F")) then {
player setObjectTextureGlobal [0, "textures\cop\GruppenInspektorL.paa"];
};
if((FETCH_CONST(life_coplevel) >= 3) && ((uniform player) == "U_O_officer_noInsignia_hex_F")) then {
player setObjectTextureGlobal [0, "textures\cop\BezirksInspektorL.paa"];
};
if((FETCH_CONST(life_coplevel) >= 4) && ((uniform player) == "U_O_officer_noInsignia_hex_F")) then {
player setObjectTextureGlobal [0, "textures\cop\ChefInspektorL.paa"];
};
if((FETCH_CONST(life_coplevel) >= 5) && ((uniform player) == "U_O_officer_noInsignia_hex_F")) then {
player setObjectTextureGlobal [0, "textures\cop\LeutnantL.paa"];
};
if((FETCH_CONST(life_coplevel) >= 6) && ((uniform player) == "U_O_officer_noInsignia_hex_F")) then {
player setObjectTextureGlobal [0, "textures\cop\HauptmannL.paa"];
};
if((FETCH_CONST(life_coplevel) >= 9) && ((uniform player) == "U_O_officer_noInsignia_hex_F")) then {
player setObjectTextureGlobal [0, "textures\cop\GeneralL.paa"];
};
if((FETCH_CONST(life_coplevel) >= 10) && ((uniform player) == "U_O_officer_noInsignia_hex_F")) then {
player setObjectTextureGlobal [0, "textures\cop\BereichsleiterL.paa"];
};
if((FETCH_CONST(life_coplevel) >= 11) && ((uniform player) == "U_O_officer_noInsignia_hex_F")) then {
player setObjectTextureGlobal [0, "textures\cop\GeneralDirektorL.paa"];
};
};
case independent: {
if (uniform player isEqualTo "U_Rangemaster") then {
player setObjectTextureGlobal [0, "textures\medic_uniform.jpg"];
};
if (uniform player isEqualTo "C_Man_ConstructionWorker_01_Black_F") then {
player setObjectTextureGlobal [0, "textures\FU.jpg"];
};
};
};
Alles anzeigen
Ich bitte um schnelle Hilfe! Danke