View Single Post
Frenzzy
SourceMod Donor
Join Date: Jan 2007
Location: Russia
Old 11-10-2011 , 12:07   Re: [ANY] AllChat (aka DeadChat or ChatAllTalk)
Reply With Quote #3

Quote:
Originally Posted by Bacardi View Post
I prefer use HookUserMessage() than commands "say" "say_team".
But, this is only my opinion.
We can not rely only on HookUserMessage() because this event can fired more than once for the same chat messages under certain conditions. This will result in duplicate messages. I use "say" and "say_team" commands only in order to determine who should see the chat message - one team or all players.

Quote:
Originally Posted by Bacardi View Post
Question, what happen when admin use silent chat commands ?
/hp @me 500
There will be something that would have occurred in the absence of the plugin. This plugin just copies the message after at least one of the players saw the chat message (player_say event). The message is copied only for those players who have not received it by default (eg because of dead or other restrictions). If none of the players saw the message, it means nothing to copy, right? (:
__________________
My Plugins: AllChat, GeoLocation
Frenzzy is offline
Send a message via ICQ to Frenzzy Send a message via MSN to Frenzzy Send a message via Skype™ to Frenzzy