24.10.2014, 21:54
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.
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)
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.
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);
}
}
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.