/tagoff
#1

Can someone make me an admin command for tags off? I can edit it and that I just need a strcmp command for admins to /tagoff, so no one can see there tag but they can see everyone elses.

Thanks Mike
Reply
#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
#3

Ok what I meant was, That when you use /tagoff it only takes your tag off, So no one can see it.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)