31.03.2019, 08:00
I guess you could try GetPlayerCameraFrontVector and check if the coordinates are in range of the target player.
https://sampwiki.blast.hk/wiki/GetPlayerCameraFrontVector
or just simply
https://sampwiki.blast.hk/wiki/GetPlayerCameraTargetPlayer
https://sampwiki.blast.hk/wiki/GetPlayerCameraFrontVector
or just simply
https://sampwiki.blast.hk/wiki/GetPlayerCameraTargetPlayer