GetPlayerCameraZoom
From SA-MP Wiki
Description:
Retrieves the game camera zoom level for a given player.
(playerid)
playerid | The ID of the player to get the camera zoom level of. |
Return Values:
The player's camera zoom level (camera, sniper etc.), a float.
new szString[144]; format(szString, sizeof(szString), "Your camera zoom level: %f", GetPlayerCameraZoom(playerid)); SendClientMessage(playerid, -1, szString);
Related Functions
The following functions may be useful, as they are related to this function in one way or another.
- GetPlayerCameraAspectRatio: Get the aspect ratio of a player's camera.
- GetPlayerCameraPos: Find out where the player's camera is.
- GetPlayerCameraFrontVector: Get the player's camera front vector