/tagoff
#2

If you mean hiding the name tag from a player you need something like this.

pawn Код:
if (strcmp("/tagoff", cmdtext, true) == 0)
{
    if(IsPlayerAdmin(playerid))
    {
        for(new i = 0; i < MAX_PLAYERS; i++) ShowPlayerNameTagForPlayer(playerid, i, false);
        GameTextForPlayer(playerid, "~W~Nametags ~R~off", 5000, 5);
        return 1;
    }
}
And if you want to hide the map icon just make the color invisible like this:

pawn Код:
if (strcmp("/tagoff", cmdtext, true) == 0)
{
    if(IsPlayerAdmin(playerid))
    {
        SetPlayerMarkerForPlayer( 42, 1, 0xFFFFFF00 );
        return 1;
    }
}
Reply


Messages In This Thread
/tagoff - by MikeMike1997 - 06.12.2012, 19:30
Re: /tagoff - by HireMe - 06.12.2012, 20:29
Re: /tagoff - by MikeMike1997 - 06.12.2012, 20:40

Forum Jump:


Users browsing this thread: 1 Guest(s)