Changing player name tag - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Changing player name tag (
/showthread.php?tid=464214)
Changing player name tag -
Lajko1 - 15.09.2013
How I can change player's name tag without changing his whole name only his name above his head ? so when players will press TAB they will still see his current IG name, but how to change only their name above his head ?
Re: Changing player name tag -
-Prodigy- - 15.09.2013
Not possible. UNLESS you hide all player's names and replace the name above their head with 3d labels
Re: Changing player name tag -
jueix - 15.09.2013
Quote:
Originally Posted by -Prodigy-
Not possible. UNLESS you hide all player's names and replace the name above their head with 3d labels
|
What he said, Hide the player's nametag, Then use 3d text labels to show the new name.
Re: Changing player name tag -
Lajko1 - 15.09.2013
Well if I understand right I should use that function to show player's tags and put it on game mode init ..
Then next step when player connect I should get his name and show it in 3D text labels
But to change name - for example I'm working on /mask I will need to destroy that text label and replace it with new one with name "Stranger"... that is possible right ? But how should I make if player write /mask again original IG name will be above his head again? thank you for response
Re: Changing player name tag -
Scrillex - 15.09.2013
Yes it is possible... onplayertext.... So basically you can do it
Re: Changing player name tag -
Lajko1 - 15.09.2013
Why on OnPlayerText and what is there..? help bit more it's first time I will be doing thing like this ^^
Re: Changing player name tag -
Scrillex - 15.09.2013
Umm you can do it when OnPlayertext player sayљ something it will show YourAddedName: text...
Then you can put it 3dLableText add on his head YourAddedName.. Look at mask filterscripts and you will see how it works.
You need something like mask system only with /changename id youraddedname... So yeah use your command processor and sscanf
Re: Changing player name tag -
Lajko1 - 16.09.2013
Well thank you I will try to figure out