Well I need to get the Derections of a vector.
I have 2 Ent.. So I need to get the Direction..
PHP Code:
stock put_allplayers(Float:origin[3])
{
static Float:direction[3]
for( new i = 1; i <= 32; i++)
{
if( is_user_connected(i) && is_user_alive(i) )
{
new Float:plrorigin[3]
pev(i, pev_origin, plrorigin)
// How to get Direction????
server_print("%f %f %f, Distance: %f", direction[0], direction[1], direction[2], get_distance_f(plrorigin, origin))
}
}
}
How I can get the Direction?
__________________