+ if(!autocvar_g_chat_allowed && IS_REAL_CLIENT(source))
+ {
+ Send_Notification(NOTIF_ONE_ONLY, source, MSG_INFO, INFO_CHAT_DISABLED);
+ return 0;
+ }
+
+ if(!autocvar_g_chat_private_allowed && privatesay)
+ {
+ Send_Notification(NOTIF_ONE_ONLY, source, MSG_INFO, INFO_CHAT_PRIVATE_DISABLED);
+ return 0;
+ }
+
+ if(!autocvar_g_chat_spectator_allowed && IS_OBSERVER(source))
+ {
+ Send_Notification(NOTIF_ONE_ONLY, source, MSG_INFO, INFO_CHAT_SPECTATOR_DISABLED);
+ return 0;
+ }
+
+ if(!autocvar_g_chat_team_allowed && teamsay)
+ {
+ Send_Notification(NOTIF_ONE_ONLY, source, MSG_INFO, INFO_CHAT_TEAM_DISABLED);
+ return 0;
+ }
+