• Probléme ajout d'une deuxiéme Texture


    Voila j’ai ajouter la premiére tenue en range master tous çela marche depuis a peut près 2-3 heure j’essaye d’ajouter la deuxiéme texture avec cette tenue la mais elle ne marche

    U_B_CombatUniform_mcam

    Pour info je ne suis pas codeur j’ai jamais fais sa.

    #include <macro.h>

    /*

    File: fn_initCop.sqf

    Author: Bryan “Tonic” Boardwine

    Description:

    Cop Initialization file.

    */

    private["_end"];

    player addRating 9999999;

    waitUntil {!(isNull (findDisplay 46))};

    _end = false;

    if(life_blacklisted) exitWith

    {

    [“Blacklisted”,false,true] call BIS_fnc_endMission;

    sleep 30;

    };

    if(!(str(player) in [“cop_99”])) then {

    if((GETC(life_coplevel) == 0) && (GETC(life_adminlevel) == 0)) then {

    [“NotWhitelisted”,false,true] call BIS_fnc_endMission;

    sleep 35;

    };

    };

    player setVariable[“rank”,(GETC(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.

    [] execVM “msgbienvenueCop.sqf”;

    [] spawn

    {

    while {true} do

    {

    waitUntil {uniform player == “U_Rangemaster”};

    player setObjectTextureGlobal [0,“textures\skin\PoliceVille.jpg”];

    waitUntil {uniform player != “U_Rangemaster”};

    };

    };

    {

    while {true} do

    {

    if ((uniform player) == “U_Rangemaster”) then

    {

    if (GETC(life_coplevel) == 1) then { player setObjectTextureGlobal [0,“textures\PoliceVille.jpg”];};

    if (GETC(life_coplevel) == 2) then { player setObjectTextureGlobal [0,“textures\PoliceVille.jpg”];};

    if (GETC(life_coplevel) == 3) then { player setObjectTextureGlobal [0,“textures\PoliceVille.jpg”];};

    if (GETC(life_coplevel) == 4) then { player setObjectTextureGlobal [0,“textures\skin\PoliceVille.jpg”];};

    if (GETC(life_coplevel) == 5) then { player setObjectTextureGlobal [0,“textures\skin\PoliceVille.jpg”];};

    if (GETC(life_coplevel) == 6) then { player setObjectTextureGlobal [0,“textures\skin\PoliceVille.jpg”];};

    if (GETC(life_coplevel) == 7) then { player setObjectTextureGlobal [0,“textures\skin\PoliceVille.jpg”];};

    };

    if ((uniform player) == “U_B_CombatUniform_mcam”) then

    {

    player setObjectTextureGlobal [0, “textures\PoliceIntervention.jpg”];

    {

    if (GETC(life_coplevel) == 1) then { player setObjectTextureGlobal [0, “textures\PoliceIntervention.jpg”];};

    if (GETC(life_coplevel) == 2) then { player setObjectTextureGlobal [0, “textures\PoliceIntervention.jpg”];};

    if (GETC(life_coplevel) == 3) then { player setObjectTextureGlobal [0, “textures\PoliceIntervention.jpg”];};

    if (GETC(life_coplevel) == 4) then { player setObjectTextureGlobal [0, “textures\skin\PoliceIntervention.jpg”];};

    if (GETC(life_coplevel) == 5) then { player setObjectTextureGlobal [0, “textures\skin\PoliceIntervention.jpg”];};

    if (GETC(life_coplevel) == 6) then { player setObjectTextureGlobal [0, “textures\skin\PoliceIntervention.jpg”];};

    if (GETC(life_coplevel) == 7) then { player setObjectTextureGlobal [0, “textures\skin\PoliceIntervention.jpg”];};

    };

  • rajoute

    while {true} do  
                  {  
    

    comme ceci :

    #include <macro.h>  
    /*  
        File: fn_initCop.sqf  
        Author: Bryan "Tonic" Boardwine  
    
        Description:  
        Cop Initialization file.  
    */  
    private["_end"];  
    player addRating 9999999;  
    waitUntil {!(isNull (findDisplay 46))};  
    _end = false;  
    if(life_blacklisted) exitWith  
    {  
        ["Blacklisted",false,true] call BIS_fnc_endMission;  
        sleep 30;  
    };  
    
    if(!(str(player) in ["cop_99"])) then {  
        if((__GETC__(life_coplevel) == 0) && (__GETC__(life_adminlevel) == 0)) then {  
            ["NotWhitelisted",false,true] call BIS_fnc_endMission;  
            sleep 35;  
        };  
    };  
    
    player setVariable["rank",(__GETC__(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.  
    [] execVM "msgbienvenueCop.sqf";  
    [] spawn  
    {  
    while {true} do  
    {  
    waitUntil {uniform player == "U_Rangemaster"};  
    player setObjectTextureGlobal [0,"textures\skin\PoliceVille.jpg"];  
    waitUntil {uniform player != "U_Rangemaster"};  
    };  
    };  
    {  
    while {true} do  
                  {  
    if ((uniform player) == "U_Rangemaster") then  
    {  
    if (__GETC__(life_coplevel) == 1) then { player setObjectTextureGlobal [0,"textures\PoliceVille.jpg"];};  
    if (__GETC__(life_coplevel) == 2) then { player setObjectTextureGlobal [0,"textures\PoliceVille.jpg"];};  
    if (__GETC__(life_coplevel) == 3) then { player setObjectTextureGlobal [0,"textures\PoliceVille.jpg"];};  
    if (__GETC__(life_coplevel) == 4) then { player setObjectTextureGlobal [0,"textures\skin\PoliceVille.jpg"];};  
    if (__GETC__(life_coplevel) == 5) then { player setObjectTextureGlobal [0,"textures\skin\PoliceVille.jpg"];};  
    if (__GETC__(life_coplevel) == 6) then { player setObjectTextureGlobal [0,"textures\skin\PoliceVille.jpg"];};  
    if (__GETC__(life_coplevel) == 7) then { player setObjectTextureGlobal [0,"textures\skin\PoliceVille.jpg"];};  
    };  
    while {true} do  
                  {  
    if ((uniform player) == "U_B_CombatUniform_mcam") then  
    {  
    player setObjectTextureGlobal [0, "textures\PoliceIntervention.jpg"];  
    {  
    if (__GETC__(life_coplevel) == 1) then { player setObjectTextureGlobal [0, "textures\PoliceIntervention.jpg"];};  
    if (__GETC__(life_coplevel) == 2) then { player setObjectTextureGlobal [0, "textures\PoliceIntervention.jpg"];};  
    if (__GETC__(life_coplevel) == 3) then { player setObjectTextureGlobal [0, "textures\PoliceIntervention.jpg"];};  
    if (__GETC__(life_coplevel) == 4) then { player setObjectTextureGlobal [0, "textures\skin\PoliceIntervention.jpg"];};  
    if (__GETC__(life_coplevel) == 5) then { player setObjectTextureGlobal [0, "textures\skin\PoliceIntervention.jpg"];};  
    if (__GETC__(life_coplevel) == 6) then { player setObjectTextureGlobal [0, "textures\skin\PoliceIntervention.jpg"];};  
    if (__GETC__(life_coplevel) == 7) then { player setObjectTextureGlobal [0, "textures\skin\PoliceIntervention.jpg"];};  
    };  
    
    
  • A la fin ?

  • je te l’ai ajouter :

    #include <macro.h>  
    /*  
        File: fn_initCop.sqf  
        Author: Bryan "Tonic" Boardwine  
    
        Description:  
        Cop Initialization file.  
    */  
    private["_end"];  
    player addRating 9999999;  
    waitUntil {!(isNull (findDisplay 46))};  
    _end = false;  
    if(life_blacklisted) exitWith  
    {  
        ["Blacklisted",false,true] call BIS_fnc_endMission;  
        sleep 30;  
    };  
    
    if(!(str(player) in ["cop_99"])) then {  
        if((__GETC__(life_coplevel) == 0) && (__GETC__(life_adminlevel) == 0)) then {  
            ["NotWhitelisted",false,true] call BIS_fnc_endMission;  
            sleep 35;  
        };  
    };  
    
    player setVariable["rank",(__GETC__(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.  
    [] execVM "msgbienvenueCop.sqf";  
    [] spawn  
    {  
    while {true} do  
    {  
    waitUntil {uniform player == "U_Rangemaster"};  
    player setObjectTextureGlobal [0,"textures\skin\PoliceVille.jpg"];  
    waitUntil {uniform player != "U_Rangemaster"};  
    };  
    };  
    {  
    while {true} do  
                  {  
    if ((uniform player) == "U_Rangemaster") then  
    {  
    if (__GETC__(life_coplevel) == 1) then { player setObjectTextureGlobal [0,"textures\PoliceVille.jpg"];};  
    if (__GETC__(life_coplevel) == 2) then { player setObjectTextureGlobal [0,"textures\PoliceVille.jpg"];};  
    if (__GETC__(life_coplevel) == 3) then { player setObjectTextureGlobal [0,"textures\PoliceVille.jpg"];};  
    if (__GETC__(life_coplevel) == 4) then { player setObjectTextureGlobal [0,"textures\skin\PoliceVille.jpg"];};  
    if (__GETC__(life_coplevel) == 5) then { player setObjectTextureGlobal [0,"textures\skin\PoliceVille.jpg"];};  
    if (__GETC__(life_coplevel) == 6) then { player setObjectTextureGlobal [0,"textures\skin\PoliceVille.jpg"];};  
    if (__GETC__(life_coplevel) == 7) then { player setObjectTextureGlobal [0,"textures\skin\PoliceVille.jpg"];};  
    };  
    while {true} do // <–------------------------------------------------------------------------------------------- La  
                  {  
    if ((uniform player) == "U_B_CombatUniform_mcam") then  
    {  
    player setObjectTextureGlobal [0, "textures\PoliceIntervention.jpg"];  
    {  
    if (__GETC__(life_coplevel) == 1) then { player setObjectTextureGlobal [0, "textures\PoliceIntervention.jpg"];};  
    if (__GETC__(life_coplevel) == 2) then { player setObjectTextureGlobal [0, "textures\PoliceIntervention.jpg"];};  
    if (__GETC__(life_coplevel) == 3) then { player setObjectTextureGlobal [0, "textures\PoliceIntervention.jpg"];};  
    if (__GETC__(life_coplevel) == 4) then { player setObjectTextureGlobal [0, "textures\skin\PoliceIntervention.jpg"];};  
    if (__GETC__(life_coplevel) == 5) then { player setObjectTextureGlobal [0, "textures\skin\PoliceIntervention.jpg"];};  
    if (__GETC__(life_coplevel) == 6) then { player setObjectTextureGlobal [0, "textures\skin\PoliceIntervention.jpg"];};  
    if (__GETC__(life_coplevel) == 7) then { player setObjectTextureGlobal [0, "textures\skin\PoliceIntervention.jpg"];};  
    };  
    
  • Ok je vais essayer et je te dis sa

  • Sa marche

  • Dac oublie pas d’appuyer sur résolue , derien :)

Messages 8Vues 413