SetPlayerWeather
From SA-MP Wiki
(Difference between revisions)
Revision as of 12:33, 23 July 2013 Smithy (Talk | contribs) ← Previous diff |
Revision as of 21:58, 2 February 2014 Connor Mead (Talk | contribs) Next diff → |
||
Line 27: | Line 27: | ||
[[Category:Scripting Functions]] | [[Category:Scripting Functions]] | ||
+ | |||
+ | [[fr:SetPlayerWeather]] |
Revision as of 21:58, 2 February 2014
Description:
Set a player's weather. If TogglePlayerClock has been used to enable a player's clock, weather changes will interpolate (gradually change), otherwise will change instantly.
(playerid, weather)
playerid | The ID of the player whose weather to set. |
weather | The weather to set. |
Return Values:
This function does not return any specific values.
public OnPlayerCommandText(playerid, cmdtext[]) { if(strcmp(cmdtext, "/storm", true) == 0) { 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.