Name tag and health bar - 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: Name tag and health bar (
/showthread.php?tid=548740)
Name tag and health bar -
Flokx - 02.12.2014
1. So, I was wondering if its possible to hide the nametag (Only the health bar). I tried
this but it hides player name too.
2. Is it possible to remove the Health and Armour bar on the screen. (Textdraw located near cash)
Thanks + rep
Re: Name tag and health bar -
mati233 - 02.12.2014
1. You can't just hide the healthbar, but you can create a textlabel and attach it to the player.
(
https://sampwiki.blast.hk/wiki/CreatePlayer3DTextLabel)
2. Not possible.
Re: Name tag and health bar -
Abagail - 02.12.2014
You can hide the name tag, and health bar if you mean the health bar of the player your hiding the name tag of. This also disables their armor bar if they have armor. See;
ShowNameTags
(
https://sampwiki.blast.hk/wiki/ShowNameTags)
Re: Name tag and health bar -
Flokx - 02.12.2014
Thanks for helping guys, and mati233 that's really a good idea. +rep(ed) both of you.
There guys:
Re: Name tag and health bar -
TitoRayne - 17.10.2017
Can you give me that name tag and health bar please?
Re: Name tag and health bar -
Zeth - 17.10.2017
Quote:
Originally Posted by Flokx
Thanks for helping guys, and mati233 that's really a good idea. +rep(ed) both of you.
There guys:
|
You can't remove health bar and armor bar on the top corner of the screen but instead, you can use a textdraw over those bars to make it hide.
And you can use ShowNameTags(0) to hide both health and armor bar and then create a
CreatePlayer3DTextLabel and format the string for only the playername.
Re: Name tag and health bar -
TitoRayne - 18.10.2017
Create me plux!
Re: Name tag and health bar -
Stop - 18.10.2017
Quote:
CMD:nametags(playerid)
{
if(GetPVarInt(playerid, "nameTagOFF") == 0)
{
foreach(Player, ii) ShowPlayerNameTagForPlayer(ii, playerid, false);
SetPVarInt(playerid, "nameTagOFF", 1);
SendClientMessage(playerid, COLOR_WHITE, You have disabled your nametag, other players will not be able to see your name/health/armour.);
}
else
{
foreach(Player, ii) ShowPlayerNameTagForPlayer(ii, playerid, true);
DeletePVar(playerid, "nameTagOFF");
SendClientMessage(playerid, COLOR_WHITE, You have enabled your nametag, other players will now to able to see your name.);
}
return 1;
}
|
here
Re: Name tag and health bar -
TitoRayne - 19.10.2017
I want like that health bar and Name below please?