InfluxTimer / sm-timer

Easy to setup, modular bhop/surf/deathrun timer for CSS & CS:GO gameservers.
https://influxtimer.com/
88 stars 26 forks source link

Chat triggers #60

Closed iXyles closed 6 years ago

iXyles commented 7 years ago

Hey, I wonder if its possible to maybe add a possibility to hide commands such as !r and also do so the admin chat is actually getting hidden, since when we write @ (in all / team) to write in the All chat or in the team admin chat, the chat trigger stills being displayed in the chat itself.

TotallyMehis commented 6 years ago

I recommend using SilentChatTrigger located in configs/core.cfg .

This does hide all !-commands but you can make a simple plugin to hide the commands you want.

iXyles commented 6 years ago

Well I've actually tried to look into it to resolve the issue, but since Influx handles the chat in some way around I cannot get it work with it.. therefore I asked if this is a possibility to resolve, the most important is the Admin chat. The "!r" chat trigger was just incased if it was possible in an easy matter :)

TotallyMehis commented 6 years ago

Influx isn't doing anything in that regard. You just have to set the SilentChatTrigger to ! only. This is an old plugin but this should work.

iXyles commented 6 years ago

Well sadly to say it is "Influx" which is the problem in this matter when we're typing on all of our others servers with @ it doesn't show it in chat in neither all or team (all = (ALL SAY), team = admin chat in-game) - Same settings @ sourcemod. I also have another plugin to detect "!calladmin" which does "return plugin_handled" which should make sure it's not being displayed in chat but it does IF include influx.

xRz0 commented 6 years ago

add

if ( IsChatTrigger ( ) ) return Plugin_Handled;

(around line 28) to influx_simpleranks_chat.sp and you should be fine

iXyles commented 6 years ago

Didnt have time to try this until tonight, worked as a charm cheers xRz0, doe I did only look at certain "commands" and not all chattriggers :)