You should do this :
PHP Code:
{
new Float:aim_vec[3];
pev(id, pev_v_angle, aim_vec);
engfunc(EngFunc_MakeVectors, aim_vec);
global_get(glb_v_forward, aim_vec);
}
You can trick it doing that (same thing is done internally to amxx):
PHP Code:
{
new Float:aim_vec[3];
velocity_by_aim(id, 1, aim_vec);
}
And if it is for traceline, to velocity_by_aim(id, 9999, aim_vec); so you can use player gun origin for trace start, and add aim_vec to start to set end position.
__________________