Make a new script and add this:
code:
function OnEvent_ChatWndSendMessage(ChatWnd, Message) {
var Contacts = ChatWnd.Contacts;
var e = new Enumerator(Contacts);
for(; !e.atEnd(); e.moveNext())
{
var Contact = e.item();
if(Contact.Status == 1) {
MsgPlus.DisplayToastContact("Offline Notification","[b]Your message has been blocked[/b]","because the contact is offline.","Sounds\\notify.mp3");
return "";
}
}
return Message;
}
It'll show a toast if the contact is offline. This stops you from offline messaging though so you'll have to turn it off if you want it to work
Might package it later with an option. Thanks to Stigmata for the help