SA-MP Forums Archive
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: Name Tag (/showthread.php?tid=654226)



Name Tag - JohnRastion - 24.05.2018

Hello, i was checking a roleplayer server and i found this, can anyone help me to create like it please?

Note: Server based on Mysql



Re: Name Tag - Sew_Sumi - 24.05.2018

Doesn't matter what the server is based on, that's just a SendClientMessage.



And if it's not a chat message, I'll advise you not to crop pretty much everything in the image out which will even show what it is you are asking about...


Re: Name Tag - GTLS - 24.05.2018

They are Color Tags. Used like, for eg
Код:
 SendClientMessage(playerid, -1, "{000000}Hello.");//This will display Hello in Black. You can use HTML Color Pickers online to get exact color shades.
EDIT: Also, tell me what is Check, before the player's name? If its constant, you can use,

Код:
 SendClientMessageEx(playerid, COLOR_NAME, "(({COLOR_CODE}Check {COLOR_NAME_CODE} %s Says: %s",GetPlayerName(playerid), params); //replace COLOR_NAME with your color,  COLOR_CODE with the color you want Check to be displayed and replace COLOR_NAME_CODE to Color Code of the color you used as COLOR_NAME.
Код:
//How to get Color codes from name?
#define COLOR_RED (0xFF0000FF) //0xRRGGBBAA
#define COLOR_RED_CODE "FF0000" //RRGGBB



Re: Name Tag - JohnRastion - 23.11.2018

Thanks guys, already solved