mIRC Homepage
Posted By: Scorchdragon Help on GAG Script - 29/01/06 08:33 PM
Code:
 on *:TEXT:Gag*:#woot: { if ($nick == Blademan-2 && $nick isop #woot && $2 ison #woot) { mode #woot -v $2 } { mode #woot +b ~q:$2 | msg #woot No talking for you $2  } }
 


Can someone help me fix it so when for example i say Gag Unknown3249342 it'll ban that person's ip without kicking them or whatever

Thanks
Scorchdragon
Posted By: drc4 Re: Help on GAG Script - 29/01/06 09:17 PM
Try something like
Code:
on @*:TEXT:Gag*:#woot: if ($nick == Blademan-2) { mode #woot -v $2 | mode #woot +b $address( $+ $2 $+ ,2) | /msg $woot No talking for you $2 $+ . }

Just ensure this is loaded in an instant of mIRC. Not the same instance that you're using to chat with.
Posted By: schaefer31 Re: Help on GAG Script - 29/01/06 09:23 PM
Code:
on @*:TEXT:Gag *:#woot:{
  if ($2 ison $chan) {
    if ($2 isop $chan) mode $chan -o $2
    if ($2 isvoice $chan) mode $chan -v $2
    mode $chan +b $address($2,2)
    msg $chan No talking for you $2
  }
}
Posted By: Scorchdragon Re: Help on GAG Script - 29/01/06 10:01 PM
Ty very much guys, i got it to work
Posted By: Scorchdragon Re: Help on GAG Script - 30/01/06 08:24 PM
Sorry about double post guys..
But
I want it so it GAGS them for example

if i said gag unknown2839482
it would do this mode
/mode #woot +b~q:(ipadresshere)

Thanks again
Posted By: schaefer31 Re: Help on GAG Script - 30/01/06 11:43 PM
That's what the code does. It's not always possible to obtain an ip of an user. What if they have a hostmask that is unresolvable? In that case, the command isn't going to work. Not to mention trying to dns the hostmask to an IP can often take several seconds, by that time they may have already left the channel.
Posted By: Scorchdragon Re: Help on GAG Script - 31/01/06 09:43 PM
Oh, ok thanks smile
© mIRC Discussion Forums