mIRC Homepage
Posted By: Sturm $nick in .txt - 11/07/06 10:12 PM
say i want to make a command that only users in a .txt file can use.
when someone who is not listed in the .txt file tries to use it, it does nothing. Here is what i have:
Code:
 on @*:text:!op*:#: {
  if ($nick isin accesslist.txt) {
  mode # +o $2
  }
  else {
  }
}


can someone correct it?
Posted By: Xx_InSaNe_xX Re: $nick in .txt - 11/07/06 10:20 PM
Code:
on @*:text:!op*:#: {
  if ($read(accesslist.txt,w,* $+ $nick $+ *) != $null) {
    mode # +o $2
  }
  else {  }
}


Have the entries in accesslist.txt as *Nick*
Posted By: RusselB Re: $nick in .txt - 11/07/06 10:43 PM
Code:
 on @*:text:!op*:#: $iif($read(accesslist.txt,ns,$nick),mode # +o $iif(!$2,$nick,$2)) 


Very similar to my response to your other post, but with this one getting the nicks from the file accesslist.txt rather than a variable
© mIRC Discussion Forums