ColorChat
Hey,
Someone Can Please Tell me how to use colorchat in code ? |
Re: ColorChat
ColorChat (index, COLOR, "Text")
COLOR can be: GREY, RED, BLUE, NORMAL To use different colors you this to add ^01, ^03 or ^04 before the word you want to collor ^01 - Normal Chat Color ^03 - Color that you choose in COLOR* (if you choose NORMAL, it will appear team collor, like CT = Blue, T = red and Spec = Grey) ^04 - Green |
Re: ColorChat
Step 1 : Copy the code below and add it to the last of your plugin's source.
PHP Code:
|
Re: ColorChat
Step 2 :
After you add this code to your plugin you just have to replace all the client_print code. I'll give an example, use your brain and do the rest with all the code. Change this - client_print(id,print_chat,"This is a normal chat message in your plugin") to client_print_color(id,print_chat,"!gThis is a !tcolored chat!n message which you edited!") You can use these codes for color chats - !g = Green !n = Normal !t = Team |
Re: ColorChat
??? You don't have to add anything. Download the latest dev build of AMXMODX which has client_print_color already included...
|
Re: ColorChat
Quote:
|
Re: ColorChat
Quote:
PHP Code:
|
Re: ColorChat
ur welcome :)
|
Re: ColorChat
Quote:
PHP Code:
|
Re: ColorChat
Quote:
|
| All times are GMT -4. The time now is 13:10. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.