SA-MP Forums Archive
if a player are facing a player - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: if a player are facing a player (/showthread.php?tid=660877)



if a player are facing a player - 3417512908 - 16.11.2018

my head was fucked up by this problem
HOW I DO THAT?!?!?!?!?! detect if a player are facing a player but not behind him!?


Re: if a player are facing a player - dotSILENT - 16.11.2018

If you mean to check if both players are facing themselves (only then you cannot be "behind" someone), check if player A faces player B, and if player B faces player A using IsPlayerFacingPlayer function available on the internet.


Re: if a player are facing a player - Riddick94 - 16.11.2018