SetPlayerWeather
From SA-MP Wiki
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.
(playerid, weather)
| playerid | ID of the player |
| weather | WeatherID 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.
- SetWeather: Set the global weather.
- SetGravity: Set the global gravity.
