Name Tags
#1

Okay. I have a script with admin command to disable the name tags, but I want a script or addition
to make it so u have to be within like '15' to be able to see the tags. Help pl0x
Reply
#2

<Insert generic warning about making bumps outside of 12 hour span>

You have to make a timer to enable ShowPlayerTageForPlayer once they're within a certain distance of a player.
Reply
#3

https://sampwiki.blast.hk/wiki/SetNameTagDrawDistance

That should do it.
Reply
#4

Under OnGameModeInit, put pDistance(10), 10 stands for how close you have to be to see the nametag. This requires morphinc.inc though.
Reply
#5

pawn Код:
ShowPlayerNameTagForPlayer
?
Reply
#6

Quote:
Originally Posted by InstabiC
So basicly, under OnGameModeInit i post SetNameTagDrawDistance(20.0); ??
Reply
#7

(BUMP) Please help
Reply
#8

Quote:
Originally Posted by Antonio (IRP)
Quote:
Originally Posted by InstabiC
So basicly, under OnGameModeInit i post SetNameTagDrawDistance(20.0); ??
Yes
Reply
#9

pawn Код:
ShowNameTags(1);//this makes them show
pawn Код:
ShowNameTags(0;//this hides them

to make a command to show and hide them use this.

pawn Код:
}
  if(strcmp(cmdtext, "/nametagon", true)==0)
    {
        for(new i = 0; i < MAX_PLAYERS; i ++)
        {
             SendClientMessage(playerid, COLOR_YELLOW2, "Name Tag's Will Appear.");
        ShowPlayerNameTagForPlayer(playerid, i, 1);
        }
        return 1;
    }
  if(strcmp(cmdtext, "/nametagoff", true)==0)
    {
        for(new i = 0; i < MAX_PLAYERS; i ++)
        {
        ShowPlayerNameTagForPlayer(playerid, i, 0);
             SendClientMessage(playerid, COLOR_YELLOW2, "Name Tag's Will Be Hidden.");
        }
        return 1;
}
Reply
#10

Quote:
Originally Posted by Shady91
pawn Код:
ShowNameTags(1);//this makes them show
pawn Код:
ShowNameTags(0;//this hides them

to make a command to show and hide them use this.

pawn Код:
}
  if(strcmp(cmdtext, "/nametagon", true)==0)
    {
        for(new i = 0; i < MAX_PLAYERS; i ++)
        {
             SendClientMessage(playerid, COLOR_YELLOW2, "Name Tag's Will Appear.");
        ShowPlayerNameTagForPlayer(playerid, i, 1);
        }
        return 1;
    }
  if(strcmp(cmdtext, "/nametagoff", true)==0)
    {
        for(new i = 0; i < MAX_PLAYERS; i ++)
        {
        ShowPlayerNameTagForPlayer(playerid, i, 0);
             SendClientMessage(playerid, COLOR_YELLOW2, "Name Tag's Will Be Hidden.");
        }
        return 1;
}
No thanks
Quote:
Originally Posted by Sergiy
Quote:
Originally Posted by Antonio (IRP)
Quote:
Originally Posted by InstabiC
So basicly, under OnGameModeInit i post SetNameTagDrawDistance(20.0); ??
Yes
When I do this, it says "Symbol Already Defined, but when I search it, there is no matches. Help please?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)