SetPlayerWeather
Description:
Function SetPlayerWeather set a player's weather.
If TogglePlayerClock is enabled, weather will slowly change over time, instead of changing instantly. |
Parameters:
(playerid, weather)
int | playerid | The ID of the player whose weather to set. |
int | weather | The weather to set. |
Return Values:
- 1: The function was executed successfully.
- 0: The function failed to execute. This means the player specified does not exist.
Examples:
public OnPlayerCommandText(playerid, cmdtext[]) { if(!strcmp(cmdtext, "/storm", true)) { SetPlayerWeather(playerid, 8); return 1; } return 0; }
Related Functions
The following functions may be useful, as they are related to this function in one way or another.
- SetWeather: Set the global weather.
- SetGravity: Set the global gravity.