[Help] Colored Chat & Code Feedback
1 Attachment(s)
Hello World,
I've gone through some plugins, trying to understand them. For practice I've started to work on a chat plugin, you can find the code below. My problem is that coloring the "all" chat (#Cstrike_Chat_All) doesn't work, only team messages work. Screenshots: http://i.imgur.com/QeMZUrx.jpg http://i.imgur.com/VdY2u32.jpg Also I copied code from here and there, trying to rewrite some of it the way I would've done it with my current knowledge. I would love some feedback of what I did wrong and where I can improve the current code. Thanks for your time! - LegacyCode //e: source code:
Spoiler
|
Re: [Help] Colored Chat
Code:
|
Re: [Help] Colored Chat
Quote:
Hey man, that's just a debug part which isn't important to my problem mentioned. - LegacyCode |
Re: [Help] Colored Chat & Code Feedback
Unless there is a very significant reason to write your own color chat, use an existing color chat, no need to reinvent the wheel.
|
Re: [Help] Colored Chat & Code Feedback
Hey,
the reason is to learn writing and understanding plugins. Colored chat seemed to be one of the simpler stuff, so I'm going with this one first. - LegacyCode |
Re: [Help] Colored Chat & Code Feedback
Quote:
|
Re: [Help] Colored Chat & Code Feedback
Quote:
I don't think the documentation covers everything, otherwise I wouldn't have to guess how to use emessage_* properly. It surely does describe the arguments and what the function does (sometimes not even that, "no description available"), but not when and how to use some stuff. Also it seems to be incomplete for me here and there, e.g. the client_print_color function mentions: Quote:
Correct me if I'm wrong, please, but I'm kinda lost. //e: I bet the HL SDK would help me a lot to understand what's going on under the hood, but I don't know how to "use" it to answer the questions I have while coding. - LegacyCode |
Re: [Help] Colored Chat & Code Feedback
Quote:
Quote:
|
Re: [Help] Colored Chat & Code Feedback
Quote:
//e: v1.8.2 doesn't seem to be the latest version then. Is the stable version not the one I want for developing plugins? - LegacyCode |
Re: [Help] Colored Chat & Code Feedback
|
| All times are GMT -4. The time now is 17:54. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.