SA-MP Forums Archive
Name tag problem - 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: Name tag problem (/showthread.php?tid=73007)



Name tag problem - Jaztek_Hodzic - 12.04.2009

hey guys i have this code in my gamemode
pawn Код:
//The player who typed /nameoff will not be able to see any other players nametag.
if (strcmp("/nameoff", cmdtext, true) == 0)
{
  for(new i = 0; i < MAX_PLAYERS; i++)
  {
    ShowPlayerNameTagForPlayer(playerid, i, false);
  }
  GameTextForPlayer(playerid, "~W~Nametags ~R~off", 5000, 5);
  return 1;
}
but it only goes off for one second and comes back

hope you can help!



Re: Name tag problem - MenaceX^ - 12.04.2009

I had a problem long time with that, I just made loop and checked if true will fix it, I don't remember, didn't use this function for long time.


Re: Name tag problem - Marcel - 12.04.2009

Do you have a timer or something that runs every second and puts it on?


Re: Name tag problem - MenaceX^ - 12.04.2009

You can see in his code that he doesn't have a timer, just debug/loop it out.