Raised This Month: $100 Target: $400
 25% 

[INC] CromChat


Post New Thread Reply   
 
Thread Tools Display Modes
shehzad1234
Senior Member
Join Date: Jan 2016
Old 03-17-2017 , 11:29   Re: [INC] CromChat
Reply With Quote #11

Quote:
Originally Posted by OciXCrom View Post
@shehzad1234 - I think you should read all previous comments before suggesting it.

I updated the file in the first post and I think it's ready now. I changed the color symbols from !g to &x04. I don't want to use ^x04 style because this one can't be used inside ML/cfg/ini files. So I think the current one is the best solution.

&x07 = red
&x06 = blue
&x05 = white
&x04 = green
&x03 = team color
&x01 = normal


I also improved one more thing that bugged me - when I want to send a chat message and log it at the same time, I had to replace all color symbols in order to do it. So, I added CC_LogMessage, which will simultaneously send a chat message and log it.
oh i m verry sorry @OciXCrom
__________________
Contact : Facebook
All Join -=}BBI{=- Hns Server :- 103.211.217.188:27015
shehzad1234 is offline
shehzad1234
Senior Member
Join Date: Jan 2016
Old 03-17-2017 , 11:31   Re: [INC] CromChat
Reply With Quote #12

@OciXCrom can u replace

&x06 with ^6 only its easy
__________________
Contact : Facebook
All Join -=}BBI{=- Hns Server :- 103.211.217.188:27015
shehzad1234 is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 03-17-2017 , 20:54   Re: [INC] CromChat
Reply With Quote #13

It's not easy at all and if you read the comments (again), you will see why.
__________________

OciXCrom is offline
Send a message via Skype™ to OciXCrom
shehzad1234
Senior Member
Join Date: Jan 2016
Old 03-18-2017 , 06:33   Re: [INC] CromChat
Reply With Quote #14

ok bro
__________________
Contact : Facebook
All Join -=}BBI{=- Hns Server :- 103.211.217.188:27015
shehzad1234 is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 03-18-2017 , 12:36   Re: [INC] CromChat
Reply With Quote #15

I added CC_RemoveColors function whicih will remove all chat and (or) menu colors from a message.
I also added a way to send a message without the prefix. Simply add &x00 in the beginning.
__________________

OciXCrom is offline
Send a message via Skype™ to OciXCrom
shehzad1234
Senior Member
Join Date: Jan 2016
Old 03-18-2017 , 15:11   Re: [INC] CromChat
Reply With Quote #16

hmm bro
__________________
Contact : Facebook
All Join -=}BBI{=- Hns Server :- 103.211.217.188:27015
shehzad1234 is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 05-26-2017 , 18:52   Re: [INC] CromChat
Reply With Quote #17

Added CC_SendMatched(id, iPlayer, szMessage[], any:...)
With this you can send a message that matches iPlayer's team color or use one of thee color arguments instead of a player id - CC_COLOR_[RED|BLUE|GREY|DEFAULT]. If a different color code is found in the message itself, it will switch to that color.
__________________

OciXCrom is offline
Send a message via Skype™ to OciXCrom
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 10-16-2017 , 14:49   Re: [INC] CromChat
Reply With Quote #18


  • Added different combinations of color codes that can be activated with adding a single line of code in the .sma file. You can use codes like &x04, !g, {green}, {g}, ^4, or even create your custom ones. Read the first post for more information.
__________________

OciXCrom is offline
Send a message via Skype™ to OciXCrom
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 11-30-2017 , 14:30   Re: [INC] CromChat
Reply With Quote #19


  • Added support for the ColorChat function. What this means? If a plugin is made using the standard ColorChat library and you want to change it to use CromChat, you can do that by simply changing the file in the #include line and everything else is automated.
  • In case someone wants to use both libraries at the same time (which I don't suggest), you can disable the support by adding #define CC_DONT_OVERWRITE_COLORCHAT before #include <cromchat>.
  • The same type of support is added for client_print_color. If you want to disable it, use CC_DONT_OVERWRITE_183_PRINT.
  • Added API documentation.
__________________

OciXCrom is offline
Send a message via Skype™ to OciXCrom
indraraj striker
Veteran Member
Join Date: Mar 2014
Location: Under the water
Old Today , 13:08   Re: [INC] CromChat
Reply With Quote #20

OciXCrom Thanks a lot for adding support to ColorChat, Now we don't need to replace each and every print chat with CromChat
indraraj striker is offline
Reply


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 16:43.


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