Okay, i'm almost finished. I got a little copy from some1 else, though 2 things i dont understand yet...
on *:SIGNAL:mta.start:command
if ($2 == The script has started succesfully) {
$mta.console Started the cheat pm script.
}
on *:SIGNAL:mta.command: {
if ($1 == !admin $mta.nick) {
var %cheat1 = (admin-cheat$1,$2) != $readini($mta.nick,Cheater($1,$2)
else
}
on *:SIGNAL:mta.pm:command {
if ($4- == !admin $mta.nick) {
var %cheat1 = (admin-cheat$1,$2) != $readini($mta.nick,Cheater($1,$2) $mta.pm * PM Sent to Admin : Hello admin, the player named $mta.nick is or was cheating, could you please ban him?
}
on *:SIGNAL:mta.login:command
if ($2 == !checkpm ) {
var %pm = (pm,$1,$2) != $readini($mta.nick,pm($1,$2)
else
var %pm = (pm,$1,$2) != $readini($mta.nick,pm($1,$2) $mta.pm At the moment you don't have any messages.
var %pm = (pm,$1,$2) != $readini($mta.nick,pm($1,$2) Hello admin, $mta.nick was or is cheating, could you please ban him?!}
}
on *:SIGNAL:mta.addban:command
if ($2 == !ban $mta.ip,$mta.nick ) {
}
$mta.text Name: $mta.nick IP: $mta.ip has been banned from the server!
}
}
There is 1 thing I doubt about and 1 thing i dont understand (the copied part)
First the thing i dont understand.
The $readini command, is this a command which is for reading the admins inbox?
Now the 2nd part, and thats about my last part of the script with the addban command.
I would like to have when the script bans the ip AND the nickname of the player at the same time. So i've done it like this
on *:SIGNAL:mta.addban:command
if ($2 == !ban $mta.ip,$mta.nick ) {
}
$mta.text Name: $mta.nick IP: $mta.ip has been banned from the server!
}
}
however i dont know if its possible to put $mta.ip and $mta.nick into one ban command
Please tell me how my script is and eventually make some fixes into it?