I found that snippet to get the user aiming-angle:
Code:
#include <amxmodx>
#include <engine>
new Float:oldAngles[33][3];
public client_PreThink(id)
{
static Float:angles[3];
entity_get_vector(id,EV_VEC_v_angle,angles);
if(angles[0] < oldAngles[id][0])
{
client_print(id,print_chat,"UP");
}
else if(angles[0] > oldAngles[id][0])
{
client_print(id,print_chat,"DOWN");
}
if(angles[1] < oldAngles[id][1])
{
client_print(id,print_chat,"RIGHT");
}
else if(angles[1] > oldAngles[id][1])
{
client_print(id,print_chat,"LEFT");
}
oldAngles[id] = angles;
}
I think with entity_set_vector()
(
http://www.amxmodx.org/doc/source/fu...set_vector.htm)
you can set an angle
Hope that helps!?
greetz regalis
__________________