Hide Player Above Head Details.
#1

How can i make a command that hides a players name hp,armor, no one can see when the command activated?I checked out the mask's filterscript but wasnt how i wanted.

Help will be appreciated.
Reply
#2

Use the function ShowPlayerNameTagForPlayer.

pawn Код:
for(new i; i<MAX_PLAYERS; i++)
        {
            if(IsPlayerConnected(i))
            {
                ShowPlayerNameTagForPlayer(playerid, i, false);
            }
        }
Example Command:

pawn Код:
CMD:hideme(playerid, params[])
{
    if(Hidden[playerid] == 1)
    {
        for(new i; i<MAX_PLAYERS; i++)
        {
            if(IsPlayerConnected(i))
            {
                ShowPlayerNameTagForPlayer(playerid, i, true);
            }
        }
    }
    else if(Hidden[playerid] == 0)
    {
        for(new i; i<MAX_PLAYERS; i++)
        {
            if(IsPlayerConnected(i))
            {
                ShowPlayerNameTagForPlayer(playerid, i, false);
            }
        }
    }
    return 1;
}
Reply
#3

So if i use the command above no one can see my name's etc?
Reply
#4

Yep.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)