[HELP] Set Player's Name Color
Hey,
Today I tried to do by myself a plugin that changes, player's name color on chat. I tried this but does not work: PHP Code:
Best Regards, SpirT. |
Re: [HELP] Set Player's Name Color
Quickly reading through your code, it's not like your OnChatMessage callback does anything? Sure you format the "name" string but that's not what's being sent out to the clients as the message.
You will probably have to stop your message from going out and send your own, customized one. It's 03 in the morning and tired af, but try this one: PHP Code:
|
Re: [HELP] Set Player's Name Color
Quote:
There are several things wrong with this code, especially the reading the keyvalue from file everytime some one types in chat. There are a ton of custom chat color plugins already out there try using those as examples and write your code off of that. |
Re: [HELP] Set Player's Name Color
Just use any chat processor wrapper
|
Re: [HELP] Set Player's Name Color
https://forums.alliedmods.net/showthread.php?t=286913
Try this Code:
#pragma semicolon 1 |
Re: [HELP] Set Player's Name Color
Quote:
|
Re: [HELP] Set Player's Name Color
Quote:
Besr regards, SpirT. |
Re: [HELP] Set Player's Name Color
Quote:
My comment on the chat processor had nothing to do with what was wrong, I was just pointing out that it's a forward from another plugin and you dont have which chat processor your using as an #include |
Re: [HELP] Set Player's Name Color
Quote:
Asking in a better way again, is there any way to get client message WITHOUT ANY Chat Processor include? Regards, SpirT. |
Re: [HELP] Set Player's Name Color
Quote:
I have a light weight Chat processor here: https://github.com/MitchDizzle/Cider...atProcessor.sp It's essentially a rip off of Chat-Processor by Drixevel, however doesn't try to be too fancy with the color includes so it uses less memory and relies more on the chat color plugin to decide the hex colors and unicodes etc. My version also removes some of the convars and other nice features and sticks to what I needed which was dead/team chat etc. Also has its own way of using the template to replace the message and name to construct the message. https://forums.alliedmods.net/showthread.php?p=2448733 Friendly reminded to run only one chat processor at a time. |
All times are GMT -4. The time now is 22:34. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.