SetPlayerCameraPos

SetPlayerCameraPos

Description:
Function SetPlayerCameraPos sets the camera to a specific position for a player.
Using the camera functions directly after enabling spectator mode doesn't work.


Parameters:
(playerid, Float:x, Float:y, Float:z)
int playerid ID of the player.
float X The X coordinate to place the camera at.
float Y The Y coordinate to place the camera at.
float Z The Z coordinate to place the camera at.


Return Values:
  • 1: The function was executed successfully.
  • 0: The function failed to execute. The player specified doesn't exist.


Examples:
SetPlayerCameraPos(playerid, 652.23, 457.21, 10.84);


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