mIRC Home    About    Download    Register    News    Help

Print Thread
#196132 10/03/08 03:32 PM
Joined: Sep 2004
Posts: 44
T
Thermal Offline OP
Ameglian cow
OP Offline
Ameglian cow
T
Joined: Sep 2004
Posts: 44
Hello smile

was wondering if i could get some help on this script. it only warns and kicks when the url is http://urlhere/blah.php* i was trying to make it to where it warns and kicks the person if the url was http://urlhere/blah.php?ranch=2342 , the numbers on the end change from time to time, and i just cant seem to make it work. Here is the code, if anyone could tell me what is wrong, i would appreciate it smile thanks

on *:start: {
hmake flood 100
}

on @*:text:*:#: {
if ($nick !isop #) {
if (*http://urlhere/blah.php* iswm $1-) {
hinc -mu300 flood $+(flood,$nick)
if ($hget(flood,$+(flood,$nick)) == 2) {
msg $chan $nick Space Out Your Ads To Once Every 5 Mins , Next Warning Will Result In A Kick
}
elseif ($hget(flood,$+(flood,$nick)) >= 3) {
kick $chan $nick Please Remember To Space Out Your Ads To Once Every 5 Mins, Thanks
hdel flood $+(flood,$nick)
}
}
}
}

Joined: Feb 2006
Posts: 181
C
Vogon poet
Offline
Vogon poet
C
Joined: Feb 2006
Posts: 181
Code:
on *:start: {
  hmake flood 100
}

on @*:text:*:#: {
  if ($nick !isop #) {
    if (*http://urlhere/blah.php* iswm $1-) {
      if (!$hget(flood,$+(flood,$nick))) hadd -m flood $+(flood,$nick) 1
      else {
        hinc -mu300 flood $+(flood,$nick)
        if ($hget(flood,$+(flood,$nick)) == 2) msg $chan $nick Space Out Your Ads To Once Every 5 Mins , Next Warning Will Result In A Kick
        elseif ($hget(flood,$+(flood,$nick)) >= 3) {
          kick $chan $nick Please Remember To Space Out Your Ads To Once Every 5 Mins, Thanks
          hdel flood $+(flood,$nick)
        }
      }
    }
  }
} 

Joined: Sep 2004
Posts: 44
T
Thermal Offline OP
Ameglian cow
OP Offline
Ameglian cow
T
Joined: Sep 2004
Posts: 44
thank you smile


Link Copied to Clipboard