You mean, if the user tries to send a message it'll display a box and if the box result is No, it shouldn't send it?
Very easy, just let it return nothing!
code:
} else if(Val == 7) {
return;
}
If you use that code in the OnEvent_ChatWndSendMessage function (where I guess it is in), it will return nothing. This is because a ChatWndSendMessage event can return a string to the scripts parser telling what message has to be send.