Name Tag Question
#1

Hey Guys,

I was wondering, Is there a way i can do like this

[ADMIN]Playername
[Police]Chief 4znlyfe

*Each Rank Tag has it own color indicator(Red for Admin,Green for Police,etc)

Thanks
Reply
#2

You'll need to use SetPlayerName or make a 3D text on top of his head and hide his name tag.
Reply
#3

pawn Код:
public OnPlayerSpawn(playerid)
{
   new pName[MAX_PLAYER_NAME];
   GetPlayerName(playerid,pName,sizeof(pName));
   new string[250];
   if(IsPlayerAdmin(playerid))
   {
      format(string,sizeof(string),"[ADMIN]%s",pName);
      SetPlayerName(playerid,string);
   }
   if(gTeam[playerid]==TEAM_COPS)
   {
       format(string,sizeof(string),"[Police]%s",pName);
       SetPlayerName(playerid,string);
   }
 return 1;
}
You can alternatively use switch,it's your choice.Adjust my code to your specs,and unfortunately I have no idea how to remove the tag ,maybe someone would edit my script,I gave you a basic idea.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)