Rank above head like name -
Rokzlive - 23.01.2012
Ok, if any of you have played servers like Convoy Trucking or Pilots Life, you will know what im talking about.
I want to make it so above the players head there will be a 3d text, life the default sa:mp name.
I want to format it like this
format(String,sizeof(string),"%s\n%s",GetName(play erid),playerdata[playerid][rank]);
And show that above the head instead of the default sa:mp names, but i dont have a clue how seeing as ive never used 3d texts in this way.
Basically im asking, how do you do it?
Note: I use incognitos streamer.
Re: Rank above head like name -
Scenario - 23.01.2012
I think you'll be okay. When you create the 3D label, just use these coordinates: 0.0, 0.0, 0.3
I think that'll do it!
Re: Rank above head like name -
Haydz - 23.01.2012
Hey Rokzlive, long time no see.
pawn Код:
//Place under OnGameModeInit so the normal name tags don't show.
ShowNameTags(0);
//Place when a player first spawns.
new string[50]; format(string,sizeof(string),"%s\n%s",GetName(playerid),playerdata[playerid][rank]);
CreateDynamic3DTextLabel(string, COLOR_BLUE, 0, 0, 0.15, 100.0, playerid, INVALID_VEHICLE_ID, 0, -1,-1, -1,100.0);
You may need to add some extra pieces of code to insure that the label's wont double up. The code above will give you a fair idea of what is needed anyways.
Re: Rank above head like name -
Rokzlive - 23.01.2012
Lol hey Haydz, same for you. Ive been on your server though, not seen me? :/
And thanks
Re: Rank above head like name - Guest9328472398472 - 24.01.2012
Click
here for reference!