SetNameTagDrawDistance(8); for certain player? -
ic3cr3am - 30.12.2013
SetNameTagDrawDistance(

;
LimitPlayerMarkerRadius(

;
^^ is it possiable to do this only for certain player?
if you help, you will get rep+
Re: SetNameTagDrawDistance(8); for certain player? -
ic3cr3am - 30.12.2013
im sorry, but, bump!
Re: SetNameTagDrawDistance(8); for certain player? -
SilentSoul - 30.12.2013
Could you explain what you mean please ? you want to make it for one player ? or the player you choose ?
Re: SetNameTagDrawDistance(8); for certain player? -
ic3cr3am - 30.12.2013
well, yes, one player, im making dm and i want it only for the ones who joins dm.
Re: SetNameTagDrawDistance(8); for certain player? -
nGen.SoNNy - 30.12.2013
You can't do it with the NameTag :P
https://sampwiki.blast.hk/wiki/SetPlayerVirtualWorld
With this all players with the virtual world 10 for ex will see just the players from world 10 .
Hope this was helpful.
Re: SetNameTagDrawDistance(8); for certain player? -
SilentSoul - 30.12.2013
Try to put that function inside your death match command , but it seems like you can't do that
https://sampwiki.blast.hk/wiki/SetNameTagDrawDistance
EDIT: i was too late sorry!
EDIT 2: I've found function that may help you ,
https://sampwiki.blast.hk/wiki/ShowPlayerNameTagForPlayer that will disable/enable tags.
Re: SetNameTagDrawDistance(8); for certain player? -
ic3cr3am - 30.12.2013
ok, thanks guys, even though this was not what i was looking for, but now i will use.
Код:
for(new i = 0; i < MAX_PLAYERS; i++)
{
ShowPlayerNameTagForPlayer(playerid, i, false);
}
still, rep+ for all that tried to help
Re: SetNameTagDrawDistance(8); for certain player? - Patrick - 30.12.2013
I think it's not impossible, I've create this function in about 5 minutes, I am not sure if this is what you want, you could loop all the players who's inside the dm and they're connected, it would show the name tag.
pawn Код:
#if defined MAX_PLAYERS
#undef MAX_PLAYERS
#define MAX_PLAYERS 100 //if MAX_PLAYERS is more than 255, you should remove the 'char'
#endif
new
bool: IsPlayerInDM [ MAX_PLAYERS char ]
;
main()
{
new playerid = 0;
ShowDMNameTag(playerid, true);
}
stock ShowDMNameTag(playerid, bool:on = true)
{
new
i = 0
;
while(i < MAX_PLAYERS && IsPlayerConnected(i) && IsPlayerInDM[i] == true)
{
if(on == true)
{
ShowPlayerNameTagForPlayer(playerid, i, true);
}
else if(on == false)
{
ShowPlayerNameTagForPlayer(playerid, i, false);
}
i++;
}
}
Re: SetNameTagDrawDistance(8); for certain player? -
ic3cr3am - 30.12.2013
Quote:
Originally Posted by pds2k12
I think it's not impossible, I've create this function in about 5 minutes, I am not sure if this is what you want, you could loop all the players who's inside the dm and they're connected, it would show the name tag.
pawn Код:
#if defined MAX_PLAYERS #undef MAX_PLAYERS #define MAX_PLAYERS 100 //if MAX_PLAYERS is more than 255, you should remove the 'char' #endif
new bool: IsPlayerInDM [ MAX_PLAYERS char ] ;
main() { new playerid = 0; ShowDMNameTag(playerid, true); }
stock ShowDMNameTag(playerid, bool:on = true) { new i = 0 ; while(i < MAX_PLAYERS && IsPlayerConnected(i) && IsPlayerInDM[i] == true) { if(on == true) { ShowPlayerNameTagForPlayer(playerid, i, true); } else if(on == false) { ShowPlayerNameTagForPlayer(playerid, i, false); } i++; } }
|
Lol, bro, i don't expect you to write the whole code, lol, but thanks, to bad i already gave you rep+ a time ago. :X
Re: SetNameTagDrawDistance(8); for certain player? - Patrick - 30.12.2013
Quote:
Originally Posted by ic3cr3am
Lol, bro, i don't expect you to write the whole code, lol, but thanks, to bad i already gave you rep+ a time ago. :X
|
That's just a test code, you need to do some fixes, anyways it's alright :P