Hide Player Above Head Details.
#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


Messages In This Thread
Hide Player Above Head Details. - by Laure - 30.11.2012, 11:37
Re: Hide Player Above Head Details. - by gtakillerIV - 30.11.2012, 11:40
Re: Hide Player Above Head Details. - by Laure - 30.11.2012, 11:45
Re: Hide Player Above Head Details. - by gtakillerIV - 30.11.2012, 11:48

Forum Jump:


Users browsing this thread: 1 Guest(s)