You did not specify what vector to change:
Vector 0 is EV_VEC_origin, so i think you are trowing the player of the map
change:
entity_set_vector ( id, 0, anglesnew)
to:
entity_set_vector ( id, EV_VEC_v_angle, anglesnew)
For list of all vectors and others:
http://www.amxmodx.org/funcwiki.php?go=module&id=3
and, you can use instead of:
anglesnew[0] = angles[0] + random_float(-20.5,20.5)
anglesnew[1] = angles[1] + random_float(-21.0,21.0)
anglesnew[2] = angles[2] + random_float(-20.5,20.5)
to:
angles[0] += random_float(-20.5,20.5)
angles[1] += random_float(-21.0,21.0)
angles[2] += random_float(-20.5,20.5)
entity_set_vector ( id, EV_VEC_v_angle, angles)
__________________