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 i : Player)
{
if(IsPlayerConnected(i))
{
new nametag[128], playername[MAX_PLAYER_NAME], Float:armour, Float:hp;
GetPlayerArmour(i, armour);
GetPlayerHealth(i, hp);
GetPlayerName(i, playername, sizeof(playername));
if(armour > 1.0)
{
format(nametag, sizeof(nametag), "{%06x}%s {FFFFFF}(%i)\n{FFFFFF}%f\n{FF0000}%f", GetPlayerColor(i) >>> 8, playername, i, armour, hp);
}
else
{
format(nametag, sizeof(nametag), "{%06x}%s {FFFFFF}(%i)\n{FF0000}%f", GetPlayerColor(i) >>> 8, playername, i, GetHealthDots(i));
}
UpdateDynamic3DTextLabelText(cNametag[i], 0xFFFFFFFF, nametag);
}
}
}
Re: Dynamic3DTextLabel -
Lokii - 25.03.2018
change
to more like
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 i : Player)
{
if(IsPlayerConnected(i))
{
new nametag[128], playername[MAX_PLAYER_NAME], Float:armour, Float:hp;
GetPlayerArmour(i, armour);
GetPlayerHealth(i, hp);
GetPlayerName(i, playername, sizeof(playername));
if(armour > 1.0)
{
format(nametag, sizeof(nametag), "{%06x}%s {FFFFFF}(%i)\n{FFFFFF}%f\n{FF0000}%f", GetPlayerColor(i) >>> 8, playername, i, floatround(armour, floatround_floor), floatround(hp, floatround_floor));
}
else
{
format(nametag, sizeof(nametag), "{%06x}%s {FFFFFF}(%i)\n{FF0000}%f", GetPlayerColor(i) >>> 8, playername, i, floatround(hp, floatround_floor));
}
UpdateDynamic3DTextLabelText(cNametag[i], 0xFFFFFFFF, nametag);
}
}
}