This is one great script. Sometimes some users IP changes and their hostname doesnt. This script will check the hostname on entry and ban if it finds it in the list.
Files to be created:
1. Create a text file called Banned.txt in C:\Program Files\BOTNAME\Plugins\
2. Create a folder called hostname in C:\Program Files\RoboMX\Plugins\
<OnEnter type="script">
<out type="push" extdata="Host">%HOSTNAME%</out>
<out type="push" extdata="RawName">%NAME%</out>
<out type="file" mode="t" extdata="C:\Program Files\RoboMX\Plugins\hostname\$RawName$.txt">$Host$</out>
<out delay="2000">/opmsg Users Hostname is being checked against Ban List</out>
<out type="push" extdata="RECENTS"><operator type="readfile" nvalue="C:\Program Files\RoboMX\Plugins\Banned.txt" lvalue="c" rvalue="-1"/></out>
<out type="push" extdata="RULE8">NO</out>
<out type="push" extdata="RULE8" condition="?" lvalue="$RECENTS$" rvalue="%HOSTNAME%">YES</out>
<out condition="==" lvalue="$RULE8$" rvalue="NO">/opmsg Check Complete</out>
<out condition="==" lvalue="$RULE8$" rvalue="YES"> #c1#You Where Banned #c8#%NAME%#c1#, Nice Try but their no slipping Past us Bye Bye.</out>
<out condition="==" lvalue="$RULE8$" rvalue="YES">/opmsg Dont forget to /clearbans if you have unbanned them</out>
<out delay="5000"condition="==" lvalue="$RULE8$" rvalue="YES">/kickban %NAME%</out>
</OnEnter>
<OnOpMessage type="script">
<in>/kickban %PARAM%</in>
<out type="push" extdata="NAME">%PARAM%</out>
<out type="push" extdata="GO"><operator type="readfile" nvalue="C:\Program Files\RoboMX\Plugins\hostname\$NAME$.txt" lvalue="c" rvalue=-1/></out>
<out>/opmsg This Hostname :-$GO$ Has been added to the ban list, to remove it type /clearbans</out>
<out type="file" mode="a" extdata="C:\Program Files\RoboMX\Plugins\Banned.txt"> $GO$ \n</out>
</OnOpMessage>
<OnOpMessage type="script">
<in>/clearbans</in>
<out type="file" mode="t" extdata="C:\Program Files\RoboMX\Plugins\Banned.txt"></out>
<out delay="500">/opmsg Host Ban file cleared also</out>
</OnOpMessage>