Dynamic3DTextLabel
#10

Quote:
Originally Posted by TitoRayne
Посмотреть сообщение
Lol now it shows 100.0 health can't it be 100 only?
PHP код:
forward UpdateNametag();
public 
UpdateNametag()
{
    foreach(new 
Player)
    {
        if(
IsPlayerConnected(i))
        {
            new 
nametag[128], playername[MAX_PLAYER_NAME], Float:armourFloat:hp;
            
GetPlayerArmour(iarmour);
            
GetPlayerHealth(ihp);
            
GetPlayerName(iplayernamesizeof(playername));
            if(
armour 1.0)
            {
                
format(nametagsizeof(nametag), "{%06x}%s {FFFFFF}(%i)\n{FFFFFF}%f\n{FF0000}%f"GetPlayerColor(i) >>> 8playernameifloatround(armourfloatround_floor), floatround(hpfloatround_floor));
            }
            else
            {
                
format(nametagsizeof(nametag), "{%06x}%s {FFFFFF}(%i)\n{FF0000}%f"GetPlayerColor(i) >>> 8playernameifloatround(hpfloatround_floor));
            }
            
UpdateDynamic3DTextLabelText(cNametag[i], 0xFFFFFFFFnametag);
        }
    }

Reply


Messages In This Thread
Dynamic3DTextLabel - by TitoRayne - 25.03.2018, 12:43
Re: Dynamic3DTextLabel - by TitoRayne - 25.03.2018, 12:46
Re: Dynamic3DTextLabel - by Lokii - 25.03.2018, 12:59
Re: Dynamic3DTextLabel - by Lokii - 25.03.2018, 13:10
Re: Dynamic3DTextLabel - by TitoRayne - 25.03.2018, 13:22
Re: Dynamic3DTextLabel - by Lokii - 25.03.2018, 13:25
Re: Dynamic3DTextLabel - by TitoRayne - 25.03.2018, 13:26
Re: Dynamic3DTextLabel - by TitoRayne - 25.03.2018, 13:28
Re: Dynamic3DTextLabel - by TitoRayne - 25.03.2018, 13:36
Re: Dynamic3DTextLabel - by Lokii - 25.03.2018, 16:05

Forum Jump:


Users browsing this thread: 1 Guest(s)