mIRC Homepage
Posted By: Nav how to give access to multiple specific names ? - 01/04/17 12:48 PM
on *:TEXT:!wahh *:#: {
if ($nick == person1 ) {return}
if ($nick == person2) {return}
write wahh.txt $2- $+
msg $chan /me fsudikjhfb
}

Want to give access to a command to specific peoples ! how do ?"
This should work.

if (!$istok(nick1 nick2 nicketc,$nick,32)) return
I use something similar to this...

Code:
 

alias trusted { 
  if ($readini(trusted.ini,$2,$1)) return 1 
} 

on *:text:!trust*:#: {
  if ($nick == YOURUSERNAMEHERE) {
    writeini trusted.ini # $2 1
  }
  else return
}

;;Then to use in the command

on *:text:!wahh*:#: {
 if ($trusted($nick,#)) {
   write wahh.txt $2- $+ 
   msg $chan /me fsudikjhfb
 }
  else return
}

© mIRC Discussion Forums