[FilterScript] [RSW] Real Weather in SA-MP [PAWN]
#1

Real SA-MP Weather
R.S.W - Beta 1
What Is It?

Gets, selects and sets the weather of a particular city in the world.
For example, in Los Angeles, if it is sunny, your server will be sunny, very good for RP servers.


How does it work?

The server performs an HTTP request to Yahoo Weather to get the accurate weather for this city, the data are stored in a variable, which will be used later to set the weather of this city on the server.

What I Need?

• Additional include "a_http.inc"

How to Install?
  1. Open & Compile the file RSW.pwn
  2. Copy the file "RSW.amx" to the filterscripts folder.
  3. Place in the server.cfg -> filterscripts line: RSW
  4. Start the server.
  5. [Last]: Enjoy with the Real Weather in SA:MP.



DOWNLOAD
Links Updated at 03.22.2014
.pwn & .amx Files: SolidFiles | .pwn Paste2.org (Pastebin)


DOWNLOAD [PHP]
Links Updated at 09.02.2014
.php & .inc Files: SolidFiles

Credits


ALL FilterScript: Modification & Adaptation: xDarkuzSx
Code Base: The_Scope (TOPIC)
Code of the API: Yahoo Developers
P.D: The PHP code contains some variables to get the real hour but is unfinished, if anyone can finish it and share it, 're welcome.. (:

HOW TO GET THE COUNTRY CODE FROM YAHOO

You can get the country code in this page:
http://www.weather.com/news/tornado-...r-tracker-page
In the search bar, put your country / city name and click it.

after click it, you will get something like this: (in the page url)
http://www.weather.com/weather/today/MXJO0043
The code what you need for the script is: "MXJO0043".
Enjoy.
Reply


Messages In This Thread
[RSW] Real Weather in SA-MP [PAWN] - by xDarkuzSx - 15.06.2013, 02:08
Re: [RSW] Real Weather in SA-MP [PAWN] - by FlamingRedz - 15.06.2013, 02:19
Re: [RSW] Real Weather in SA-MP [PAWN] - by XtremeR - 15.06.2013, 02:49
Re: [RSW] Real Weather in SA-MP [PAWN] - by TheChimpJr - 15.06.2013, 03:20
Re: [RSW] Real Weather in SA-MP [PAWN] - by Matt - 15.06.2013, 03:31
Re: [RSW] Real Weather in SA-MP [PAWN] - by Jizz - 15.06.2013, 03:34
Respuesta: Re: [RSW] Real Weather in SA-MP [PAWN] - by xDarkuzSx - 15.06.2013, 04:02
Respuesta: [RSW] Real Weather in SA-MP [PAWN] - by Parka - 15.06.2013, 05:37
Re: [RSW] Real Weather in SA-MP [PAWN] - by ahmad95 - 15.06.2013, 09:27
Re: [RSW] Real Weather in SA-MP [PAWN] - by Yves - 15.06.2013, 09:40
Re: [RSW] Real Weather in SA-MP [PAWN] - by gogokickup - 16.06.2013, 05:56
Re: [RSW] Real Weather in SA-MP [PAWN] - by Akcent_Voltaj - 21.06.2013, 08:29
Re: [RSW] Real Weather in SA-MP [PAWN] - by [UG]Daniel - 21.06.2013, 09:15
Re: [RSW] Real Weather in SA-MP [PAWN] - by Inverse - 21.06.2013, 09:19
Re: [RSW] Real Weather in SA-MP [PAWN] - by iHaze. - 21.06.2013, 12:52
Re: [RSW] Real Weather in SA-MP [PAWN] - by kN1GhT - 07.07.2013, 13:13
Re: [RSW] Real Weather in SA-MP [PAWN] - by Ragazzo - 08.07.2013, 06:18
Re: [RSW] Real Weather in SA-MP [PAWN] - by Ryan_Bowe - 08.07.2013, 06:37
Re: [RSW] Real Weather in SA-MP [PAWN] - by iTheScripter - 08.07.2013, 15:34
Respuesta: [RSW] Real Weather in SA-MP [PAWN] - by EnzoMetlc - 08.11.2013, 03:42
Respuesta: [RSW] Real Weather in SA-MP [PAWN] - by Scope25 - 29.06.2014, 22:53

Forum Jump:


Users browsing this thread: 5 Guest(s)