---
title: "GetPlayerWeather | open.mp"
description: "هوای بازیکن رو دریافت می‌کنه."
canonical: https://omp.itsneufox.com/fa/docs/scripting/functions/GetPlayerWeather
language: fa
---

# GetPlayerWeather

هشدار

This function was added in omp v1.1.0.2612 and will not work in earlier versions!

## توضیحات

هوای بازیکن رو دریافت می‌کنه.

| نام | توضیحات |
| --- | --- |
| playerid | ID بازیکنی که می‌خوای هوا رو ازش دریافت کنی. |

## مقادیر برگشتی

هوای بازیکن رو برمی‌گردونه.

## مثال‌ها

```c
SetPlayerWeather(playerid, 8);

printf("Player weather: %d", GetPlayerWeather(playerid));
// The output will be 'Player weather: 8'
```

## توابع مرتبط

-   [SetPlayerWeather](https://omp.itsneufox.com/fa/docs/scripting/functions/SetPlayerWeather): تنظیم هوای بازیکن.
-   [SetWeather](https://omp.itsneufox.com/fa/docs/scripting/functions/SetWeather): تنظیم هوای جهان برای همه بازیکنا.

## منابع مرتبط

-   [Weather IDs](https://omp.itsneufox.com/fa/docs/scripting/resources/weatherid)
