SetWeather
From SA-MP Wiki
(Difference between revisions)
Revision as of 23:21, 2 February 2014 Smithy (Talk | contribs) ← Previous diff |
Current revision MP2 (Talk | contribs) |
||
Line 15: | Line 15: | ||
} | } | ||
</pawn> | </pawn> | ||
+ | |||
+ | {{Tip|If [[TogglePlayerClock]] is enabled, weather will slowly change over time, instead of changing instantly.}} | ||
{{RelatedFunctions}} | {{RelatedFunctions}} |
Current revision
Description:
Set the world weather for all players.
(weatherid)
weatherid | The weather to set. |
Return Values:
This function does not return any specific values.
if(!strcmp(cmdtext, "/sandstorm", true)) { SetWeather(19); return 1; }
Tip | If TogglePlayerClock is enabled, weather will slowly change over time, instead of changing instantly. |
[edit]
Related Functions
The following functions may be useful, as they are related to this function in one way or another.
- SetPlayerWeather: Set a player's weather.
- SetGravity: Set the global gravity.