SA-MP Forums Archive
Dynamic3DTextLabel - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Dynamic3DTextLabel (/showthread.php?tid=651684)



Dynamic3DTextLabel - TitoRayne - 25.03.2018

removed...


Re: Dynamic3DTextLabel - TitoRayne - 25.03.2018




Re: Dynamic3DTextLabel - Lokii - 25.03.2018

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);
        }
    }




Re: Dynamic3DTextLabel - Lokii - 25.03.2018

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

PHP код:
nametag[170



Re: Dynamic3DTextLabel - TitoRayne - 25.03.2018

removed


Re: Dynamic3DTextLabel - Lokii - 25.03.2018

i remove only useless replies lol


Re: Dynamic3DTextLabel - TitoRayne - 25.03.2018

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


Re: Dynamic3DTextLabel - TitoRayne - 25.03.2018

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


Re: Dynamic3DTextLabel - TitoRayne - 25.03.2018

Quote:
Originally Posted by Lokii
Посмотреть сообщение
i remove only useless replies lol
Lol now it shows 100.0 health can't it be 100 only?


Re: Dynamic3DTextLabel - Lokii - 25.03.2018

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);
        }
    }