AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugin/Gameplay Ideas and Requests (https://forums.alliedmods.net/forumdisplay.php?f=60)
-   -   [Question]Removing connected/disconnected/jointeam chat prints (https://forums.alliedmods.net/showthread.php?t=328945)

minimovz 12-02-2020 13:28

[Question]Removing connected/disconnected/jointeam chat prints
 
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

kratoss1812 12-02-2020 16:32

Re: [Question]Removing connected/disconnected/jointeam chat prints
 
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;



Sajmooooon 12-04-2020 02:53

Re: [Question]Removing connected/disconnected/jointeam chat prints
 
Quote:

Originally Posted by kratoss1812 (Post 2727109)
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 ?


All times are GMT -4. The time now is 00:18.

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