SA-MP Forums Archive
1 or more texture 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: 1 or more texture colours (/showthread.php?tid=166899)



1 or more texture colours - Rolyy - 10.08.2010

Is it possible to put more than 1 colour in 1 texture line ingame?

Example:
In line 8 I want the colour of "* " to be White.
In line 8 I want the colour of "[IRC] " to be Orange.
In line 8 I want the colour of "%s: %s" to be White.

As in:
* [IRC] Rolyy: How are you all?

Код:
1:  {
2:	new msg1[256], msg2[256];
3:	if(EchoStatus == 0) return 1;
4:	if(MsgStatus == 0) return IRC_GroupSay(IRC_Group,channel,"4*** Error: Command disabled.");
5:	if(isnull(params)) return IRC_GroupSay(IRC_Group,channel, "3Usage: !say <Message>");
6:	format(msg1, sizeof(msg1), "8[INGAME]8 %s: %s", user, params);
7:	IRC_GroupSay(IRC_Group, EchoChan, msg1);
8:	format(msg2, sizeof(msg2), "* [IRC] %s: %s", user, params);
9:	SendClientMessageToAll(green, msg2);
10:	return 1;
11: }



Re: 1 or more texture colours - Hiddos - 10.08.2010

Impossible, if you're talking about the normal chatwindow. It's possible in textdraws though.


Re: 1 or more texture colours - Rolyy - 10.08.2010

aww =\
Thanks for very fast reply thought