the problem is solved!!!
the vec_to_angle(my.pan, vector(sign(joy_force.x),sign(joy_force.y),0));
my.pan -= 90; code was right, but for some reason i had to replace my.pan -= 90;
by my.pan -= 0;