Changing weather - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Changing weather (
/showthread.php?tid=279674)
Changing weather -
Urefeu - 28.08.2011
Hello.
I want to know how to change the weather.
I currently SetWeather, but the weather has changed gradually, 2 minutes later.
I've seen on a server that was a weather changed instantly.
Thank you!
Re: Changing weather -
Norck - 28.08.2011
Function SetWeather(id) (
https://sampwiki.blast.hk/wiki/SetWeather) changes a weather instantly, also this is the only one way to change weather. Seems that you have a timer which changes weather after certain amount of time. Anyway, to change weather, simply place
pawn Код:
SetWeather(id); // id = weather id
at the place where you need to change a weather (some command, for example).
You can find a list of weather id's here:
https://sampwiki.blast.hk/wiki/WeatherID