As stated, you will have to loop through your user list. A faster method if the admins rarely change is to just put them directly into the msg command...

/msg nick1,nick2,nick3 This is the message.

If they do change regularly, then you'll want to loop through the user list by using a while loop and checking $ulist(*,admin,N), where N is the number that you are checking. You'll want to loop from N=1 to N=0 (0 being the total). You can add those to a variable in the format of nick1,nick2,nick3 within your loop so that you can then message them all with a single /msg command.

Code:
on !*:join:#yourchannel: {
  var %c = 1, %t = $ulist(*,admin,0)
  while (%c <= %t) {
    var %admins = $addtok(%admins,$ulist(*,admin,%c),44)
    inc %c
  }
  msg %admins Your message here.
}


Btw, unless you are completely positive that your number of waiting users will never grow to be really large, you may want to consider something other than a variable. A variable is fine for "small" numbers of nicks (you have about 4000 characters to work with in mIRC 7.x). But if you think it might grow beyond that, you're better off just using a text file and deleting row 1 each time you are done with that user. It's very easy to manage that way and is only limited in size by your hard drive.

** Note that I did not put in a check to make sure that you actually have users with the level of "admin". You could add something like that, but it's unlikely you'll ever need it as long as you make sure you always have someone with that user level.

Last edited by Riamus2; 18/04/11 05:37 PM.

Invision Support
#Invision on irc.irchighway.net