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



Colours - Zex Tan - 29.06.2012

Is there any tutorial about how to do like this *Moderator* : *[playername]*

Please help me .... I am a newbie here .


Re: Colours - Cxnnor - 29.06.2012

Post something along these lines at the top of your script. Format: '#define COLORNAME HTMLCOLORCODE'
pawn Код:
#define COLOR_GREY      0xAFAFAFAA
Then if you want to send a client message to a player do this.
pawn Код:
SendClientMessage(playerid, COLOR_GREY, "Your message here");



Re: Colours - Luis- - 29.06.2012

Quote:
Originally Posted by Cxnnor
Посмотреть сообщение
Post something along these lines at the top of your script. Format: '#define COLORNAME HTMLCOLORCODE'
pawn Код:
#define COLOR_GREY      0xAFAFAFAA
Then if you want to send a client message to a player do this.
pawn Код:
SendClientMessage(playerid, COLOR_GREY, "Your message here");
Read the post before posting yourself.

------------------------
@Zex Tan;
You can use this - http://www.colorpicker.com/ to choose a color then copy the colour code above and do something like this;
pawn Код:
SendClientMessageToAll(0xAFAFAFAA, "Moderator: {colour code}message here");



Re: Colours - Zex Tan - 29.06.2012

the * white but the moderator is green. How to do that In the chatlog


Re: Colours - Zex Tan - 29.06.2012

Like this...
*Moderator*