View Single Post
eyal282
Veteran Member
Join Date: Aug 2011
Old 08-09-2018 , 10:25   Re: Need a formula (Origin To Angles)
Reply With Quote #2

Quote:
Originally Posted by ayyyyyyylmao View Post
Me need a formula, convert players origin to angles, smth like
new Floatrigin = GetClientAbsOrigin(enemy);
new Float:angles = OriginToAngles(origin);
if (angles[0] == 89 && angles[1] == 0)
PrintCenterTextAll("You need look at X: 89, Y: 0 to see an enemy!");

any ideas?
That is an impossible task ( Almost 100% sure ), and my answer to your last post requires you to make a trace with the first argument being the client's origin and the second argument being the other player's ORIGIN AGAIN.
__________________
I am available to make plugins for pay.

Discord: Eyal282#1334
eyal282 is offline