Names RolePlay
#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


Messages In This Thread
Names RolePlay - by majestyk - 07.07.2010, 13:30
Re: Names RolePlay - by TouR - 07.07.2010, 14:35
Re: Names RolePlay - by VitorMondim - 07.07.2010, 14:39
Re: Names RolePlay - by Hiddos - 07.07.2010, 16:40
Re: Names RolePlay - by majestyk - 07.07.2010, 17:01
Re: Names RolePlay - by Hiddos - 07.07.2010, 17:03
Re: Names RolePlay - by VitorMondim - 07.07.2010, 17:05
Re: Names RolePlay - by VitorMondim - 07.07.2010, 17:23
Re: Names RolePlay - by VitorMondim - 07.07.2010, 17:38

Forum Jump:


Users browsing this thread: 2 Guest(s)