warning Not Translated
This page has not been translated into the language that your browser requested yet. The English content is being shown as a fallback.
If you want to contribute a translation for this page then please click here.
GetPlayerCameraZoom
Description
Retrieves the game camera zoom level for a given player.
Name | Description |
---|---|
playerid | The ID of the player to get the camera zoom level of. |
Returns
The player's camera zoom level (camera, sniper etc.), a float.
Examples
new string[128];
format(string, sizeof(string), "Your camera zoom level: %f", GetPlayerCameraZoom(playerid));
SendClientMessage(playerid, -1, string);
Notes
tip
This retrieves the zoom level of the GAME Camera (including Sniper scope), not the camera WEAPON.
Related Functions
- 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