Français Solved Problème de visibilité des marqueurs malgré la licence requise

  • Auteur de la discussion Auteur de la discussion 0ziix
  • Date de début Date de début

0ziix

User
19/1/20
184
2
13
950
Bonjour, j'ai un soucis avec le script suivant de Yuri Zoko. En gros même quand jai la licence requise je ne vois pas les marqueurs même après de nombreux reboots.

Code:
/*
    Author: Yuri Zoko
    Web site: www.the-programmer.com
    Discord: discord.the-programmer.com

    Terms of use:
      - This file is forbidden unless you have permission from the author. If you have this file without permission to use it please do not use it and do not share it.
      - If you have permission to use this file, you can use it on your server however it is strictly forbidden to share it.
      - Out of respect for the author please do not delete this information.
*/
_illegal = ["heroin_1","heroin_p","heroin_area","cocaine_1","cocaine_processing","coke_area","weed_1","Weed_p_1","weed_area","Dealer_1_3","turle_dealer","Rebelop"];

_cocaine = ["cocaine_1","cocaine_processing","coke_area"];
          
{_x setMarkerAlphaLocal 0}foreach _illegal;


if (license_civ_rebel) then {
    {_x setMarkerAlphaLocal 1}foreach ["Rebelop"];
};

if (license_civ_cocaine) then {
    {_x setMarkerAlphaLocal 1}foreach _cocaine;
};

if (license_civ_heroin) then {
    {_x setMarkerAlphaLocal 1}foreach ["heroin_1","heroin_p","heroin_area"];
};

if (license_civ_marijuana) then {
    {_x setMarkerAlphaLocal 1}foreach ["weed_1","Weed_p_1","weed_area"];
};

if (license_civ_dealertortue) then {
    {_x setMarkerAlphaLocal 1}foreach ["turle_dealer"];
};

if (license_civ_dealer) then {
    {_x setMarkerAlphaLocal 1}foreach ["Dealer_1_3"];
};
 
Bonjour, j'ai un soucis avec le script suivant de Yuri Zoko. En gros même quand jai la licence requise je ne vois pas les marqueurs même après de nombreux reboots.

Code:
/*
    Author: Yuri Zoko
    Web site: www.the-programmer.com
    Discord: discord.the-programmer.com

    Terms of use:
      - This file is forbidden unless you have permission from the author. If you have this file without permission to use it please do not use it and do not share it.
      - If you have permission to use this file, you can use it on your server however it is strictly forbidden to share it.
      - Out of respect for the author please do not delete this information.
*/
_illegal = ["heroin_1","heroin_p","heroin_area","cocaine_1","cocaine_processing","coke_area","weed_1","Weed_p_1","weed_area","Dealer_1_3","turle_dealer","Rebelop"];

_cocaine = ["cocaine_1","cocaine_processing","coke_area"];
         
{_x setMarkerAlphaLocal 0}foreach _illegal;


if (license_civ_rebel) then {
    {_x setMarkerAlphaLocal 1}foreach ["Rebelop"];
};

if (license_civ_cocaine) then {
    {_x setMarkerAlphaLocal 1}foreach _cocaine;
};

if (license_civ_heroin) then {
    {_x setMarkerAlphaLocal 1}foreach ["heroin_1","heroin_p","heroin_area"];
};

if (license_civ_marijuana) then {
    {_x setMarkerAlphaLocal 1}foreach ["weed_1","Weed_p_1","weed_area"];
};

if (license_civ_dealertortue) then {
    {_x setMarkerAlphaLocal 1}foreach ["turle_dealer"];
};

if (license_civ_dealer) then {
    {_x setMarkerAlphaLocal 1}foreach ["Dealer_1_3"];
};
Ton marker pour la cocaine fonctionne ?
 
Code:
#include "script_macros.hpp"
/*
    File: initPlayerLocal.sqf
    Author:

    Description:
    Starts the initialization of the player.
*/
if (!hasInterface && !isServer) exitWith {
    [] call compile preprocessFileLineNumbers "\life_hc\initHC.sqf";
};

CONST(BIS_fnc_endMission,BIS_fnc_endMission);
if (LIFE_SETTINGS(getNumber,"spyGlass_toggle") isEqualTo 1) then {[] execVM "SpyGlass\fn_initSpy.sqf";};

[] execVM "core\init.sqf";
[] execVM "briefing.sqf";
[] execVM "core\functions\fn_markers.sqf";
 
Est-ce que tu peux envoyer ton core/init.sqf également ?

Les variables des marqueurs que tu as mises dans le fn_markers.sqf son correctes ?
Pour savoir si le fichier est bien exécuté, tu peux ajouter en haut de ton fn_markers.sqf :
Code:
systemChat "markers OK";
Dis-moi si tu as le message dans le chat juste après t'être connecté au serveur