welder Posted April 27, 2006 Share Posted April 27, 2006 Hey, i have been trying to make a script that detects if someone has used our tag, then if so, it checks if they are logged into admin... I cant figure out how to get it to work though heres what i got: ;IP Admin Confirm if ($left($mta.nick($1,$2),7) == -]alw[-) { mta.pm $1 $2 Got 1 if ($readini(GEMTAusers.ini, $mta.nick($1,$2) $+ , admin) >= 1) { mta.pm $1 $2 Got 2 if ($readini(GEMTAusers.ini, $mta.nick($1,$2) $+ , baseip) == $gettok($mta.ip($1,$2),1-2,46)) { mta.pm $1 $2 Got 3 mta.pm $1 $2 Admin IP Validated } else { mta.pm $1 $2 $mta.nick($1,$2) - Invalid Admin IP Match! You have 10 seconds to login... var %srv = $1,%id = $2 !.timerkick. [ $+ [ $mta.nick($1,$2) ] ] 1 10 /mta.kick %srv %id } } } } The got PM's are for debugging.. I dont ever receive those, and instead of kicking a person with the tag who is fake, it just kicks ANYONE who changes their name to ANYTHING without warning... Any help would be great Link to comment
MrJax Posted April 28, 2006 Share Posted April 28, 2006 ;IP Admin Confirm if (-]alw[-* iswm $mta.nick($1,$2)) { if ($readini(GEMTAusers.ini,$mta.nick($1,$2),admin) >= 1) { if ($readini(GEMTAusers.ini,$mta.nick($1,$2),baseip) == $gettok($mta.ip($1,$2),1-2,46)) { mta.pm $1 $2 Admin IP Validated } else { mta.pm $1 $2 $mta.nick($1,$2) - Invalid Admin IP Match! You have 10 seconds to login... $+(!.timerkick,$1,.,$2) 1 10 mta.kick $1 $2 } } } } Link to comment
Jeremy Posted April 28, 2006 Share Posted April 28, 2006 ;IP Admin Confirm if (-]alw[-* iswm $mta.nick($1,$2)) { if ($readini(GEMTAusers.ini,$mta.nick($1,$2),admin) >= 1) { if ($readini(GEMTAusers.ini,$mta.nick($1,$2),baseip) == $gettok($mta.ip($1,$2),1-2,46)) { mta.pm $1 $2 Admin IP Validated } else { mta.pm $1 $2 $mta.nick($1,$2) - Invalid Admin IP Match! You have 10 seconds to login... $+(!.timerkick,$1,.,$2) 1 10 mta.kick $1 $2 } } } } if (-]alw[-* iswm $mta.nick($1,$2)) { if ($readini(GEMTAusers.ini,$mta.nick($1,$2),admin) >= 1) { if ($readini(GEMTAusers.ini,$mta.nick($1,$2),baseip) == $gettok($mta.ip($1,$2),1-2,46)) { mta.pm $1 $2 Admin IP Validated } else { mta.pm $1 $2 $mta.nick($1,$2) - Invalid Admin IP Match! You have 10 seconds to login... $+(!.timerkick,$1,.,$2) 1 10 mta.kick $1 $2 } } } Link to comment
welder Posted April 28, 2006 Author Share Posted April 28, 2006 Hmm... doesent seem to be working.. I went in with the name -]alw[-Imposter and it didnt do anything.. Link to comment
Jeremy Posted April 29, 2006 Share Posted April 29, 2006 you may have added it wrong the code its self looks good... Link to comment
Harry Posted April 29, 2006 Share Posted April 29, 2006 The [ and ] arent parsed as you think in mIRC as they are special codes. Link to comment
Turbo X Posted October 2, 2006 Share Posted October 2, 2006 wats ALW's ventrillo Ip anyway?? Link to comment
Aeron Posted October 2, 2006 Share Posted October 2, 2006 The [ and ] arent parsed as you think in mIRC as they are special codes. Also ini's can't handle []'s as topic's, because the ini format is: [Topic] item=value They get parsed as '~' if you use them as topic. Weldee, as far i can see in your script, your imposter name must be a existing member with admin status. Link to comment
Recommended Posts