SetNameTagDrawDistance(8); for certain player?
#1

SetNameTagDrawDistance(;
LimitPlayerMarkerRadius(;

^^ is it possiable to do this only for certain player?

if you help, you will get rep+
Reply
#2

im sorry, but, bump!
Reply
#3

Could you explain what you mean please ? you want to make it for one player ? or the player you choose ?
Reply
#4

well, yes, one player, im making dm and i want it only for the ones who joins dm.
Reply
#5

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.
Reply
#6

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.
Reply
#7

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
Reply
#8

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++;
    }
}
Reply
#9

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
Reply
#10

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)