Function EnablePlayerCameraTarget toggle camera targeting functions for a player. Disabled by default to save bandwidth.
Function EnablePlayerCameraTarget was added in 0.3.7 and will not work in earlier versions!

(playerid, enable)
int playerid The ID of the player to toggle camera targeting functions for.
bool enable 1 to enable camera targeting functions and 0 to disable them.

Return Values:
  • 1: The function was executed successfully.
  • 0: The function failed to execute. The player is not connected.

public OnPlayerConnect(playerid)
     EnablePlayerCameraTarget(playerid, 1);
     return 1;

Related Functions
The following functions may be useful, as they are related to this function in one way or another.