EnablePlayerCameraTarget

From SA-MP Wiki

Jump to: navigation, search

EnablePlayerCameraTarget was added in SA-MP 0.3.7 This function was added in SA-MP 0.3.7 and will not work in earlier versions!


Description:

Toggle camera targeting functions for a player. Disabled by default to save bandwidth.


Parameters:
(playerid, enable)
playeridThe ID of the player to toggle camera targeting functions for.
enable1 to enable camera targeting functions and 0 to disable them.


Return Values:

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


Example Usage:

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.

Personal tools
Navigation
Toolbox
In other languages