Raised This Month: $ Target: $400
 0% 

Colouring text


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
hornet
AMX Mod X Plugin Approver
Join Date: Mar 2010
Location: Australia
Old 05-08-2010 , 22:04   Colouring text
Reply With Quote #1

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!
hornet is offline
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 03:37.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode