also if any knows how to do this script with one warning first and then kick-banned

on @*:text:*:#: {
if ( %rp_duration == $null ) { set %rp_duration 60 }
if ( %rp_bantime == $null ) { set %rp_bantime 60 }
if ( %rp_offences == $null ) { set %rp_offences 1 }
if ( $nick isreg # ) {
var %rp.repeats = rp. $+ $nick $+ . $+ $chan
var %rp.text = rp. $+ $nick $+ . $+ $chan $+ .text
if ( % [ $+ [ %rp.repeats ] ] == $null ) {
set -u [ $+ [ %rp_duration ] ] % [ $+ [ %rp.repeats ] ] 1
set -u [ $+ [ %rp_duration ] ] % [ $+ [ %rp.text ] ] $1-
}
elseif ( % [ $+ [ %rp.text ] ] == $1- ) {
inc % [ $+ [ %rp.repeats ] ]
}
elseif ( % [ $+ [ %rp.text ] ] != $1- ) {
set -u [ $+ [ %rp_duration ] ] % [ $+ [ %rp.text ] ] $1-
set -u [ $+ [ %rp_duration ] ] % [ $+ [ %rp.repeats ] ] 1
}
if ( % [ $+ [ %rp.repeats ] ] > %rp_offences ) {
ban -k $chan $nick 2 Banned (repeat flood)
unset % [ $+ [ %rp.repeats ] ]
unset % [ $+ [ %rp.text ] ]
}
}
}