Hi I was wondering how you colour the text in the chat section. For example if you've ever played JailBreak, GunGame, etc. Whenever a message is printed by the plugin, the mod name will show in green like this
[JailBreak] , and the rest will be yellow and a few certain words might be either green, red or blue.
For example, if I wanted to say, "[ModName] Welcome to ModName" , and make both of the ModNames green and the rest yellow, this is how I would try to print it:
PHP Code:
new str[64];
format(str,64,"\g[ModName] \yWelcome to \gModName");
client_print(id,print_chat,str);
All this is does is print the whole string in yellow and shows the \g's and \y's.
Any idea how to set this up? Thanks!