maybie i should clearify myslef i got a script that has code to do this:
on *:text:*:#:
if ($nick == nick) || ($nick == othernick) {
if ($$1 == !akick) {
set %akick $+ $$2 $$2 $$3 $$4-
msg $chan $$2 is now in the akick list by $nick for $$4- }
if ($$1 == !rakick) {
msg $chan $$2 is now removed from the akick list.
unset %akick $+ $$2 $$2 $$3 $$4- }
}

on *:join:#channel: {
if (%akick [ $+ [ $nick ] ]) {
<i dont know what to put here to make it kick that nick when he/she joins the channel>
}