---
title: "SetWeather | open.mp"
description: "Itakda ang lagay ng panahon sa mundo para sa lahat ng manlalaro."
canonical: https://omp.itsneufox.com/fil/docs/scripting/functions/SetWeather
language: fil
---

# SetWeather

## Description

Itakda ang lagay ng panahon sa mundo para sa lahat ng manlalaro.

| Name | Description |
| --- | --- |
| weatherid | Ang [weather](https://omp.itsneufox.com/fil/docs/scripting/resources/weatherid) na itatakda. |

## Returns

Ang function na ito ay hindi nagbabalik ng anumang value.

## Examples

```c
if (!strcmp(cmdtext, "/sandstorm", true))
{
    SetWeather(19);
    return 1;
}
```

## Notes

note

Kung pinagana ang TogglePlayerClock, dahan-dahang magbabago ang panahon sa paglipas ng panahon, sa halip na agad na magbago. Mayroon lamang valid na 21 weather ID sa laro (0 - 20), gayunpaman ang laro ay walang anumang anyo ng range check.

## Related Functions

-   [SetPlayerWeather](https://omp.itsneufox.com/fil/docs/scripting/functions/SetPlayerWeather): Magtakda ng panahon ng manlalaro.
-   [SetGravity](https://omp.itsneufox.com/fil/docs/scripting/functions/SetGravity): Itakda ang global gravity.
