Raised This Month: $41 Target: $400
 10% 

[INC] CromChat - a better ColorChat!


Post New Thread Reply   
 
Thread Tools Display Modes
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 12-30-2020 , 18:31   Re: [INC] CromChat - a better ColorChat!
Reply With Quote #61

Quote:
Originally Posted by luciaus18 View Post
Hi! Tell me how to add that function to a plugin please. I added include cromchat + the code for each color. It doesn't work. What am I doing wrong?
It's better if you show what you did. Take a look at the video tutorial:

__________________


Dear admins. If somehow you managed to read this, plz fix.

Last edited by OciXCrom; 12-30-2020 at 18:32.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
luciaus18
Senior Member
Join Date: Dec 2014
Old 12-31-2020 , 04:23   Re: [INC] CromChat - a better ColorChat!
Reply With Quote #62

Thx mate! It's perfect
luciaus18 is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 03-07-2021 , 09:21   Re: [INC] CromChat - a better ColorChat!
Reply With Quote #63


  • Fixed the issue where the messages would use the wrong team color (credits to WPMGPRoSToTeMa and his ChatPrint library). The library will no longer send a "TeamInfo" message everytime a function is used.
  • CromChat is no longer Counter-Strike dependant! You can now use the library in any other mod, but the colors will be active only in CS.
  • Added suppoprt for ChatPrint.inc so you can easily switch it to CromChat if you want to.
  • Added suppoprt for WPMGPrintChatColor.inc so you can easily switch it to CromChat if you want to.
  • Added a new function CC_SetColor that allows you to change the color of the next CC_* function call.

    Code:
    CC_SetColor(CC_COLOR_GREY) CC_GroupMessage("ae", "CT", "&x03This message will be grey!")
  • Added protection against chat exploits using "#" symbols.
  • General code improvements and optimization.
__________________


Dear admins. If somehow you managed to read this, plz fix.

Last edited by OciXCrom; 03-07-2021 at 09:24.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 03-08-2021 , 16:30   Re: [INC] CromChat - a better ColorChat!
Reply With Quote #64


  • Fixed a server crash when sending a message that's too long.
  • Added a new function CC_RemoveExploits that allows you to remove chat color exploits and replace the '%' symbol with a safe version. I strongly advise you to use this when hooking "say" or "say_team".
  • Made the library use "replace_string" instead of "replace_all" if it is available.
__________________


Dear admins. If somehow you managed to read this, plz fix.

Last edited by OciXCrom; 03-08-2021 at 16:30.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 03-09-2021 , 14:21   Re: [INC] CromChat - a better ColorChat!
Reply With Quote #65


  • Fixed a bug with manual color changes caused by a behavior change in AMXX 1.9/1.10. More information here.
__________________


Dear admins. If somehow you managed to read this, plz fix.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 03-12-2021 , 15:19   Re: [INC] CromChat - a better ColorChat!
Reply With Quote #66


  • Made colors active for CZ.
__________________


Dear admins. If somehow you managed to read this, plz fix.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
lexzor
Senior Member
Join Date: Nov 2020
Old 04-03-2021 , 11:25   Re: [INC] CromChat - a better ColorChat!
Reply With Quote #67

https://imgur.com/a/v4NSlnh

why is this happening ?
lexzor is offline
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 04-04-2021 , 13:52   Re: [INC] CromChat - a better ColorChat!
Reply With Quote #68

show your code
__________________
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
Shadows Adi
AlliedModders Donor
Join Date: Aug 2019
Location: Romania
Old Yesterday , 11:58   Re: [INC] CromChat - a better ColorChat!
Reply With Quote #69

Quote:
Originally Posted by Napoleon_be View Post
show your code
There is a problem with CC_SetPrefix, it doesn't read the colors arguments.

Code:
PHP Code:
#define CC_COLORS_TYPE CC_COLORS_STANDARD

CC_SetPrefix(g_szPrefix[PREFIX_CHAT])

CC_SendMessage(id"^1%L"LANG_PLAYER"MVP_TRACK_X_SELECTED"eTracks[szNAME]) 
__________________


Accepting Paid Requests, contact PM.

MVP Of The Round View project on GITHUB / AlliedModders

CSGO REMAKE ~ CSGO MOD [Currently Beta]
Shadows Adi 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 13:48.


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