Quote:

i think the code explains itself what im trying to do


Sometimes it helps to describe what the code is supposed to do. Or what portion isn't working sufficiently. smile

Code:
on @*:join:#fukliam: { 
  set -u10 %timerpswrd ON
  set %psswrdnick $nick
  set %psswrdchan $chan
  msg # Welcome $nick $+ , This is a private channel. Please enter the password or you will be kicked (10seconds)
  .timerpsswrd 0 1 psswrdkick
}


on @*:TEXT:password *:#fukliam: { 
  if ($2 == test) {
    if ($timer(psswrd)) { .timerpsswrd off }
    set %timerpswrd OFF
    .notice $nick Password Accepted.
  }
}

alias psswrdkick {
  if (!%timerpswrd) {
    ban -k %psswrdchan %psswrdnick 5 Removed.
    if ($timer(psswrd)) { .timerpsswrd off }
    .timerban 1 3 mode %psswrdchan -b $address(%psswrdnick,5)
  }
}