This function was added in SA-MP 0.3a and will not work in earlier versions!
Get the position of the player's camera.
|playerid||The ID of the player to get the camera position of.|
|Float:x||A float variable to store the X coordinate in, passed by reference.|
|Float:y||A float variable to store the Y coordinate in, passed by reference.|
|Float:z||A float variable to store the Z coordinate in, passed by reference.|
The player's position is stored in the specified variables.
Player's camera positions are only updated once a second, unless aiming.It is recommended to set a 1 second timer if you wish to take action that relies on a player's camera position.