zephyrus-store-preview-new-syntax icon indicating copy to clipboard operation
zephyrus-store-preview-new-syntax copied to clipboard

Saysounds Cp Support

Open Levi2288 opened this issue 3 years ago • 1 comments

Hi, im using surftimer on multiple of my servers and i have chat processing enabled on them ck_chat_enable 1 // (1 / 0) Enable or disable Surftimers chat processing..

Sadly saysounds triggers doesn't work then, probably because the module doesn't have cp support. Most of the servers use cp now days so it should be a good thing to implement into the module.

Levi2288 avatar Sep 14 '22 16:09 Levi2288

Hmm... is it because the plugin uses the player_say event, and so it returns the message processed by chat-processor (including tags or message color..)?

I personally use OnClientSayCommand or OnClientSayCommand_Post (by checking if it's the say or say_team command, and then args to see the message being sent). That could allow muted players to use saysounds though (unless the command is handled in OnClientSayCommand by the moderation system, in which case the Post event won't fire).

azalty avatar Sep 14 '22 20:09 azalty