Jump to content

!BLACKLIST SCRIPT NOT GRS!!!!!


Guest gamyster

Recommended Posts

please someone post A !blacklist script same like in GRS but i dont want GRS i need the seprate script of !blacklist please someone post it same like GRS.Please!!!!!!!!!!!!!!!!!

Link to comment

on *:SIGNAL:mta.command:{

var %a = $iif($4,$iif($mta.name($1,$4) != Unknown,$4,$mta.getid($1,$4)),$2)

if ($3 == !bl) {

if (%a == $2) mta.say $1 Error - You cant blacklist yourself

elseif (%a == -1) mta.msg $1 $2 Error - Absent ID

elseif (%b == -1) mta.say $1 $iif(#* iswm $3,0,$3) $mta.name($1,$2) $+ : Cannot blacklist absent ID

else {

else mta.say $1 $mta.name($1,%a) is blacklisted.

!writeini -n " $+ MTAbans.ini" banreasons $mta.name($1,%b) $6- $date $time $mta.name($1,$2)

!writeini -n " $+ MTAbans.ini" bannedip $mta.name($1,%b) $mta.ip($1,%b) $date $time $mta.name($1,$2)

!writeini -n " $+ MTAbans.ini" main $mta.name($1,%b) 4

!writeini -n " $+ MTAbans.ini" blacklist $mta.name($1,%b) 1

if $readini($+ MTAbans.ini,shortip,$gettok($mta.ip($1,%b),1-2,46)) && $mta.name($1,%b) !isin $readini($grs.dir $+ MTAbans.ini,shortip,$gettok($mta.ip($1,%b),1-2,46)) { !writeini -n " $+ $grs.dir $+ MTAbans.ini" shortip $gettok($mta.ip($1,%b),1-2,46) $readini($grs.dir $+ MTAbans.ini,shortip,$gettok($mta.ip($1,%b),1-2,46)) $+ , $mta.name($1,%b) }

else { !writeini -n " $+ MTAbans.ini" shortip $gettok($mta.ip($1,%b),1-2,46) $mta.name($1,%b) }

mta.ban $1 %b

}

}

}

edit : nah but its a start ;/ i guess

jUST remember NoT tested ;/ :shock::cry:

Link to comment
  • Recently Browsing   0 members

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