முதன்மை உள்ளடக்கத்துக்குச் செல்லவும்

EnablePlayerCameraTarget

எச்சரிக்கை

செயல்பாடு என்பது SA-MP 0.3.7 பதிப்பில் சேர்க்கப்பட்டது. இது முந்தைய பதிப்புகளில் இயங்காது!

Description​

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

NameDescription
playeridThe ID of the player to toggle camera targeting functions for.
bool:enable'true' to enable camera targeting functions and 'false' to disable them.

Returns​

true - The function executed successfully.

false - The function failed to execute. The player is not connected.

Examples​

public OnPlayerConnect(playerid)
{
EnablePlayerCameraTarget(playerid, true);
return 1;
}