SA-MP Forums Archive
ShowPlayerNameTagForPlayr - Bug? - 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: ShowPlayerNameTagForPlayr - Bug? (/showthread.php?tid=107072)



ShowPlayerNameTagForPlayr - Bug? - godknightx - 07.11.2009

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


Re: ShowPlayerNameTagForPlayr - Bug? - retart441 - 07.11.2009

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?


Re: ShowPlayerNameTagForPlayr - Bug? - MadeMan - 07.11.2009

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.


Re: ShowPlayerNameTagForPlayr - Bug? - godknightx - 08.11.2009

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 ?


Re: ShowPlayerNameTagForPlayr - Bug? - MadeMan - 08.11.2009

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.


Re: ShowPlayerNameTagForPlayr - Bug? - bajskorv123 - 08.11.2009

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;
}