SA-MP Forums Archive
Hide/show player tags - 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: Hide/show player tags (/showthread.php?tid=85691)



Hide/show player tags - Dominiks - 09.07.2009

Can someone give me a scripts who hides player tags with command /hidetags, and show's them with /showtags?


Re: Hide/show player tags - lavamike - 09.07.2009

https://sampwiki.blast.hk/wiki/ShowPlayerNameTagForPlayer

There is the function you are looking for and there is example code of what you want on the wiki page.


Re: Hide/show player tags - Abernethy - 09.07.2009

pawn Код:
if (strcmp("/hidetags", cmdtext, true) == 0)
    {
  for(new i = 0; i < MAX_PLAYERS; i++)
  {
    ShowPlayerNameTagForPlayer(playerid, i, false);
  }
  return 1;
}

if (strcmp("/showtags", cmdtext, true) == 0)
    {
  for(new i = 0; i < MAX_PLAYERS; i++)
  {
    ShowPlayerNameTagForPlayer(playerid, i, true);
  }
  return 1;
}



Re: Hide/show player tags - Dominiks - 09.07.2009

Thank you!