Raised This Month: $91 Target: $400
 22% 

Admin commands for players


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
wendigo
Senior Member
Join Date: Nov 2012
Location: Denmark
Old 09-05-2018 , 08:51   Admin commands for players
Reply With Quote #1

So why is it, I cannot hide that?
I got my l4d2 server. But whenever I slay a special infected or bot, god mode / other stuff. Everyone can see it, at the bottom left corner.
I got this here:

// 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 12

As you can see, I've set it to 12. I've also tryed 15. But same result.
And yes, I have looked at these topics here:
https://forums.alliedmods.net/showthread.php?t=147876
https://forums.alliedmods.net/showthread.php?t=77043

Last edited by wendigo; 09-05-2018 at 14:03.
wendigo is offline
Fyren
FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren
Join Date: Feb 2106
Old 09-05-2018 , 08:57   Re: Admin commands for players
Reply With Quote #2

Specifically, which plugins are the commands you're using from?
Fyren is offline
wendigo
Senior Member
Join Date: Nov 2012
Location: Denmark
Old 09-05-2018 , 09:21   Re: Admin commands for players
Reply With Quote #3

Not sure I understand?
I thought slay command, were a part of default sourcemod?

Anyways, I use this plugin here
https://forums.alliedmods.net/showth...1446?p=1251446
wendigo is offline
Fyren
FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren
Join Date: Feb 2106
Old 09-05-2018 , 14:16   Re: Admin commands for players
Reply With Quote #4

A plugin won't necessarily respect sm_show_activity, but the base SM plugins do.

Looking at the code in the linked plugin, I checked its sm_godmode command. It does not print anything publicly whether using the chat/console command or the menu.

If you're using sm_slay from the base plugins and it's printing like "<name>: Slayed <other name>", then check that value of sm_show_activity is actually set. Using the server console you can just type "sm_show_activity" or from your client console do "rcon sm_show_activity" (or sm_rcon or whatever).

If the value is 12 and someone can see that message, then either they have the generic admin flag set (you can check with sm_who while they're connected) or you have some other plugin doing something unwanted.
Fyren is offline
wendigo
Senior Member
Join Date: Nov 2012
Location: Denmark
Old 09-05-2018 , 14:41   Re: Admin commands for players
Reply With Quote #5

I think I found something under core.cfg

/**
* 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 suppress.
*/
"SilentFailSuppress" "no"

This should be yes?

Here is a bit more from my core.cfg

/**
* This file is used to set various options that are important to SourceMod's core.
* If this file is missing or an option in this file is missing, then the default values will be used.
*/
"Core"
{
/**
* This option determines if SourceMod logging is enabled.
*
* "on" - Logging is enabled (default)
* "off" - Logging is disabled
*/
"Logging" "on"

/**
* This option determines how SourceMod logging should be handled.
*
* "daily" - New log file is created for each day (default)
* "map" - New log file is created for each map change
* "game" - Use game's log files
*/
"LogMode" "daily"

/**
* Language that multilingual enabled plugins and extensions will use to print messages.
* Only languages listed in languages.cfg are valid.
*
* The default value is "en"
*/
"ServerLang" "en"

/**
* List of characters to use for public chat triggers. Set an empty list to disable.
*/
"PublicChatTrigger" "!"

/**
* List of characters to use for silent chat triggers. Set an empty list 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 suppress.
*/
"SilentFailSuppress" "no"

Last edited by wendigo; 09-05-2018 at 14:42.
wendigo is offline
Fyren
FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren
Join Date: Feb 2106
Old 09-05-2018 , 16:33   Re: Admin commands for players
Reply With Quote #6

By default, if you start a command with a / in chat, that line of chat won't show. For example, if an admin says "/slay foo" then it'll be the same as "sm_slay foo" but no one will see "/slay foo" in chat.

If you turn on that option, then if someone accidentally says "/slya foo" then it will be still be hidden. Normally, it would show because of the typo there isn't a command named "sm_slya".
Fyren is offline
wendigo
Senior Member
Join Date: Nov 2012
Location: Denmark
Old 09-06-2018 , 10:18   Re: Admin commands for players
Reply With Quote #7

great. So this is turning into something bigger now.

So what if by removing all plugins wont solve this "problem"? Have I overlooked something?
wendigo is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 09-07-2018 , 16:48   Re: Admin commands for players
Reply With Quote #8

If you want help, you need to provide the information that was asked for and stop going off on an unrelated tangent.
__________________
asherkin is offline
wendigo
Senior Member
Join Date: Nov 2012
Location: Denmark
Old 09-08-2018 , 17:03   Re: Admin commands for players
Reply With Quote #9

Quote:
Originally Posted by asherkin View Post
If you want help, you need to provide the information that was asked for and stop going off on an unrelated tangent.
What information?

If you are talking about the generic admin flag set thing, then only I am added in admins_simple.ini
Also, I have no idea how to open .smx files at all. And even if I did know, I have no idea what to look for anyways.
I found out, there were a few other small plugins running too, besides the one Fyren already checked.

EDIT: also sm_who shows me as the only root.

Plugin to unlock knife.
Plugin that increase tank speed, when set on fire.
Plugin that enables / disable voting options
Plugin that reflect dmg, done to teammates back to yourself
Plugin that enables me to switch players to infected / survivor / spec sides.
Plugin that enables me to spawn A.I controlled minigun / 50. caliber

Links:
...Tank on fire, post #111:
https://forums.alliedmods.net/showth...116014&page=12

...VoteBlcoker:
https://forums.alliedmods.net/showth...ar#post2082240

...Switch players post #253 + #262:
https://forums.alliedmods.net/showth...=83950&page=27

...Unlock knife:
https://forums.alliedmods.net/showthread.php?p=1709049

...Reflect dmg post #13:
https://forums.alliedmods.net/showth...=301815&page=2

...Machine_gun post #102
https://forums.alliedmods.net/showth...164543&page=11

Last edited by wendigo; 09-09-2018 at 12:42.
wendigo is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 09-08-2018 , 18:33   Re: Admin commands for players
Reply With Quote #10

Quote:
Originally Posted by wendigo View Post
What information?
Quote:
If you're using sm_slay from the base plugins and it's printing like "<name>: Slayed <other name>", then check that value of sm_show_activity is actually set. Using the server console you can just type "sm_show_activity" or from your client console do "rcon sm_show_activity" (or sm_rcon or whatever).

If the value is 12 and someone can see that message, then either they have the generic admin flag set (you can check with sm_who while they're connected) or you have some other plugin doing something unwanted.
Get on the server with you and someone that shouldn't be able to see the activity message.

Slay one of you and make sure they do indeed see the activity message.

Then, run `sm_cvar sm_show_activity` and `sm_who` in the console and reply with the output here.

Do not post compiled plugin binaries without source code, it is a violation of the SourceMod license.
__________________
asherkin is offline
Reply


Thread Tools
Display Modes

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 05:29.


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