Raised This Month: $32 Target: $400
 8% 

[CS:GO] Suppress maps custom "say"ings


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
PinHeaDi
Senior Member
Join Date: Jul 2013
Location: Bulgaria
Old 01-01-2018 , 08:14   [CS:GO] Suppress maps custom "say"ings
Reply With Quote #1

Example:

Console: Map by XXXXXXX

How can those be removed without removing "say" permission from bspconvar_whitelist.
__________________
PinHeaDi is offline
Fyren
FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren
Join Date: Feb 2106
Old 01-01-2018 , 09:27   Re: [CS:GO] Suppress maps custom "say"ings
Reply With Quote #2

There's probably a point_servercommand entity doing it that you could remove.
Fyren is offline
shavit
AlliedModders Donor
Join Date: Dec 2011
Location: Israel
Old 01-02-2018 , 22:36   Re: [CS:GO] Suppress maps custom "say"ings
Reply With Quote #3

The short way:
Code:
#include <sourcemod>

#pragma newdecls required
#pragma semicolon 1

public void OnPluginStart()
{
	AddCommandListener(Listener_Say, "say");
}

public Action Listener_Say(int client, const char[] commnand, int argc)
{
	return (client == 0)? Plugin_Stop:Plugin_Continue;
}
__________________
retired
shavit is offline
PinHeaDi
Senior Member
Join Date: Jul 2013
Location: Bulgaria
Old 01-06-2018 , 07:47   Re: [CS:GO] Suppress maps custom "say"ings
Reply With Quote #4

Can this be hooked with chat processor and than with StrContains filter what I don't need.
__________________
PinHeaDi is offline
blaacky
Senior Member
Join Date: Oct 2012
Old 01-06-2018 , 09:07   Re: [CS:GO] Suppress maps custom "say"ings
Reply With Quote #5

You should just use a point_servercommand entity remover. Every server that uses custom maps should use a plugin that does that. I've seen some custom maps use that entity to run the sm_ban command on certain steamids. Anyone with malicious intent can do much worse. I have a feeling this can be bypassed by running the commands from the entity right before it's killed, so maybe some extension would be better for this. Not sure though

PHP Code:
#include <sdkhooks>
#include <sdktools_entinput>

public void OnEntityCreated(int entity, const char[] classname)
{
    if(
StrEqual(classname"point_servercommand"))
    {
        
AcceptEntityInput(entity"Kill");
    }

EDIT: Turns out there is a cvar for this!

Code:
sv_allow_point_servercommand disallow
__________________

Last edited by blaacky; 01-06-2018 at 09:18.
blaacky 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 17:03.


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