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

[CS:GO] Disable map sm_say


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Sw00p
Member
Join Date: Nov 2013
Location: Sweden
Old 10-16-2016 , 13:23   [CS:GO] Disable map sm_say
Reply With Quote #1

Hi

Im currently using https://forums.alliedmods.net/showthread.php?t=276485 to manage chat spam from maps, but it only works for "say" and not "sm_say".

I have tried to put sm_say 0 in bspconvar_whitelist.txt.

Do anyone know how to fix this or can make a simple plugin that preventing maps to use sm_say

thanks in advance
__________________
Sw00p is offline
Send a message via Skype™ to Sw00p
Peace-Maker
SourceMod Plugin Approver
Join Date: Aug 2008
Location: Germany
Old 10-16-2016 , 17:55   Re: [CS:GO] Disable map sm_say
Reply With Quote #2

You can try to use this https://forums.alliedmods.net/showthread.php?t=184270
__________________
Peace-Maker is offline
Sw00p
Member
Join Date: Nov 2013
Location: Sweden
Old 10-16-2016 , 18:25   Re: [CS:GO] Disable map sm_say
Reply With Quote #3

Quote:
Originally Posted by Peace-Maker View Post
That is like chinese for me :/
__________________
Sw00p is offline
Send a message via Skype™ to Sw00p
R3TROATTACK
Member
Join Date: Feb 2013
Old 10-16-2016 , 20:13   Re: [CS:GO] Disable map sm_say
Reply With Quote #4

This should work

PHP Code:
#pragma semicolon 1
#include <sourcemod>
#pragma newdecls required

public void OnPluginStart()
{
    
AddCommandListener(Listener_Say"sm_say");
}

public 
Action Listener_Say(int client, const char[] commandint argc)
{
    if(
client == 0)
        return 
Plugin_Handled;
        
    return 
Plugin_Continue;

Attached Files
File Type: sp Get Plugin or Get Source (ConsoleSayBlocker.sp - 357 views - 305 Bytes)
File Type: smx ConsoleSayBlocker.smx (3.5 KB, 233 views)
R3TROATTACK is offline
Sw00p
Member
Join Date: Nov 2013
Location: Sweden
Old 10-17-2016 , 06:16   Re: [CS:GO] Disable map sm_say
Reply With Quote #5

Quote:
Originally Posted by R3TROATTACK View Post
This should work

PHP Code:
#pragma semicolon 1
#include <sourcemod>
#pragma newdecls required

public void OnPluginStart()
{
    
AddCommandListener(Listener_Say"sm_say");
}

public 
Action Listener_Say(int client, const char[] commandint argc)
{
    if(
client == 0)
        return 
Plugin_Handled;
        
    return 
Plugin_Continue;

Thank you, ill try this!

Edit: Did not work :/
__________________

Last edited by Sw00p; 10-17-2016 at 06:36.
Sw00p is offline
Send a message via Skype™ to Sw00p
R3TROATTACK
Member
Join Date: Feb 2013
Old 10-17-2016 , 06:59   Re: [CS:GO] Disable map sm_say
Reply With Quote #6

Quote:
Originally Posted by Sw00p View Post
Thank you, ill try this!

Edit: Did not work :/
That is weird it works fine on my server. Did you try manually compiling it?
R3TROATTACK is offline
Sw00p
Member
Join Date: Nov 2013
Location: Sweden
Old 10-17-2016 , 10:52   Re: [CS:GO] Disable map sm_say
Reply With Quote #7

Quote:
Originally Posted by R3TROATTACK View Post
That is weird it works fine on my server. Did you try manually compiling it?
Yes, i tried that.
__________________
Sw00p is offline
Send a message via Skype™ to Sw00p
Sw00p
Member
Join Date: Nov 2013
Location: Sweden
Old 12-07-2016 , 18:01   Re: [CS:GO] Disable map sm_say
Reply With Quote #8

Still looking for a working plugin like this, anyone?
__________________

Last edited by Sw00p; 12-07-2016 at 18:01.
Sw00p is offline
Send a message via Skype™ to Sw00p
ambn
Veteran Member
Join Date: Feb 2015
Location: Fun servers
Old 12-13-2016 , 14:59   Re: [CS:GO] Disable map sm_say
Reply With Quote #9

try this?
PHP Code:
#include <sourcemod>
public void OnPluginStart()
{
    
RegConsoleCmd("sm_say",Command_Say);
}
public 
Action Command_Say(int clientint args)
{
    return 
Plugin_Handled;

ambn is offline
Sw00p
Member
Join Date: Nov 2013
Location: Sweden
Old 12-14-2016 , 18:59   Re: [CS:GO] Disable map sm_say
Reply With Quote #10

Quote:
Originally Posted by ambn View Post
try this?
PHP Code:
#include <sourcemod>
public void OnPluginStart()
{
    
RegConsoleCmd("sm_say",Command_Say);
}
public 
Action Command_Say(int clientint args)
{
    return 
Plugin_Handled;

Did not work :/
__________________
Sw00p is offline
Send a message via Skype™ to Sw00p
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:21.


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