Dynamic3DTextLabel
#1

removed...
Reply
#2

Reply
#3

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) >>> 8playernameiarmourhp);
            }
            else
            {
                
format(nametagsizeof(nametag), "{%06x}%s {FFFFFF}(%i)\n{FF0000}%f"GetPlayerColor(i) >>> 8playernameiGetHealthDots(i));
            }
            
UpdateDynamic3DTextLabelText(cNametag[i], 0xFFFFFFFFnametag);
        }
    }

Reply
#4

change
PHP код:
nametag[128
to more like

PHP код:
nametag[170
Reply
#5

removed
Reply
#6

i remove only useless replies lol
Reply
#7

Quote:
Originally Posted by TitoRayne
Посмотреть сообщение
Well done, Remove your replies xD
Remove all instead XD, anyways rep
Reply
#8

Quote:
Originally Posted by Lokii
Посмотреть сообщение
i remove only useless replies lol
Nevermind fixed.
Reply
#9

Quote:
Originally Posted by Lokii
Посмотреть сообщение
i remove only useless replies lol
Lol now it shows 100.0 health can't it be 100 only?
Reply
#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


Forum Jump:


Users browsing this thread: 3 Guest(s)