Raised This Month: $ Target: $400
 0% 

Colouring text


Post New Thread Reply   
 
Thread Tools Display Modes
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
AntiBots
Veteran Member
Join Date: May 2008
Location: Brazil
Old 05-08-2010 , 22:42   Re: Colouring text
Reply With Quote #2

Search for Color Print or Color Text. a plugin make by Connor.
__________________
AntiBots is offline
Send a message via ICQ to AntiBots Send a message via MSN to AntiBots Send a message via Skype™ to AntiBots
hornet
AMX Mod X Plugin Approver
Join Date: Mar 2010
Location: Australia
Old 05-08-2010 , 23:00   Re: Colouring text
Reply With Quote #3

Ok thanks, found this after searching what you said: http://forums.alliedmods.net/showthread.php?p=1118812
hornet is offline
Reply



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