Raised This Month: $ Target: $400
 0% 

Hide admin commands


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Delirium89
Junior Member
Join Date: Jan 2009
Old 01-15-2011 , 08:00   Hide admin commands
Reply With Quote #1

I'm having the following problem: when an admin kicks, slays, slaps ect a player by the typing the command in the chatbox players can see this. I want this to be hidden from the chatbox.

I'm using the @ prefix. So when i type @slay john the chatbox will display:
[thisIsMe]: @slay john
[SM] player john got slayed

Does anyone know how to fix this?
Thanks in advance!
Delirium89 is offline
Leonardo
Veteran Member
Join Date: Feb 2010
Location: 90's
Old 01-15-2011 , 09:04   Re: Hide admin commands
Reply With Quote #2

Code:
// Specifies how admin activity should be relayed to users.  Add up the values
// below to get the functionality you want.
// 1: Show admin activity to non-admins anonymously.
// 2: If 1 is specified, admin names will be shown.
// 4: Show admin activity to admins anonymously.
// 8: If 4 is specified, admin names will be shown.
// 16: Always show admin names to root users.
// --
// Default: 13 (1+4+8)
sm_show_activity 13
./cfg/sourcemod.cfg

also, if you want totally remove this phrase from chat, you should edit ./addons/sourcemod/scripting/playercommands/slap.sp and recompile it.
__________________
Leonardo is offline
Delirium89
Junior Member
Join Date: Jan 2009
Old 01-15-2011 , 11:07   Re: Hide admin commands
Reply With Quote #3

This value was allready 13, or should it be another value?
Delirium89 is offline
Leonardo
Veteran Member
Join Date: Feb 2010
Location: 90's
Old 01-15-2011 , 11:12   Re: Hide admin commands
Reply With Quote #4

13 is a default value.
you should change it.
__________________
Leonardo is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 01-16-2011 , 17:33   Re: Hide admin commands
Reply With Quote #5

Code:
// Specifies how admin activity should be relayed to users.  Add up the values
// below to get the functionality you want.
// 1: Show admin activity to non-admins anonymously.
// 2: If 1 is specified, admin names will be shown.
// 4: Show admin activity to admins anonymously.
// 8: If 4 is specified, admin names will be shown.
// 16: Always show admin names to root users.
// --
// Default: 13 (1+4+8)
sm_show_activity 13
Change to 12, non-admins can't see any admin actions in chat
__________________
Do not Private Message @me
Bacardi is offline
Sethenor
Member
Join Date: Jul 2010
Old 01-17-2011 , 12:09   Re: Hide admin commands
Reply With Quote #6

cfg/sourcemod/sourcemod.cfg
Code:
// Specifies whether or not chat triggers are broadcast to the server or just
// the player who requested the info trigger. Valid values are 0 (Disabled) or
// 1 (Enabled)
// --
// Requires: basetriggers.smx
// Default: 1
sm_trigger_show 0

Isn't that the thing he is looking for?
Sethenor is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 01-17-2011 , 15:31   Re: Hide admin commands
Reply With Quote #7

Ok, I have read first wrong this topic... I was tired.

Hide admin commands, so you have change default prefix "!" to "@".
This can be done in ...addons/sourcemod/configs/core.cfg
Code:
    /**
     * String to use as the public chat trigger.  Set an empty string to disable.
     */
    "PublicChatTrigger"        "!"
    
    /**
     * String to use as the silent chat trigger.  Set an empty string to disable.
     */
    "SilentChatTrigger"        "/"
    
    /**
     * If a say command is a silent chat trigger, and is used by an admin, 
     * but it does not evaluate to an actual command, it will be displayed 
     * publicly.  This setting allows you to suppress accidental typings.
     *
     * The default value is "no".  A value of "yes" will supress.
     */
    "SilentFailSuppress"    "no"
http://wiki.alliedmods.net/Admin_Com...28SourceMod%29
Quote:
Chat Triggers: Remember that commands do not have to be entered through the console; they can be entered via chat triggers. For example, saying "!ban bail" in chat will execute the same command as "sm_ban" and forward the output to chat.
You can also use "/" instead of "!" to suppress your command from being shown to users
- Silent chat command /slay somebody

And what @Sethenor mention about sm_trigger_show
This applies only to chat triggers, timeleft, nextmap, thetime, ff, motd
Bacardi is offline
stella
SourceMod Donor
Join Date: Apr 2011
Old 10-23-2011 , 08:51   Re: Hide admin commands
Reply With Quote #8

Hey how do i remove all these commands from the chat area

[SM] Console equipped all players with knives
[SM] Console equipped all players with m249
[SM] Console set health of all players to 500

stella is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 10-23-2011 , 08:58   Re: Hide admin commands
Reply With Quote #9

Quote:
Originally Posted by stella View Post
Hey how do i remove all these commands from the chat area

[SM] Console equipped all players with knives
[SM] Console equipped all players with m249
[SM] Console set health of all players to 500

Those are admin actions when they execute command.
So if you don't want anyone to see those (admins and non admins)
Code:
sm_show_activity 0

Can also set to show only admins#5
Code:
sm_show_activity 12
__________________
Do not Private Message @me
Bacardi is offline
TobiasTaps
New Member
Join Date: Apr 2019
Old 04-12-2019 , 14:57   Re: Hide admin commands
Reply With Quote #10

Quote:
Originally Posted by Leonardo View Post
Code:
// Specifies how admin activity should be relayed to users.  Add up the values
// below to get the functionality you want.
// 1: Show admin activity to non-admins anonymously.
// 2: If 1 is specified, admin names will be shown.
// 4: Show admin activity to admins anonymously.
// 8: If 4 is specified, admin names will be shown.
// 16: Always show admin names to root users.
// --
// Default: 13 (1+4+8)
sm_show_activity 13
./cfg/sourcemod.cfg

also, if you want totally remove this phrase from chat, you should edit ./addons/sourcemod/scripting/playercommands/slap.sp and recompile it.

how do u recompile it? please help i want it so that no one can see the msgs in chat, even admins and i cant see it.
TobiasTaps 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 13:46.


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