If I understand your request correctly, you can try using this script:
Code
alias invitelist {
  if (!$1) { echo Correct command:12 /invitelist #channel | halt }
  var %file invite-list-Gforce.txt, %lines $lines(%file)
  var %i 1, %n 1, %limit 5, %sec 0, %delay 10
  while (%i <= %lines) {
    %str = %str $+(*!*@,$read(%file,nt,%i))
    if (%n == %limit) || (%i == %lines) { 
      $+(.timer,INVITE,%i,$r(a,z)) 1 %sec mode $1 $+(+,$str(I,%limit)) %str
      unset %n %str | inc %sec %delay
    }
    inc %i | inc %n
  }
  unset %n %str %sec
}

Note:

  • The correct command to input is: /invitelist #channel
  • The host list file must contain one host per line.
  • The limit of the number of hosts for setting the mode is configured through a variable: %limit 5
  • The initial time in seconds for the first start of the timer is configured through a variable: %sec 0
  • The delay time in seconds for the timer is configured through a variable: %delay 10



Screenshot of the script in action:

    [Linked Image from i.ibb.co]


🌐 http://forum.epicnet.ru 📜 irc.epicnet.ru 6667 #Code | mIRC scripts, help, discuss, examples