4.2.3 release #65
@@ -14,21 +14,18 @@ if ( !hasInterface ) exitWith {};
|
||||
addMissionEventHandler ["HandleChatMessage",
|
||||
{
|
||||
params ["_channel", "_owner", "_from", "_text", "_person", "_name", "_strID", "_forcedDisplay", "_isPlayerMessage", "_sentenceType", "_chatMessageType"];
|
||||
|
||||
if ( missionNamespace getVariable ["milsim_globalChat", false] ) exitWith{ false };
|
||||
if ( missionNamespace getVariable ["milsim_sideChat", false] ) exitWith{ false };
|
||||
if ( missionNamespace getVariable ["milsim_commandChat", false] ) exitWith{ false };
|
||||
if ( missionNamespace getVariable ["milsim_groupChat", false] ) exitWith{ false };
|
||||
if ( missionNamespace getVariable ["milsim_vehicleChat", false] ) exitWith{ false };
|
||||
if ( missionNamespace getVariable ["milsim_directChat", false] ) exitWith{ false };
|
||||
|
||||
|
||||
if (_channel != 1) exitWith { false };
|
||||
|
||||
|
||||
if ( ( admin _owner ) != 0 ) exitWith { false };
|
||||
|
||||
if ( !isNull ( getAssignedCuratorLogic _person ) ) exitWith { false };
|
||||
|
||||
if ( (missionNamespace getVariable ["milsim_globalChat", false] ) && ( _channel == 0 ) ) exitWith{ false };
|
||||
if ( (missionNamespace getVariable ["milsim_sideChat", false] ) && ( _channel == 1 ) ) exitWith{ false };
|
||||
if ( (missionNamespace getVariable ["milsim_commandChat", false] && ( _channel == 2 ) ) ) exitWith{ false };
|
||||
if ( (missionNamespace getVariable ["milsim_groupChat", false] ) && ( _channel == 3 ) ) exitWith{ false };
|
||||
if ( (missionNamespace getVariable ["milsim_vehicleChat", false] && ( _channel == 4 ) ) ) exitWith{ false };
|
||||
if ( (missionNamespace getVariable ["milsim_directChat", false] ) && ( _channel == 5 ) ) exitWith{ false };
|
||||
|
||||
true;
|
||||
}
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user