Jump to content

Simple Ban script


Recommended Posts

Do you mean something like:

on *:SIGNAL:mta.join: {
if ($mta.ip($1,$2) == *.*.*.*) mta.ban $1 $2
}

Note, This will ban everyone in the server, because " * = Anything ", do not upload this unless u want everyone coming to that server to be banned!

Link to comment
Do you mean something like:

on *:SIGNAL:mta.join: {
if ($mta.ip($1,$2) == *.*.*.*) mta.ban $1 $2
}

Note, This will ban everyone in the server, because " * = Anything ", do not upload this unless u want everyone coming to that server to be banned!

no , but i thinked like !ban --.nickname-- or smt and reason.

Link to comment

i need this for MTA 0.5 and WITHOUT MTAMA, im making me own admin system,

MTAMA = MTA Mirc Admin, if u think u can make ur own admin client then surely u dont need to ask how to use a command made for MTAMA.

What u proabably mean is, u want to write ur own admin script, to run with MTAMA3.24 For MTAVC.

I would have thought anyone who can make an admin script could make a line to ban a player.

mta.ban

mta.ban $1 $mta.getid($1,$4) $5- 

u should try reading the scripting.html that comes with mtama, it has lists of all the identifiers/commands needed to make everything.

good luck :)

Link to comment
or mta.addban

on *:SIGNAL:mta.command:{
 if ($3 == !ban) {
   if (*.*.*.* iswm $4) {
     mta.addban $1 $4
     mta.say $1 IP $+(',$4,') successfully banned.
   }
   else mta.msg $1 $2 Error - Invalid IP
 }
}

thanks for making this anyway, but you didnt got what i want , i meaned like !ban -playername- and then he gets kicked from server and banned

Link to comment
  • Recently Browsing   0 members

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