GetPlayerCameraZoom

From SA-MP Wiki

Jump to: navigation, search


GetPlayerCameraZoom was added in SA-MP 0.3z This function was added in SA-MP 0.3z and will not work in earlier versions!


Description:

Retrieves the game camera zoom level for a given player.


Image:32px-Ambox_warning_orange.png

Note

This retrieves the zoom level of the GAME camera, not the camera WEAPON.


Parameters:
(playerid)
playeridThe 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.

Personal tools
Navigation
Toolbox
In other languages