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

[INC] CromChat - a better ColorChat!


Post New Thread Reply   
 
Thread Tools Display Modes
Shadows Adi
AlliedModders Donor
Join Date: Aug 2019
Location: Romania
Old 04-15-2021 , 12:05   Re: [INC] CromChat - a better ColorChat!
Reply With Quote #71

Quote:
Originally Posted by Napoleon_be View Post
How's g_szPrefix[] declared? and what's the string that g_szPrefix[PREFIX_CHAT] is holding?
https://github.com/ShadowsAdi/MostVa...er.sma#L88-L93

https://github.com/ShadowsAdi/MostVa...layer.sma#L147

https://github.com/ShadowsAdi/MostVa....sma#L289-L291
__________________


Accepting Paid Requests, contact PM.

MVP Of The Round View project on GITHUB / AlliedModders

CSGO REMAKE ~ CSGO MOD [STABLE]
Shadows Adi is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 04-17-2021 , 11:03   Re: [INC] CromChat - a better ColorChat!
Reply With Quote #72

Quote:
CHAT_PREFIX = ^1[^4MVP^1]
Quote:
Bear in mind that the codes from the group STANDARD cannot be used lang, .ini and other files.
You can't just read the ^ symbol from an .ini file like that. Use &x0 colors.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
amirwolf
Senior Member
Join Date: Feb 2019
Location: Iran
Old 11-19-2021 , 13:38   Re: [INC] CromChat - a better ColorChat!
Reply With Quote #73

This function does not create color
HTML Code:
CC_SendMatched
CC_SendMatched(id, CC_COLOR_TEAM, "message")
What is my mistake?

Last edited by amirwolf; 11-19-2021 at 13:48.
amirwolf is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 11-19-2021 , 16:52   Re: [INC] CromChat - a better ColorChat!
Reply With Quote #74

You didn't insert a color. All messages start with the default color.

PHP Code:
CC_SendMatched(idCC_COLOR_TEAM"&x03message"
OciXCrom is offline
Send a message via Skype™ to OciXCrom
amirwolf
Senior Member
Join Date: Feb 2019
Location: Iran
Old 11-19-2021 , 18:01   Re: [INC] CromChat - a better ColorChat!
Reply With Quote #75

Quote:
Originally Posted by OciXCrom View Post
You didn't insert a color. All messages start with the default color.

PHP Code:
CC_SendMatched(idCC_COLOR_TEAM"&x03message"
So it has a different function from ColorChat
amirwolf is offline
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 11-19-2021 , 21:37   Re: [INC] CromChat - a better ColorChat!
Reply With Quote #76

Quote:
Originally Posted by amirwolf View Post
So it has a different function from ColorChat
You could just use ColorChat if u have the cromchat include. Does the same trick.
__________________
My Plugins:


Accepting private projects.
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 11-20-2021 , 08:57   Re: [INC] CromChat - a better ColorChat!
Reply With Quote #77

Quote:
Originally Posted by amirwolf View Post
So it has a different function from ColorChat
CC_SendMatched matches the &x03 color to be the same as the player/color set in the second argument.

ColorChat does not have a matching function which results in seeing the wrong colors.

Last edited by OciXCrom; 11-20-2021 at 08:57.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
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 14:50.


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