I am going to the blind but give a try this code:

Place it in an new file from script editor in "Remotes" tab (File -> New)

Code:
ON *:TEXT:*:#artiiz:{
  tokenize 32 $strip($1-)
  if (viewers resubscribed isin $1-) {
    var %f = $remove(test,.mrc) $+ .mrc
    if (!$check_load(%f).short) { return }
    .unload -rs $qt(%f)
    echo -a The $qt($nopath(%f)) file has been unloaded!
  }
}

alias check_load {
  if (!$1) { return }
  var %t = $script(0)
  var %i = 1
  while (%i <= %t) {
    var %f = $iif($prop == short,$nopath($script(%i)),$script(%i))
    if (%f == $1-) { return 1 }
    inc %i
  }
  return 0
}

Last edited by westor; 06/10/15 09:54 PM.

Need Online mIRC help or an mIRC Scripting Freelancer? -> https://irc.chathub.org <-