how to disabled health & armour bar!
#1

plesae how to disabled hp & armour bar when i set ShowNameTags to 0 will not show the name plesae help with it!
Reply
#2

Code:
ShowPlayerNametag(i, playerid, 0)
0 - will hide health and armour bar
1 - will show health and armour bar
Reply
#3

Put under OnPlayerConnect

for(new i = 0; i < MAX_PLAYERS; i++)
{
ShowPlayerNameTag(i, playerid, 0);
}
Reply
#4

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
View Post
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.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)