SetPlayerWeather

From SA-MP Wiki

(Difference between revisions)
Jump to: navigation, search
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.


Parameters:
(playerid, weather)
playeridThe ID of the player whose weather to set.
weatherThe 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.

In other languages