Just in case anyone wants to do the same.. here is the finished scripts, with all changes added

on *:KICK:#:{
if (!$window(@kicked)) window @kicked
aline @kicked [[ $fulldate ]] - $gettok($address($knick,2),2,64) - $nick - kicked - $knick - from $chan for - $1-
write $+(",$logdirkicked.txt,") $line(@kicked,$line(@kicked,0))
}

good luck smile