mIRC Home    About    Download    Register    News    Help

Print Thread
Page 2 of 2 1 2
Joined: Dec 2008
Posts: 1,515
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,515
Try to use this code:

Put this code into the "REMOTES" tab into a new file

To add access use: /set %owners NICK1 NICK2

Code:
ON *:TEXT:!autohost*:#:{
  if (!$istok(%owners,$nick,32)) { .msg $chan ( $+ $nick $+ ): Error, You have NOT access for this command! | return }
  if ($2 == on) {
    if ($timer(.hostON)) { .msg $chan ( $+ $nick $+ ): Error, The AUTOHOST is already enabled! | return }
    var %f = nowhosting.txt
    if (!$isfile(%f)) { .msg $chan ( $+ $nick $+ ): Error, The $qt(%f) file does NOT provide any nickname(s) for hosting! | return }
    if (!$lines(%f)) { .msg $chan ( $+ $nick $+ ): Error, The $qt(%f) file does NOT provide any nickname(s) in the list for hosting! | return }
    msg # /me Auto Hosting is now enabled.
    searchhost $chan
    .timer.hostON 0 1800 searchhost $chan
  }
  elseif ($2 == off) {
    if (!$timer(.hostON)) { .msg $chan ( $+ $nick $+ ): Error, The AUTOHOST is already disabled! | return }
    msg # /me Auto Hosting is now disabled.
    .timer.hostON off
    msg # /unhost
  }
}

alias searchhost {
  if (!$1) { return }
  if ($me !ison $1) { return }
  var %f = nowhosting.txt
  if (!$isfile(%f)) { return }
  if (!$lines(%f)) { return }
  var %r = $read(NowHosting.txt,n)
  msg $1 /me Now hosting $qt(%r)
  msg $1 /host %r
}


Need Online mIRC help or an mIRC Scripting Freelancer? -> https://irc.chathub.org <-
Joined: Jun 2015
Posts: 34
C
copman Offline OP
Ameglian cow
OP Offline
Ameglian cow
C
Joined: Jun 2015
Posts: 34
thanks that works smile

Joined: Dec 2008
Posts: 1,515
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,515
It was the same as splin ^^ lol


Need Online mIRC help or an mIRC Scripting Freelancer? -> https://irc.chathub.org <-
Joined: Jun 2015
Posts: 34
C
copman Offline OP
Ameglian cow
OP Offline
Ameglian cow
C
Joined: Jun 2015
Posts: 34
lol

Joined: Jun 2015
Posts: 34
C
copman Offline OP
Ameglian cow
OP Offline
Ameglian cow
C
Joined: Jun 2015
Posts: 34
it work so nice Thanks a lot

Joined: Jun 2015
Posts: 34
C
copman Offline OP
Ameglian cow
OP Offline
Ameglian cow
C
Joined: Jun 2015
Posts: 34
it was working but know it is not

Joined: Jun 2015
Posts: 34
C
copman Offline OP
Ameglian cow
OP Offline
Ameglian cow
C
Joined: Jun 2015
Posts: 34
i got it to work i am a had to type !autohost on

Page 2 of 2 1 2

Link Copied to Clipboard