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

Showing results 1 to 25 of 33
Search took 0.00 seconds.
Search: Posts Made By: OciXCrom
Forum: Code Snippets/Tutorials 11-20-2021, 08:57
Replies: 76
Views: 39,406
Posted By OciXCrom
Re: [INC] CromChat - a better 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.
Forum: Code Snippets/Tutorials 11-19-2021, 16:52
Replies: 76
Views: 39,406
Posted By OciXCrom
Re: [INC] CromChat - a better ColorChat!

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

CC_SendMatched(id, CC_COLOR_TEAM, "&x03message")
Forum: Code Snippets/Tutorials 04-17-2021, 11:03
Replies: 76
Views: 39,406
Posted By OciXCrom
Re: [INC] CromChat - a better ColorChat!

You can't just read the ^ symbol from an .ini file like that. Use &x0 colors.
Forum: Code Snippets/Tutorials 03-12-2021, 16:19
Replies: 76
Views: 39,406
Posted By OciXCrom
Re: [INC] CromChat - a better ColorChat!

https://img.shields.io/badge/update-v3.3 @ 12.03.2021-green.svg

Made colors active for CZ.
Forum: Code Snippets/Tutorials 03-09-2021, 15:21
Replies: 76
Views: 39,406
Posted By OciXCrom
Re: [INC] CromChat - a better ColorChat!

https://img.shields.io/badge/update-v3.2 @ 09.03.2021-green.svg

Fixed a bug with manual color changes caused by a behavior change in AMXX 1.9/1.10. More information here...
Forum: Code Snippets/Tutorials 03-08-2021, 17:30
Replies: 76
Views: 39,406
Posted By OciXCrom
Re: [INC] CromChat - a better ColorChat!

https://img.shields.io/badge/update-v3.1 @ 08.03.2021-green.svg

Fixed a server crash when sending a message that's too long.
Added a new function CC_RemoveExploits...
Forum: Code Snippets/Tutorials 03-07-2021, 10:21
Replies: 76
Views: 39,406
Posted By OciXCrom
Re: [INC] CromChat - a better ColorChat!

https://img.shields.io/badge/update-v3.0 @ 07.03.2021-green.svg

Fixed the issue where the messages would use the wrong team color (credits to WPMGPRoSToTeMa and his ChatPrint library). The...
Forum: Code Snippets/Tutorials 12-30-2020, 19:31
Replies: 76
Views: 39,406
Posted By OciXCrom
Re: [INC] CromChat - a better ColorChat!

It's better if you show what you did. Take a look at the video tutorial:

YpRo8q3DjB8
Forum: Code Snippets/Tutorials 06-17-2020, 08:20
Replies: 76
Views: 39,406
Posted By OciXCrom
Re: [INC] CromChat - a better ColorChat!

Don't touch anything in the cromchat.inc file. Use the "CC_SetPrefix" function or pass the value directly in the "CC_PREFIX" variable.

