Jump to content

Tag Detector?


welder

Recommended Posts

Posted

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 :)

Posted
 ;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
     } 
   }
 }
}

Posted
 ;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 
   } 
 } 
} 

  • 5 months later...
Posted
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.

"Never argue with an idiot. They bring you down to their level and beat you with experience."

"Arguing on the internet is like the Special Olympics. Even if you win, you're still retarded."

signature.gif

  • Recently Browsing   0 members

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