[HELP] ShowNameTags? - 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: [HELP] ShowNameTags? (
/showthread.php?tid=249431)
[SOLVED] ShowNameTags? -
Fredden1993 - 18.04.2011
I've been trying to make Name Tags to only be visible when a player is about 10 feet from the player but ShowNameTags only enables them or disable.
Anyone know how to make the tags only show 10 feet away from a player?
Thanks
Re: [HELP] ShowNameTags? -
Stigg - 18.04.2011
Use a proxy detector.
Re: [HELP] ShowNameTags? -
Fredden1993 - 18.04.2011
Quote:
Originally Posted by Stigg
Use a proxy detector.
|
Indeed I might, I only wish how. Please, more detailed answers :P
Re: [HELP] ShowNameTags? -
Stigg - 18.04.2011
Edit: i made a mistake.
Re: [HELP] ShowNameTags? -
Fredden1993 - 18.04.2011
Quote:
Originally Posted by Stigg
Edit: made a mistake.
|
Edit: Oh, I see xD
Re: [HELP] ShowNameTags? -
Vince - 18.04.2011
Quote:
Originally Posted by Stigg
Use a proxy detector.
|
O_o
https://sampwiki.blast.hk/wiki/SetNameTagDrawDistance
Re: [HELP] ShowNameTags? -
Tommy_Mandaz - 18.04.2011
Maybe something like
pawn Код:
forward Float:GetDistanceBetweenPlayers(p1,p2);
public Float:GetDistanceBetweenPlayers(p1,p2)
{
new Float:x1,Float:y1,Float:z1,Float:x2,Float:y2,Float:z2;
if(!IsPlayerConnected(p1) || !IsPlayerConnected(p2))
{
return -1.00;
}
GetPlayerPos(p1,x1,y1,z1);
GetPlayerPos(p2,x2,y2,z2);
return floatsqroot(floatpower(floatabs(floatsub(x2,x1)),2)+floatpower(floatabs(floatsub(y2,y1)),2)+floatpower(floatabs(floatsub(z2,z1)),2));
}
pawn Код:
forward tagcheck;
SetTimer("tagcheck", 1000, 1);
Public tagcheck()
{
if(i == playerid) return 1;
if(GetDistanceBetweenPlayers(playerid, i) < 10)
{
//Tag Code Enable
}
else
{
//Tag Code Disable
}
return 1;
}
Re: [HELP] ShowNameTags? -
Fredden1993 - 18.04.2011
Quote:
Originally Posted by Vince
|
Yeah, that's the shit! Thanks mate