Raised This Month: $12 Target: $400
 3% 

[CS:GO] Hide SM commands from all-chat


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Curtiits
Junior Member
Join Date: Mar 2015
Old 04-10-2015 , 04:04   [CS:GO] Hide SM commands from all-chat
Reply With Quote #1

Hey,

I'm running a cs:go minigame server and would like to know how to hide the SM commands besides Mute / Kick / ban from all-chat, eg slap/ gravity etc.

Thanks!
Curtiits is offline
Dr. Greg House
Professional Troll,
Part-Time Asshole
Join Date: Jun 2010
Old 04-10-2015 , 04:20   Re: [CS:GO] Hide SM commands from all-chat
Reply With Quote #2

Are you talking about...

-(Not) showing activity
-Overriding the !-trigger to be silent
-Overriding access to these commands
__________________
Santa or Satan?

Watch out when you're paying people for private requests! Most stuff already exists and you can hardly assess the quality of what you'll get, and if it's worth the money.
Dr. Greg House is offline
Curtiits
Junior Member
Join Date: Mar 2015
Old 04-10-2015 , 04:47   Re: [CS:GO] Hide SM commands from all-chat
Reply With Quote #3

I need these commands to be visible to everyone

Kick, Ban, Mute, Gag, Silence

and everything else, like slap/ gravity / burn etc to be hidden.

Not sure what you're talking about when you say override etc, not too experienced.
Curtiits is offline
ThatOneGuy
Veteran Member
Join Date: Jul 2012
Location: Oregon, USA
Old 04-10-2015 , 12:20   Re: [CS:GO] Hide SM commands from all-chat
Reply With Quote #4

If by visible, you mean there is a chat message at all:
Using ! in front of the command makes it show in chat. Using / makes it not show in chat.

If by visible you mean it shows which admin did it, that is according to showactivity cvar in sourcemod.cfg

I assume you mean in chat. The only way to make it so that some are hidden and others are not would be to unregister the commands, and instead monitor chat for them and return Plugin_Handled. Alternately, you could intercept them, process them, then return Plugin_Handled.

Note: For chat msgs, returning Plugin_Handled stops it from showing in chat, vs returning Plugin_Continue will let it show.
__________________
ThatOneGuy is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 16:46.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode