; Just Added $nick and $chan to the command - explained underneath
ON @7:TEXT:!points*:#:{ /k-show-points $$2 $nick $chan }
alias k-show-points {
; here we use much of the same principle as the above script, for this to work we had to have the actual nick who triggered the on text event at our disposal, in order for us to use their name instead of the text
if ($1 == me) { var %nick $1 }
else { var %nick $2 }
if (%k-botcolor == 1) { var %x 8,3 }
else { var %k }
; here, ive replaced your $chan with $3 from the command - this is just better incase the script is running in more then one channel, or if the mirc client isnt actually active on that particular channel
if ($var($+(%, points.,%nick),1).value) { msg $3 %x %nick points: $var($+(%, points.,%nick),1).value }
else { msg $3 %x %nick Not Found! }
}