You have to hex edit mIRC to prevent people from using mIRC to access scripts. Bear in mind that hex editing mIRC is against the licence agreement though. Apart from this (a pointless exercise in itself) there is absolutely no way to prevent people opening the script files as any word processor can open them anyway. (Notepad, Wordpad, Word, etc)

You can script in some rip protection but those that know what to look for can get around it anyway. I know for a fact that while I am not a ripper, if I wanted to and felt inclined to do so, I can work my way around any attempt to protect mIRC script files.

It'd be nice to have but there's simply no way of achieving rip protection in any way. And more to the point here, there never can or will be.