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 two CfgExileCustomCode overrides for the files in step 2 and 3 and modify them.

2.For ExileClient_object_player_event_hook.sqf add this code below.

addMissionEventHandler ["HandleChatMessage", {
	params ["_channel","_text"];
	
	_channel = _this select 0;
	_text = _this select 3;
	_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,
			"modified",
			"signed"
		];
	};
	
}];

(Modified and signed are probably different depending on the language of your server (not sure tho, you have to test that)).

 

3. For ExileClient_object_player_event_unhook.sqf add this code below.

removeAllMissionEventHandlers "HandleChatMessage";

 

Edited by El' Rabito
Bug fixes
  • Like 1

Share this post


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

×