06.12.2012, 20:29
If you mean hiding the name tag from a player you need something like this.
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))
{
for(new i = 0; i < MAX_PLAYERS; i++) ShowPlayerNameTagForPlayer(playerid, i, false);
GameTextForPlayer(playerid, "~W~Nametags ~R~off", 5000, 5);
return 1;
}
}
pawn Код:
if (strcmp("/tagoff", cmdtext, true) == 0)
{
if(IsPlayerAdmin(playerid))
{
SetPlayerMarkerForPlayer( 42, 1, 0xFFFFFF00 );
return 1;
}
}

