ShowPlayerNameTagForPlayr - Bug?
#1

Hy

I would like set off the nametags for players, and enable to admins, but its dont work, because if i disable name tags in OnPlayerConnect (Showname....forplayer(player, x, false)) all players will show...

So how can i hide, and enable with a command?

Any bug fix plugin, or other ?

Thanx
Reply
#2

If I could also add on to his question, cause I to am wondering. If you could remove the persons name tag, could you just leave their ID?
Reply
#3

https://sampwiki.blast.hk/wiki/ShowPlayerNameTagForPlayer <-- there is an example of /nameoff command

Quote:
Originally Posted by retart441
If I could also add on to his question, cause I to am wondering. If you could remove the persons name tag, could you just leave their ID?
You can't just leave the ID it's just all or nothing. You can use 3D text if you want.
Reply
#4

You dont understand me...

If i put this code to "OnPlayerConnect" or "OnPlayerSpawn", its dont work, but i dont know why...
pawn Код:
for(new x = 0; x < MAX_PLAYERS; x++)
{
if(!IsPlayerConnected(x) || !Logged(x) || x == playerid) continue;
ShowPlayerNameTagForPlayer(playerid, x, false);
}
Its a SAMP bug ?
Reply
#5

Quote:
Originally Posted by godknightx
You dont understand me...

If i put this code to "OnPlayerConnect" or "OnPlayerSpawn", its dont work, but i dont know why...
pawn Код:
for(new x = 0; x < MAX_PLAYERS; x++)
{
if(!IsPlayerConnected(x) || !Logged(x) || x == playerid) continue;
ShowPlayerNameTagForPlayer(playerid, x, false);
}
Its a SAMP bug ?
Show the Logged function.
Reply
#6

Here try this
Atleast I dont get any errors when i compile.

Код:
public OnPlayerSpawn(playerid)
{
  for(new i = 0; i < MAX_PLAYERS; i++) ShowPlayerNameTagForPlayer(playerid, i, false);
// GameTextForPlayer(playerid,"~w~Nametags ~r~Off",2000,3);
	return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)