Jump to content

remove member script


ceelen1

Recommended Posts

i have this script:

on *:SIGNAL:mta.command:{

var %a = $iif($4,$iif($mta.name($1,$4) != Unknown,$4,$mta.getid($1,$4)),$2)

if ($3 == !addmember) {

!write " $+ $scriptdir $+ nickserv.txt" $mta.name($1,%a)

mta.say $1 Member $mta.name($1,%a) Added Succefully!

but how can i make an !removemember command i tryed it but i dont know the command to delete it :P

Link to comment
on *:SIGNAL:mta.command:{
 if ($3 == !remmember) {
   if ($4) {
     var %a = 0
     while (%a <= $lines($scriptdir $+ nickserv.txt)) {
       if ($4 isin $read($scriptdir $+ nickserv.txt,%a)) {
         mta.say $1 Member ' $+ $read($scriptdir $+ nickserv.txt,%a) $+ ' removed.
         !write -dl $+ %a " $+ $scriptdir $+ nickserv.txt"
       }
       !inc %a
     }
     else mta.msg $1 $2 Member not found.
   }
   else mta.msg $1 $2 Error - Nick missing
 }
}

Link to comment
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...