AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Colouring text (https://forums.alliedmods.net/showthread.php?t=126388)

hornet 05-08-2010 22:04

Colouring text
 
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!

AntiBots 05-08-2010 22:42

Re: Colouring text
 
Search for Color Print or Color Text. a plugin make by Connor.

hornet 05-08-2010 23:00

Re: Colouring text
 
Ok thanks, found this after searching what you said: http://forums.alliedmods.net/showthread.php?p=1118812


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

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