Top

Warning script


mIRC Code
+ 0 likes
Please Register to submit score.
Bookmark and Share
Average Score  3.7 (of 3 scores)
Date Added  Sep 08, 2008
Last Updated  Sep 08, 2008
Tags  mudkipz  protection  script  strike  warning 

Introduction

A simple strike script, This is Version One, Ill add the new updats in two weeks time max.
Its basically Three strikes and your out. Not really Much more to say Really...
SYNAX:- .strike <Nick to be sticken> then it tells you how many stikes they currently have


Grab the Code

on *:text:.strike*:#: {
  inc %strike. [ $+ [ $2- ] ]
  if ($nick isop $chan) notice $2- you now have a strike, you currently have %strike. [ $+ [ $2- ] ]
  if ($nick ishop $chan) notice $2- you now have a strike, you currently have %strike. [ $+ [ $2- ] ]
  if ($nick isop $chan) notice $nick you have issued a strike, $2- now has %strike. [ $+ [ $2- ] ] 
  if ($nick ishop $chan) notice $nick you have issued a strike, $2- now has %strike. [ $+ [ $2- ] ]
  if (%strike. [ $+ [ $2- ] ] == 3) notice $nick $2- has 3 strikes, which is kbable, so go ahead
  if ($nick ishop $chan) if (%strike. [ $+ [ $2- ] ] == 3) set %strike. [ $+ [ $2- ] ] 
  if (%strike. [ $+ [ $2- ] ] == 3) notice $nick $2- has 3 strikes, which is kbable, so go ahead
  if (%strike. [ $+ [ $2- ] ] == 3) set %strike. [ $+ [ $2- ] ] 
}
 

Comments

  (6)  RSS
Cheiron
Comments: 627
 
mIRC Snippet:  Warning script
Posted on Sep 8, 2008 4:28 pm
you forgot to add the kick to the third strike unless that was your intention :)
mountaindew
Comments: 1,826
 
mIRC Snippet:  Warning script
Posted on Sep 8, 2008 4:37 pm
You can combine some of these if statements. Example:
Code:

if ($nick isop $chan || $nick ishop $chan) {
  notice $2 you now have a strike...
  notice $nick you have issued a strike...
}

And then with
Code:

  if (%strike. [ $+ [ $2- ] ] == 3) notice $nick $2- has 3 strikes, which is kbable, so go ahead
  if (%strike. [ $+ [ $2- ] ] == 3) set %strike. [ $+ [ $2- ] ]

You can combine them:
Code:

  if (%strike. [ $+ [ $2- ] ] == 3) {
    notice $nick $2- has 3 strikes, which is kbable, so go ahead
    set %strike. [ $+ [ $2- ] ]
  }

Just use brackets { } and you can put multiple things in one if statement.
napalm`
Comments: 182
 
mIRC Snippet:  Warning script
Posted on Sep 8, 2008 7:49 pm
This is the leetness.
napa182
Comments: 1,454
 
mIRC Snippet:  Warning script
Posted on Sep 8, 2008 9:03 pm
why not do
Code:
on @*:text:.strike*:#: {
  if ($nick(#,$nick,oh)) {
    inc $+(%,strike,.,$2,.,$chan)
    if ($($+(%,strike,.,$2,.,$chan),2) isnum 1-2) { .notice $2 you now have a strike, you currently have $($+(%,strike,.,$2,.,$chan),2) | .notice $nick you have issued a strike, $2 now has $($+(%,strike,.,$2,.,$chan),2) }
    else { .notice $nick $2 has 3 strikes, which is kbable, so il go ahead and kick ban them | ban -k # $2 2 Three strikes and ur out | unset $+(%,strike,.,$2,.,$chan) }   
  }
}

Akishoot
Comments: 139
 
mIRC Snippet:  Warning script
Posted on Sep 8, 2008 9:37 pm
There goes another... 8D
Mudkipz
Comments: 25
 
mIRC Snippet:  Warning script
Posted on Sep 9, 2008 12:06 pm
mountiandew I didnt think of doing it like that, I fit all the commands into the one line tho, using |. Cherion that was my intention, The option of kick on third stike will be on my Upcoming update, aswell as reason for strike, Strike check, And many more. So keep checking this script, If you want I will Pm you when it comes out.Thanks for all the positive comments.

Commenting Options

Register or Login to Hawkee.com or use your Facebook or Twitter account by clicking the corresponding button below.

  
Bottom