Raised This Month: $ Target: $400
 0% 

[REQ] basechat command with anonymous sm_hsay


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
KALASH NICOLE
Member
Join Date: Feb 2016
Old 04-29-2020 , 16:25   [REQ] basechat command with anonymous sm_hsay
Reply With Quote #1

Hi. i would need a little variant of basechat.sp where the sm_hsay (hint) would not display the admin name in the center of the screen.

this would allow the admin to stay anonymous when printing hint message.

Last edited by KALASH NICOLE; 04-29-2020 at 16:25.
KALASH NICOLE is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 04-29-2020 , 16:35   Re: [REQ] basechat command with anonymous sm_hsay
Reply With Quote #2

It use
FormatActivitySource
https://sm.alliedmods.net/new-api/co...ActivitySource

means that it follow sm_show_activity

...cfg/sourcemod/sourcemod.cfg
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
By default (sm_show_activity 13), non-admins not see admin name in basechat messages.
__________________
Do not Private Message @me

Last edited by Bacardi; 04-29-2020 at 16:36.
Bacardi is offline
KALASH NICOLE
Member
Join Date: Feb 2016
Old 04-29-2020 , 20:52   Re: [REQ] basechat command with anonymous sm_hsay
Reply With Quote #3

Hi, i found out myself a solution :

sm_rcon sm_hsay "message" (without the "")

it will desiplay the word CONSOLE instead of the admin name. which is ok.

Last edited by KALASH NICOLE; 04-29-2020 at 20:53.
KALASH NICOLE 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 08:47.


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