Well, the pointers for player and for camera are probably the same unless you specify otherwise. So, I would try something like this:

you = ptr_for_name("thewdlnameoftheplayermodel_mdl_012");
if(vec_dist(camera.x, you.x)< 6000)