SA-MP Forums Archive
Real world weather help - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Real world weather help (/showthread.php?tid=180220)



Real world weather help - Bloodbutt - 30.09.2010

I want to add realword weather to my script, whats the code to use?


Re: Real world weather help - Seven. - 30.09.2010

pawn Код:
SetWeather(weatherid);



Re: Real world weather help - Stefan_Toretto - 30.09.2010

You can get Weather Ids from here https://sampwiki.blast.hk/wiki/WeatherID
Or here with pictures http://weedarr.wikidot.com/weather


Re: Real world weather help - Bloodbutt - 04.10.2010

thanks but what i ment was if its raining here in ireland that it will be raining on gta, on microsoft flight sim they have it set up, it downloads weather from a website, someone help me out?


Re: Real world weather help - Mauzen - 04.10.2010

MS flight sim is something different than samp
Well, now with the http support it should be possible, a nice idea. You would have to request the current weather on any weather website for a specific location (either submit the location via the url or post, depends on the site)
Then you need to filter the weather out of the html page, this could be quite tricky.
At last, compare the weather to all possible weather strings that the page can show, to find out, what weather it is.


Re: Real world weather help - Gforcez - 04.10.2010

Well, You can use a File to put the weather forecast in it, Maybe you can make something like that, That would be cool