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

[Question]Removing connected/disconnected/jointeam chat prints


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
minimovz
Member
Join Date: Jan 2011
Old 12-02-2020 , 13:28   [Question]Removing connected/disconnected/jointeam chat prints
Reply With Quote #1

Hello, i tried finding a plugin that would to this for me but i only found solutions that would change the text instead of removing it completely.

Basically what i am trying to find is a plugin or something that would remove the "Player connected" or "Player disconnected: <Reason>" or "Player joined team..." chat prints that the game does

i also tried using the Deathmatch Goes Advanced dm_filter_text command to try and filter the strings (#game_player_left_game,#game_player_joined_t eam,#game_player_joined_game,#game_player_con necting) related to these prints but it didn't work

Last edited by minimovz; 12-02-2020 at 13:29.
minimovz is offline
kratoss1812
Senior Member
Join Date: May 2018
Location: Romānia
Old 12-02-2020 , 16:32   Re: [Question]Removing connected/disconnected/jointeam chat prints
Reply With Quote #2

PHP Code:
public void OnPluginStart()
{
    
HookEvent("player_disconnect"Event_BlockBroadcastEventHookMode_Pre);
    
HookEvent("player_connect"Event_BlockBroadcastEventHookMode_Pre);
}

public 
void Event_BlockBroadcast(Event event, const char[] namebool broadcast)
{
    if(!
event.GetBool("silent"))
            
event.BroadcastDisabled true;

__________________
kratoss1812 is offline
Sajmooooon
Senior Member
Join Date: Nov 2018
Location: Slovakia
Old 12-04-2020 , 02:53   Re: [Question]Removing connected/disconnected/jointeam chat prints
Reply With Quote #3

Quote:
Originally Posted by kratoss1812 View Post
PHP Code:
public void OnPluginStart()
{
    
HookEvent("player_disconnect"Event_BlockBroadcastEventHookMode_Pre);
    
HookEvent("player_connect"Event_BlockBroadcastEventHookMode_Pre);
}

public 
void Event_BlockBroadcast(Event event, const char[] namebool broadcast)
{
    if(!
event.GetBool("silent"))
            
event.BroadcastDisabled true;

Hi what is name of HookEvent for spectate ?
Sajmooooon 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 15:12.


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