this works the best to make sure people cant gain points while its off

on !*:join:#:{
if (%flag == 1 ) {
$+(.timerpoints.,#,.,$nick) 0 36 add.pts $+(#,.,$nick)
add.pts $+(#,.,$nick)
if ($nick isop #) {
msg # The Creator Has Enter The Stream
}
}
elseif (%flag == 0 ) {
msg # sorry $nick the points system is off but feel free to check your points if you want
}
else {
msg $chan $nick you broke my code gg
}
}
on !*:part:#:$+(.timerpoints.,#,.,$nick) off
alias -l add.pts {
writeini -n points.ini $1 points $calc($readini(points.ini,$1,points) + 5)
}