View Single Post
Mitchell
~lick~
Join Date: Mar 2010
Old 09-04-2019 , 21:11   Re: [HELP] Set Player's Name Color
Reply With Quote #8

Quote:
Originally Posted by SpirT View Post
So "There are several things wrong with this code, especially the reading the keyvalue from file everytime some one types in chat.", what is wrong with it? I have a simple chat processor include. I don't want to publish this plugin, but is there any way to get player message (OnChatMessage) without any chat processor?

Besr regards,

SpirT.
Reading from a file everytime some one chats is not a good idea. Cache it internally like custom chat colors does. Loading from file implies the file will be changed by another plugin consistently. I'm not sure on the other issues and could be told wrong but file reading can hault the process causing a delay.

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

Last edited by Mitchell; 09-04-2019 at 21:12.
Mitchell is offline