los capos, did you check and see if your code works? It won't because your on text event lacks the asterisk symbol to tell mirc to proceed to $2 : > on :text:!kickban:#: {A better approach to your code is as follows:
on @*:text:!kickban*:#: {
if (!%fp) { set -z %fp 5
if ($nick !isop $chan) { .msg $chan $nick $+ , access denied! }
elseif ($$2 ison $chan) { ban -k $v2 $2 Asta la vista! }
else { .msg $chan $nick $+ , $2 is not found! }
}
}
Which includes checks for whether a $2 is on $chan and $nick is an op or not. It's recommend to ban by $2's host. You also need to make sure the client running the code is opped by prefixing your event with a @. A flood protection is added in case of spamming.