Jump to content
Sign in to follow this  
El' Rabito

Block connecting/disconnected etc. systemchat messages

Recommended Posts

What it does: Blocks connecting,connected,disconnected etc messages from systemchat. Finally easily done due to the latest Arma 3 update and it's fixes.


##############
### Installation ##
##############

1. Make a CfgExileCustomCode override for ExileClient_object_player_event_hook and add the code below.

addMissionEventHandler ["HandleChatMessage", {
    
    params ["_channel", "", "", "_text"];
    _ltxt = toLower _text;
    if(_channel == 16) then 
    {
        {
            if(_ltxt find _x > -1)exitWith{true};
            
        } forEach [
        
            [localize "STR_MP_CONNECTION_LOOSING", " "] call BIS_fnc_splitString select 3,
            [localize "STR_MP_VALIDERROR_2", " "] call BIS_fnc_splitString select 2, 
            [localize "str_mp_connect", " "] call BIS_fnc_splitString select 2,
            [localize "str_mp_connecting", " "] call BIS_fnc_splitString select 2,
            [localize "str_mp_disconnect", " "] call BIS_fnc_splitString select 2
        ];
    };
    
}];

2. Save it, repack your missionfile and you are done.
 

Support Me: www.buymeacoffee.com/ElRabito

 

  • Like 1

Share this post


Link to post
Share on other sites

I'd love to implement this on my server. The post seems incomplete though. Any more info on this?

Share this post


Link to post
Share on other sites
On 11/8/2022 at 10:45 PM, Blvck Myst said:

I'd love to implement this on my server. The post seems incomplete though. Any more info on this?

Why ? Works without a problem.
Nvm i see why, i copied the install text from another fix and forgot to adjust it 😅

Share this post


Link to post
Share on other sites
Sign in to follow this  

×