mIRC Home    About    Download    Register    News    Help

Print Thread
how to give access to multiple specific names ? #260348 01/04/17 12:48 PM
Joined: Apr 2017
Posts: 1
N
Nav Offline OP
Mostly harmless
OP Offline
Mostly harmless
N
Joined: Apr 2017
Posts: 1
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 ?"

Re: how to give access to multiple specific names ? [Re: Nav] #260349 01/04/17 01:12 PM
Joined: Nov 2009
Posts: 295
P
pball Offline
Fjord artisan
Offline
Fjord artisan
P
Joined: Nov 2009
Posts: 295
This should work.

if (!$istok(nick1 nick2 nicketc,$nick,32)) return


http://scripting.pball.win
My personal site with some scripts I've released.
Re: how to give access to multiple specific names ? [Re: Nav] #260351 01/04/17 05:08 PM
Joined: Apr 2014
Posts: 170
Bramzee Offline
Vogon poet
Offline
Vogon poet
Joined: Apr 2014
Posts: 170
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
}