sorry for the late response everyone, thank you @XSlayer and @Natsheh for the help!
I used gray color cause I meant to show that I solved the problem.
what I was trying to do is create an entity that would rotate horizontally or vertically around the player and keeping it at the same direction even if the player turns around.
I ended up with these lines which did what I needed:
PHP Code:
static Float:VicOrigin[3], Float:EntOrigin[3]
pev(ent, pev_origin, EntOrigin)
pev(victim, pev_origin, VicOrigin)
VicOrigin[0] = VicOrigin[0]+(200.0 * floatcos(ang,degrees));
VicOrigin[2] = VicOrigin[2]+(200.0 * floatsin(ang,degrees));
set_pev(ent,pev_origin,VicOrigin);
and I used pev_origin for a reason instead of pev_velocity
__________________