15.06.2013, 02:08
(
Last edited by xDarkuzSx; 02/09/2014 at 06:26 AM.
Reason: Script Updated; PHP Source code is now available + Main Website Demo Restaured
)
Real SA-MP Weather
R.S.W - Beta 1
• What Is It?R.S.W - Beta 1
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?
- Open & Compile the file RSW.pwn
- Copy the file "RSW.amx" to the filterscripts folder.
- Place in the server.cfg -> filterscripts line: RSW
- Start the server.
- [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
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.