Name tag problem
#1

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!
Reply
#2

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

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)