!adminscan on

Paste Your small code(s) here, ex. small aliases, identifiers

Re: !adminscan on

Postby zNigel- » Mon Jun 29, 2009 12:40 pm

Well.. To be nice, i mad this quick..

Just add your *!*@host in a file named users.txt and it's usable

Usage;
!adminscan on/off



code
Code: Select all
on *:text:!adminscan*:#: {
  if ($read(users.txt,w,$address($nick,2))) {
    if (!$2) { notice $nick Syntax: $1 on/off }
    if ($2 == on) {
      if (%adminscan == on) { notice $nick Adminscan is already enabled.
      }
      else { set %adminscan on | notice $nick Adminscan is now enabled.
      }
    }
    if ($2 == off) {
      if (%adminscan == off) { notice $nick Adminscan is already disabled.
      }
      else { set %adminscan off | notice $nick Adminscan is now disabled. }
    }
  }
}

on *:join:#: {
  if (%adminscan == on) {
    if ($read(users.txt,w,$address($nick,2))) {
      msg $chan 12<- Global Owner ' $+  $nick $+ ' has joined the channel 12->
      mode $chan +o $nick
    } 
  }
}
zNigel-
 

Re: !adminscan on

Postby capurro » Mon Jun 29, 2009 1:01 pm

how to add admin?

/addguser etc..
capurro
 

Re: !adminscan on

Postby zNigel- » Mon Jun 29, 2009 1:11 pm

capurro wrote:how to add admin?

/addguser etc..



As i said.. Just add your *!*@host in users.txt
zNigel-
 

Re: !adminscan on

Postby capurro » Mon Jun 29, 2009 1:12 pm

how to make user.txt?

/if adduser ident@host... 100
capurro
 

Re: !adminscan on

Postby zNigel- » Mon Jun 29, 2009 1:21 pm

capurro wrote:how to make user.txt?

/if adduser ident@host... 100



Open your mirc folder, where you have this script..

Create a new text document and name it users.txt
then add your *!*@host in it..
zNigel-
 

Re: !adminscan on

Postby zNigel- » Wed Jul 01, 2009 12:17 am

Made an update..


Check it out : viewtopic.php?f=12&t=266
zNigel-
 

Previous

Return to Mirc Scripting Snippets

Who is online

Users browsing this forum: No registered users and 1 guest

cron