Raised This Month: $51 Target: $400
 12% 

[csgo] disable team chat


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Hatomugi
Junior Member
Join Date: Feb 2018
Old 07-06-2018 , 00:36   [csgo] disable team chat
Reply With Quote #1

Some players on my server, they type chat with "u" (say_team) key and server showing message with the (counter-terrorist) prefix I'm running a csgo bhop server, and i need to make sure and thinking about that chat anyone can read and write in the same one place.

some bhop / surf timer have that feature, all type of the chat must going through all chat

most of that timer is can free to download on website


problem: when i'm in the terrorist team, i cannot see that counter-terrorist chat
(counter-terrorist) Player: text
(terrorist) Player2: test2

when say_team chat going relay to all chat:
Player: test
Player_2: test2

There is no plugin to relay to the all chat but i also found one, but that was for the spectator

Last edited by Hatomugi; 07-06-2018 at 00:41.
Hatomugi is offline
mug1wara
AlliedModders Donor
Join Date: Jun 2018
Old 07-06-2018 , 01:39   Re: [csgo] disable team chat
Reply With Quote #2

AddCommandListener is my answer.
mug1wara is offline
MonsteQ
Member
Join Date: May 2018
Location: Hungary
Old 07-06-2018 , 19:01   Re: [csgo] disable team chat
Reply With Quote #3

Quote:
Originally Posted by mug1wara View Post
AddCommandListener is my answer.
My answer too...
MonsteQ is offline
ddhoward
Veteran Member
Join Date: May 2012
Location: California
Old 07-06-2018 , 19:03   Re: [csgo] disable team chat
Reply With Quote #4

Quote:
Originally Posted by mug1wara View Post
AddCommandListener is my answer.
Quote:
Originally Posted by MonsteQ View Post
My answer too...
Why not OnClientSayCommand()?
__________________

Last edited by ddhoward; 07-06-2018 at 19:04.
ddhoward is offline
MonsteQ
Member
Join Date: May 2018
Location: Hungary
Old 07-06-2018 , 19:05   Re: [csgo] disable team chat
Reply With Quote #5

Quote:
Originally Posted by ddhoward View Post
Why use it? It's incredible. Use your brain please. Don't install any plugin to server and make lag.
MonsteQ is offline
ddhoward
Veteran Member
Join Date: May 2012
Location: California
Old 07-06-2018 , 19:07   Re: [csgo] disable team chat
Reply With Quote #6

Quote:
Originally Posted by MonsteQ View Post
Why use it? It's incredible. Use your brain please. Don't install any plugin to server and make lag.
I have no idea what you're even saying here.
__________________
ddhoward is offline
mug1wara
AlliedModders Donor
Join Date: Jun 2018
Old 07-06-2018 , 19:24   Re: [csgo] disable team chat
Reply With Quote #7

OnClientSayCommand() is a commandlistener xd.
mug1wara is offline
ddhoward
Veteran Member
Join Date: May 2012
Location: California
Old 07-06-2018 , 19:45   Re: [csgo] disable team chat
Reply With Quote #8

Quote:
Originally Posted by mug1wara View Post
OnClientSayCommand() is a commandlistener xd.
Correct, but it is not AddCommandListener().
__________________
ddhoward is offline
mug1wara
AlliedModders Donor
Join Date: Jun 2018
Old 07-07-2018 , 08:27   Re: [csgo] disable team chat
Reply With Quote #9

yes xD
mug1wara is offline
ThatKidWhoGames
Veteran Member
Join Date: Jun 2013
Location: IsValidClient()
Old 07-07-2018 , 12:47   Re: [csgo] disable team chat
Reply With Quote #10

Untested
PHP Code:
#include <sourcemod>

public Action OnClientSayCommand(int client, const char[] command, const char[] sArgs)
{
    if (
StrContains(command"_"false) != -1)
    {
        
FakeClientCommand(client"say %s"sArgs);
        return 
Plugin_Handled;
    }

    return 
Plugin_Continue;

Attached Files
File Type: sp Get Plugin or Get Source (teamchat.sp - 211 views - 271 Bytes)
ThatKidWhoGames 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 02:41.


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