Pular para o conteúdo principal

EnablePlayerCameraTarget

atenção

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.

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;
}