SetWeather

From SA-MP Wiki

Jump to: navigation, search


Description:

Set the world weather for all players.


Parameters:
(weatherid)
weatheridThe weather to set.


Return Values:

This function does not return any specific values.


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

Image:Light_bulb_icon.png

If TogglePlayerClock is enabled, weather will slowly change over time, instead of changing instantly.


Related Functions

The following functions may be helpful as they relate to this function in one way or another.

Navigation
In other languages