Nametags - Questions
#3

PHP код:
forward UpdateNametag();
public 
UpdateNametag()
{
    foreach(new 
i : Player)
    {
        if(
IsPlayerConnected(i))
        {
            new 
nametag[128], playername[MAX_PLAYER_NAME], Float:armour, Float:health;
            
GetPlayerArmour(i, armour);
            
GetPlayerHealth(i, health);
            
GetPlayerName(i, playername, sizeof(playername));
            
format(nametag, sizeof(nametag), "{%06x}%s {FFFFFF}(%i)\n{FF8282}HP: %f{FFFFFF} - AR: %f", GetPlayerColor(i) >>> 8, playername, i, floatround(health, floatround_round), floatround(armour, floatround_round));
            
UpdateDynamic3DTextLabelText(cNametag[i], 0xFFFFFFFF, nametag);
        }
    }
} 
I think that will work, just replace the one from the guys script with the one above.

Not tested.
Reply


Messages In This Thread
Nametags - Questions - by BrainDamaged - 12.07.2018, 20:22
Re: Nametags - Questions - by BrainDamaged - 13.07.2018, 08:22
Re: Nametags - Questions - by ItsRobinson - 13.07.2018, 19:09
Re: Nametags - Questions - by J0sh... - 13.07.2018, 19:15
Re: Nametags - Questions - by Jefff - 13.07.2018, 19:43
Re: Nametags - Questions - by ItsRobinson - 13.07.2018, 19:49
Re: Nametags - Questions - by Jefff - 13.07.2018, 20:06
Re: Nametags - Questions - by ItsRobinson - 13.07.2018, 20:29
Re: Nametags - Questions - by Jefff - 13.07.2018, 20:36
Re: Nametags - Questions - by ItsRobinson - 13.07.2018, 21:45

Forum Jump:


Users browsing this thread: 1 Guest(s)