Names RolePlay
#1

Hello!
Can someone show me the filterscript that causes the players' names do not appear on the head and only appear if the player says his name?

Await response, please!

Respects,
majestyk
Reply
#2

Paste this under OnGameModeInit: ShowNameTags(0);


You used wrong section of the forum
Reply
#3

Yes, but saying the name does not appear
Reply
#4

pawn Code:
public OnPlayerConnect(playerid)
{
  for(new i; i < MAX_PLAYERS; i++)
  {
    ShowPlayerNameTagForPlayer(i,playerid,0);
  }
  return 1;
}

public OnPlayerText(playerid,text[])
{
  for(new i; i < MAX_PLAYERS; i++)
  {
    ShowPlayerNameTagForPlayer(i,playerid,1);
  }
  SetTimerEx("ResetNameTag",5000,0,"d",playerid);
  return 1;
}

forward ResetNameTag(playerid);
public ResetNameTag(playerid)
{
  for(new i; i < MAX_PLAYERS; i++)
  {
    ShowPlayerNameTagForPlayer(i,playerid,0);
  }
  return 1;
}

Shows for 5 seconds, then hides it again.
Reply
#5

And there's no way to appear on forever?
Reply
#6

Remove the timer and the ResetNameTag function then
Reply
#7

Good Job. I will test
Reply
#8

This does not work.
Reply
#9

"ShowNameTags (0);"

I must have this in OnGameModeInit?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)