Thanks alot!
So in fact $mta.level(Server,PlayerID) is quite useless?
I made this script now but it doesn't work:
%repeat = 0
on *:SIGNAL:mta.command: {
if ($3 == !repeat) {
if ($mta.level($1,$2) > 4 && $4 == 1) {
%repeat = 1
mta.text $1 The repeat function is now on.
}
elseif ($mta.level($1,$2) > 4 && $4 == 0) {
%repeat = 0
mta.text $1 The repeat function is now off.
}
elseif ($mta.level($1,$2) > 4 && $4 !== 0 && $4 == 1) {
mta.text $1 Only use "!repeat 1" to turn on and "!repeat 0" to turn off.
}
else {
mta.text $1 You need to be admin level 5 or more to use this function!
}
}
}
on *:SIGNAL:mta.text: {
if (%repeat == 1) {
mta.text $1 $mta.nick($1,$2) just said: "$3"
}
}
Do u guys see what's wrong?