Beiträge von blackfisch
Das neue Nodezone befindet sich in der finalen Entwicklungsphase. Mit dem geplanten Start wird das bisherige Forum auf Read Only umgestellt und künftig als Archiv erhalten bleiben.
Alle Informationen zur neuen Plattform, zur Accountübernahme und zum weiteren Ablauf findest du hier: Zum aktuellen Nodezone Beitrag
-
-
-
Wenn du alles auf die gleiche Uniform willst musst du es Coplevel- oder Lizenzgebunden machen. Beispiel für Lizenzgebunden:
C
Alles anzeigen#include "..\..\script_macros.hpp" /* File: fn_playerSkins.sqf Author: Daniel Stuart Modified by: blackfisch 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") { if (!license_cop_sek && !license_cop_swat) then {player setObjectTextureGlobal [0,"icons\polizei\anwaerter.paa"];}; if (license_cop_sek) then {player setObjectTextureGlobal [0,"icons\polizei\pmeister.paa"];}; if (license_cop_swat) then {player setObjectTextureGlobal [0,"icons\polizei\praktikant.paa"];}; }; }; case independent: { if (uniform player isEqualTo "U_Rangemaster") then { player setObjectTextureGlobal [0, "textures\medic_uniform.jpg"]; }; }; };nur als Referenz
-
Doch werde ich
Ja, das mit dem Scope war Denkfehler, haste recht
Da wäre aber ein vorangehendes private _action = false; sinnvoller (vor dem spawn)
Warum? Siehe meine Signatur "Code Optimierung" - Die 20ms Runtime ist schuld, deswegen ist nur den Befehl zu schedulen statt das ganze Script sinnvoller
-
Du musst gewhitelisted sein wenn du Coplevel abfragst
-
Wenn du nach Coplevel abfragst funktioniert das (ich nutz ja die gleiche Uniform auch und bekomm sie geskinnt) - Dateipfade und Name prüfen
player setObjectTextureGlobal [0,"icons\polizei\praktikant.paa"];
Entweder ist das falsch oder falsch angegeben in der fn_playerSkins.sqf
-
Muss ich @Kuchenplatte auch echt zustimmen... Ich erinnere mich noch an deine Aussage, du kannst in Arma 3 scripten weil du PHP und JS und hacken kannst blabla... Aktuell sehe ich hier null Kenntnis und auch nicht wirklich was dein Problem ist - außer, dass du selbst vermutlich Fehler machst wie gesagt...

-
C
Alles anzeigen#include "..\..\script_macros.hpp" /* File: fn_playerSkins.sqf Author: Daniel Stuart Modified by: blackfisch 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 { //Trägt der Spieler die Uniform "U_Rangemaster" switch (call life_coplevel) do { //Unterscheide nach Coplevel case 1: {_skinName = "textures\cop_uniform1.jpg";}; //Coplevel 1 diese Textur case 2: {_skinName = "textures\cop_uniform2.jpg";}; //Coplevel 2 diese Textur case 3: {_skinName = "textures\cop_uniform3.jpg";}; //Coplevel 3 diese Textur case 4: {_skinName = "textures\cop_uniform4.jpg";}; //Coplevel 4 diese Textur case 5: {_skinName = "textures\cop_uniform5.jpg";}; //Coplevel 5 diese Textur default {_skinName = "textures\cop_uniform0.jpg";} //alle anderen Coplevel diese Textur }; player setObjectTextureGlobal [0, _skinName]; //Textur setzen }; /* //Beispiel zur Anwendung auf andere Uniformen if (uniform player isEqualTo "U_B_CombatUniform_mcam") then { switch (call life_coplevel) do { case 1: {_skinName = "textures\cop_uniform1.jpg";}; case 2: {_skinName = "textures\cop_uniform2.jpg";}; case 3: {_skinName = "textures\cop_uniform3.jpg";}; case 4: {_skinName = "textures\cop_uniform4.jpg";}; case 5: {_skinName = "textures\cop_uniform5.jpg";}; default {_skinName = "textures\cop_uniform0.jpg";} }; player setObjectTextureGlobal [0, _skinName]; }; */ }; case independent: { if (uniform player isEqualTo "U_Rangemaster") then { player setObjectTextureGlobal [0, "textures\medic_uniform.jpg"]; }; }; }; -
-
Du hast nicht die geringste Ahnung was du da eingefügt hattest, oder? so sollte es klappen
C
Alles anzeigen#include "..\..\script_macros.hpp" /* File: fn_playerSkins.sqf Author: Daniel Stuart Modified by: blackfisch 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 { _skinName = "textures\cop_uniform.jpg"; player setObjectTextureGlobal [0, _skinName]; }; if (uniform player isEqualTo "U_B_CombatUniform_mcam") then { _skinName = "textures\sek_einsatzleitung.jpg"; player setObjectTextureGlobal [0, _skinName]; }; if (uniform player isEqualTo "U_B_CombatUniform_mcam") then { _skinName = "textures\pmeister.jpg"; player setObjectTextureGlobal [0, _skinName]; }; }; case independent: { if (uniform player isEqualTo "U_Rangemaster") then { player setObjectTextureGlobal [0, "textures\medic_uniform.jpg"]; }; }; }; -
nicht wirklich, da scheint irgendwo anders was schief gelaufen zu sein. Backup einspielen und vielleicht nochmal machen
-
ja, vollkommen vergessen
Am besten den Code nehmen und das Script per call aufrufen (ist so performanter) -
[lexicon]extDB[/lexicon]-Log sagt irgendwas stimmt mit deiner [lexicon]extDB[/lexicon]-Config nicht
-
https://community.bistudio.com/wiki/BIS_fnc_guiMessage
["NACHRICHT","ÜBERSCHIRFT","OK-BESCHRIFTUNG","ABBRECHEN-BESCHRIFTUNG"] call BIS_fnc_guiMessage;
Beispiel:
["Möchtest du wirklich respawnen?","Respawn bestätigen","Ja, ich will!","Ne, lass mal..."] call BIS_fnc_guiMessage;Abfrage:
-
-
Fehler geklärt - dumm eingerichteter Server Kappa ;p
Ne, Fehler waren einfach 2 MySQL Versionen und Dienste (Dafuq?!) und damit verbunden ein falscher Port.
-
... komm bitte mal bei mir aufn TS das wird so nix...
ts.lifefactory-gaming.de -
Bitte mal den kompletten Server & Client RPT-Log. Hast du außerdem den Fehler in der player_sys.hpp behoben? (nochmal für ganz Blinde: class Title : life_RscTitle { Title : life_RscTitle { <- doppelte class! => class Title : life_RscTitle {
) -
20:23:23 Warning Message: Script \life_server\init.sqf not found
macht mir mehr sorgen - die life_server auch als pbo gepackt im addons-Ordner?
Das liegt genau daran! -
Mal bitte dem Spaß halber Clientlogs, vielleicht steht was drin (siehe meine Signatur für mehr Info)