So if cmd_target returns 0 on failure how come it failed when i gave a valid name; executed the command on valid player name?
By the way in case you didn't know, the command must be Connect, with capital 'C' else it won't be recognized. This is in effect since an update not long ago.
Edit: Forgot to say thanks for the help, it works as it should now!