First of all, your script will fail to work because of an extra, redundant *: symbol to your input event. I've tried to improve your original script by modifying it to this:
on @*:INPUT:#: {
if (/* !iswm $1-) {
if ($1 == k) && ($2 ison #) {
raw -q kick # $2 4BReaking Rules
}
if ($1 == b) && ($2 ison #) {
ban -ku180 # $address($2,2) 43 minute ban
}
if ($1 == akick) && ($2 ison #) {
ban -k # $address($2,2)
guser akick $address($2,2)
}
}
}
on @akick:JOIN:#: {
set -e %nick $nick
set -e %chan #
.timeryn 1 0 yesno
}
alias -l yesno {
$iif($input(Do you Wanna akick %nick $+ ? Yes or No?,yv) != $yes,guser unakick %ban,ban -k %chan %nick 2)
}