English Solved Using ID Numbers for NPC Names

  • Auteur de la discussion Auteur de la discussion IceEagle132
  • Date de début Date de début
Solution
So you can replace (2 times in the file) :
Code:
private _texte_format = "";

switch (playerSide) do
{
    case civilian:
    {
        _texte_format = "<t size ='1'>%3</t>";
    };
    case west:
    {
        _texte_format = "<img image='%1' size='1'></img> <t size ='1'>%2</t><br/>%3<br/>%4";
    };
    case independent:
    {
        _texte_format = "<img image='%1' size='1'></img> <t size ='1'>%2</t><br/>%3<br/>%4";
    };
};
by :
Code:
_texte_format = "<img image='%1' size='1'></img> <t size ='1'>%2</t><br/>%3<br/>%4";
Hello !
About the NPC's ID, try to replace :
Code:
if (alive _x) then {
    _texteID;
} else {
    if (!isPlayer _x) then {
        _x getVariable ["realname","ERROR"];
    };
};
by :
Code:
if  (!isPlayer _x) then {
    _x getVariable ["realname","ERROR"];
} else {
    if (alive _x) then {
        _texteID;
    };
};

About medics/cop ranks, civilians doesn't see their rank. Only cops and medics can see the rank of another cop or medic. Not civs. Can you try that ?
 
Okay so that fixed the NPC issue and cops and ems can see one another ranks and icons.
But I would like it so civs can see their rank and icons as well.

20201014123547_1.jpg 20201014123658_1.jpg
 
So you can replace (2 times in the file) :
Code:
private _texte_format = "";

switch (playerSide) do
{
    case civilian:
    {
        _texte_format = "<t size ='1'>%3</t>";
    };
    case west:
    {
        _texte_format = "<img image='%1' size='1'></img> <t size ='1'>%2</t><br/>%3<br/>%4";
    };
    case independent:
    {
        _texte_format = "<img image='%1' size='1'></img> <t size ='1'>%2</t><br/>%3<br/>%4";
    };
};
by :
Code:
_texte_format = "<img image='%1' size='1'></img> <t size ='1'>%2</t><br/>%3<br/>%4";
 
  • Like
Les réactions: IceEagle132
Solution