---
title: "GetPlayerCameraZoom | open.mp"
description: "Retrieves the game camera zoom level for a given player."
canonical: https://omp.itsneufox.com/th/docs/scripting/functions/GetPlayerCameraZoom
language: th
---

# GetPlayerCameraZoom

## คำอธิบาย

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. |

## ส่งคืน

The player's camera zoom level (camera, sniper etc.), a float.

## ตัวอย่าง

```c
new szString[144];
format(szString, sizeof(szString), "Your camera zoom level: %f", GetPlayerCameraZoom(playerid));
SendClientMessage(playerid, -1, szString);
```

## บันทึก

หมายเหตุ

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

## ฟังก์ชั่นที่เกี่ยวข้องกัน

-   [GetPlayerCameraAspectRatio](https://omp.itsneufox.com/th/docs/scripting/functions/GetPlayerCameraAspectRatio): Get the aspect ratio of a player's camera.
-   [GetPlayerCameraPos](https://omp.itsneufox.com/th/docs/scripting/functions/GetPlayerCameraPos): Find out where the player's camera is.
-   [GetPlayerCameraFrontVector](https://omp.itsneufox.com/th/docs/scripting/functions/GetPlayerCameraFrontVector): Get the player's camera front vector
