This variable %Cconnect , it will never have any other value then "off" in your code.
Code:
on *:disconnect:{
set %Cconnect Off
}
on *:connect:{
if (($me == $anick) && (%Cconnect == Off)) {
set %Cconnect On
timerghost 1 1 ns ghost $mnick PASSWORD
timerchange 1 2 /nick $mnick
}
}