Name Tags - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Name Tags (
/showthread.php?tid=89740)
Name Tags -
Antonio [G-RP] - 04.08.2009
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
Re: Name Tags -
Joe Staff - 04.08.2009
<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.
Re: Name Tags -
[LL]InstabiC - 04.08.2009
https://sampwiki.blast.hk/wiki/SetNameTagDrawDistance
That should do it.
Re: Name Tags -
Josh! - 04.08.2009
Under OnGameModeInit, put pDistance(10), 10 stands for how close you have to be to see the nametag. This requires morphinc.inc though.
Re: Name Tags -
MenaceX^ - 04.08.2009
pawn Код:
ShowPlayerNameTagForPlayer
?
Re: Name Tags -
Antonio [G-RP] - 05.08.2009
Quote:
Originally Posted by InstabiC
|
So basicly, under OnGameModeInit i post SetNameTagDrawDistance(20.0); ??
Re: Name Tags -
Antonio [G-RP] - 05.08.2009
(BUMP) Please help
Re: Name Tags -
Sergei - 05.08.2009
Quote:
Originally Posted by Antonio (IRP)
Quote:
Originally Posted by InstabiC
|
So basicly, under OnGameModeInit i post SetNameTagDrawDistance(20.0); ??
|
Yes
Re: Name Tags -
shady91 - 05.08.2009
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;
}
Re: Name Tags -
Antonio [G-RP] - 05.08.2009
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?