public plugin_init()
{
g_pCvarPrefix =...
Forum: Code Snippets/Tutorials 06-07-2020, 15:13
Replies: 76
Views: 39,406
Posted By OciXCrom
Re: [INC] CromChat - a better ColorChat!

Well I don't know what to say anymore. If someone wants to check the .inc out and see if there's a problem, go ahead, but I think this is an internal problem with AMXX. The same issue happens with...
Forum: Code Snippets/Tutorials 06-06-2020, 19:26
Replies: 76
Views: 39,406
Posted By OciXCrom
Forum: Code Snippets/Tutorials 06-06-2020, 17:28
Replies: 76
Views: 39,406
Posted By OciXCrom
Re: [INC] CromChat - a better ColorChat!

Use CC_SendMessage instead of CC_SendMatched. Right now you're making it use the team color.
Forum: Code Snippets/Tutorials 04-23-2020, 16:46
Replies: 76
Views: 39,406
Posted By OciXCrom
Re: [INC] CromChat - a better ColorChat!

Then simply check if the user is connected when sending the message? Of course you will get an error when trying to retrieve the name from a client that isn't connected. I'm sure the same will happen...
Forum: Code Snippets/Tutorials 04-23-2020, 15:04
Replies: 76
Views: 39,406
Posted By OciXCrom
Re: [INC] CromChat - a better ColorChat!

Are you sure you used it correctly? Show your code.

Just did a quick test and it worked as expected:

#include <amxmodx>
#include <cromchat>

public plugin_init()
{...
Forum: Code Snippets/Tutorials 02-13-2020, 18:34
Replies: 76
Views: 39,406
Posted By OciXCrom
Forum: Code Snippets/Tutorials 09-11-2019, 21:44
Replies: 76
Views: 39,406
Posted By OciXCrom
Re: [INC] CromChat - a better ColorChat!

I must agree, adding one line in the code is one of the hardest tasks humankind has to face, apart from figuring out how to use the brain.
Forum: Code Snippets/Tutorials 01-07-2019, 10:19
Replies: 76
Views: 39,406
Posted By OciXCrom
Forum: Code Snippets/Tutorials 07-23-2018, 09:38
Replies: 76
Views: 39,406
Posted By OciXCrom
Forum: Code Snippets/Tutorials 07-22-2018, 17:26
Replies: 76
Views: 39,406
Posted By OciXCrom
Re: [INC] CromChat - a better ColorChat!

https://img.shields.io/badge/update-v2.1 @ 22.07.2018-green.svg

3 new functions have been added - CC_ShowActivity, CC_ShowActivityId and CC_ShowActivityKey.
With these functions you can easily...
Forum: Code Snippets/Tutorials 06-14-2018, 13:30
Replies: 76
Views: 39,406
Posted By OciXCrom
Re: [INC] CromChat - a better ColorChat!

Ah, yeah, I forgot about that problem. It won't work with CC_SendMatched for some reason. You can remove the prefix with CC_RemovePrefix and set it again if you're going to use CC_SendMatched. The...
Forum: Code Snippets/Tutorials 06-12-2018, 15:24
Replies: 76
Views: 39,406
Posted By OciXCrom
Re: [INC] CromChat - a better ColorChat!

https://img.shields.io/badge/update-v2.0 @ 12.06.2018-green.svg

Added the function CC_SendAdminMessage (http://amxx-bg.info/api/cromchat/CC_SendAdminMessage) which allows you to send a message to...
Forum: Code Snippets/Tutorials 04-15-2018, 08:58
Replies: 76
Views: 39,406
Posted By OciXCrom
Re: [INC] CromChat - a better ColorChat!

Hm, indeed it doesn't work with CC_SendMatched. I'll have a look. For now you can create a custom function that will send a message without a prefix.

CC_SendMatchedNoPrefix(const id, const...
Forum: Code Snippets/Tutorials 04-14-2018, 18:14
Replies: 76
Views: 39,406
Posted By OciXCrom
Re: [INC] CromChat - a better ColorChat!

By putting it in the beginning of the message:

CC_SetPrefix("[Test]")

CC_SendMessage(id, "Your message.")
// Result: [Test] Your message.

CC_SendMessage(id, "&x00Your message.")
// Result:...
Forum: Code Snippets/Tutorials 03-31-2018, 10:32
Replies: 76
Views: 39,406
Posted By OciXCrom
Re: [INC] CromChat - a better ColorChat!

Was it really necessary to quote the entire first post?!
Also, what are you talking about? This is not a plugin.
Forum: Code Snippets/Tutorials 03-01-2018, 10:24
Replies: 76
Views: 39,406
Posted By OciXCrom
Re: [INC] CromChat - a better ColorChat!

https://img.shields.io/badge/update-v1.6 @ 01.03.2018-green.svg

Added the function CC_GroupMessage (http://amxx-bg.info/api/cromchat/CC_GroupMessage) which allows you to send a message to a...
Showing results 1 to 25 of 33

 
Forum Jump

All times are GMT -4. The time now is 18:40.


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