27.07.2012, 11:13
Quite complex situation. You have to get relative position of player and object, then using trigonometry and compare required angle with GetPlayerFacingAngle (warning, 2d only, so it'll work for objects above player).
Other solution will require https://sampwiki.blast.hk/wiki/GetPlayerCameraFrontVector
Other solution will require https://sampwiki.blast.hk/wiki/GetPlayerCameraFrontVector