Like this??
on *:SIGNAL:mta.join:{
if ($readini(login.ini,$mta.name($1,$2),level)) {
mta.msg $1 $2 login
}
else {
mta.msg $1 $2 register
}
}
on *:SIGNAL:mta.pm:{
if ($3 == login) {
set %pass $readini(login.ini,$mta.name($1,$2),password)
if (%pass = $4) {
mta.say $1 $mta.name Logged In succesfully (
}
else {
mta.msg $1 $2 wrong pass ($1,$2),level)
}
}
if ($3 == register) {
writeini -n login.ini $+(",$mta.name($1,$2),") password $4
writeini -n login.ini $+(",$mta.name($1,$2),") level 1
}
}
on *:SIGNAL:mta.command:{
if ($3 == !level) {
if ($4 isnum) {
mta.say $1 $mta.name($1,$4) is level $readini(login.ini,$mta.name($1,$4),level)
}
else {
mta.say $1 $mta.name($1,$2) is level $readini(login.ini,$mta.name($1,$2),level)
}
}
if (($3 == !setlevel) && ($readini(login.ini,$mta.name($1,$2),level) > 7)) {
if ($5 > 10) {
mta.say $1 can't be more than 10
}
else {
mta.say $1 $mta.name($1,$4) is set to level $5
writeini -n login.ini $+(",$mta.name($1,$4),") level $5
}
}