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 then it tells you how many stikes they currently have

```
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- ] ]
}
```

Sign in to comment.

why not do

```
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) }
}
}
```

You can combine some of these if statements. Example:

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

And then with

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

```
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.

Are you sure you want to unfollow this person?

Are you sure you want to delete this?

Click "Unsubscribe" to stop receiving notices pertaining to this post.

Click "Subscribe" to resume notices pertaining to this post.