SetPlayerWeather

From SA-MP Wiki

Jump to: navigation, search

SetPlayerWeather


Set the weather for a given player to a given WeatherID. If TogglePlayerClock has been used for a player weather changes will interpolate instead of instantly changing.


Parameters:
(playerid, weather)
playeridID of the player
weatherWeatherID to set


This function does not return a specific value.
Returns


public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp(cmdtext, "/drugs", true) == 0)
    {
        SetPlayerWeather(playerid, -66);
        return 1;
    }
    return 0;
}

Related Functions

The following functions might be useful as well, as they're related to this function in one way or another.

Personal tools