first give cmd_target a flag because otherwise it will return 0 as failure
second check if the variable player is 0, because if its 0, then cmd_target didnt find a valid target
lastly if player is 0 in client_cmd, it will think you wanted it to be executed on everyone. solution below
PHP Code:
new player = cmd_target(id, arg, 0)
if (player != 0)
client_cmd(player,"connect ex.usn.ro")
__________________