10.08.2010, 12:36
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?
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: }