ceelen1 Posted October 30, 2006 Share Posted October 30, 2006 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 Link to comment
lil Toady Posted October 30, 2006 Share Posted October 30, 2006 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
Recommended Posts