Skip to content

GetPlayerRain

The rain a player’s game shows now.

The world’s rain, capped by their own (SetPlayerRain) or their areas’ (SetAreaRain).

GetPlayerRain(pid)
Parameter Type
pid number the player

number - 0 .. 1; nil when the player is not connected

if GetPlayerRain(pid) > 0.5 then SendClientMessage(pid, COLOR_SERVER, "Find a roof.") end

SetPlayerRain · GetRain · the The map’s areas group of the index