how to disabled health & armour 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: how to disabled health & armour bar! (
/showthread.php?tid=543135)
how to disabled health & armour bar! -
Barnwell - 24.10.2014
plesae how to disabled hp & armour bar when i set ShowNameTags to 0 will not show the name plesae help with it!
Re: how to disabled health & armour bar! -
ZaBraNjeNi - 24.10.2014
Code:
ShowPlayerNametag(i, playerid, 0)
0 - will hide health and armour bar
1 - will show health and armour bar
Re: how to disabled health & armour bar! -
GGRoleplay - 24.10.2014
Put under OnPlayerConnect
for(new i = 0; i < MAX_PLAYERS; i++)
{
ShowPlayerNameTag(i, playerid, 0);
}
Re: how to disabled health & armour bar! -
zT KiNgKoNg - 24.10.2014
Or you can do the Logical thing a disable them when the GameMode actually starts, there
is no need to loop through all the slots.
pawn Code:
public OnGameModeInit()
{
// This will fully disable all player nametags
// (including health and armour bars)
ShowNameTags(0);
}
And frankly your code is absolutely useless because you're disabling name tags for players that aren't actually connected, and is frankly pathetic that you even suggest this.
This is what it should have been. (And your Location 'Repuation' will never be over 100 legitimately)
pawn Code:
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
ShowPlayerNameTag(i, playerid, 0);
}
}
Quote:
Originally Posted by ZaBraNjeNi
Code:
ShowPlayerNametag(i, playerid, 0)
0 - will hide health and armour bar
1 - will show health and armour bar
|
Without telling the 'Requesting Person' where to put this code and just asking them to put that little bit of code anywhere in the script would frankly be useless and pathetic you even suggested this.