GetPlayerRain
The rain a player’s game shows now.
The world’s rain, capped by their own (SetPlayerRain) or their areas’ (SetAreaRain).
Syntax
Section titled “Syntax”GetPlayerRain(pid)| Parameter | Type | |
|---|---|---|
pid |
number | the player |
Returns
Section titled “Returns”number - 0 .. 1; nil when the player is not connected
Example
Section titled “Example”if GetPlayerRain(pid) > 0.5 then SendClientMessage(pid, COLOR_SERVER, "Find a roof.") endSee also
Section titled “See also”SetPlayerRain · GetRain · the The map’s areas group of the index
