SA-MP Forums Archive
Gang name beside playername - 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: Gang name beside playername (/showthread.php?tid=500321)



Gang name beside playername - Sergeant - 12.03.2014

As the title says, I want to know how i can put the Gang names that i've chosen beside a players name and to not confuse you, here's an example.

When you look at the player you will see:

Mafia* DannyLong(1)

and when he types in the chat you will see:

Mafia* DannyLong(1): Hello !


Re: Gang name beside playername - Matess - 12.03.2014

SetPlayerName or Create3DTextLabel?


Re: Gang name beside playername - Sergeant - 12.03.2014

Can i have an example? Tyvm


Re: Gang name beside playername - Matess - 12.03.2014

This will change his name. Problem could be with bigger nickname.
pawn Код:
new name[MAX_PLAYER_NAME+1];
GetPlayerName(playerid, name, sizeof(name));
strins(name, "Mafia* ", 0);
SetPlayerName(playerid, name);



Re: Gang name beside playername - Sergeant - 12.03.2014

That's not what I'm looking for, I have 5 gangs and each gang will show the Color of the gang on the player and show the gang name to the left of the player.

Tried half this day to find something and tried plenty of things, but never found anything.