[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
#2

Wow Very Nice, Rep+
Reply
#3

Great idea! it would be even better if you uploaded some pics, anyways +3 reps.
Reply
#4

Not bad.
Reply
#5

that's pretty cool
Reply
#6

pretty awesome

And also add Real Time in SAMP
Reply
#7

Quote:
Originally Posted by Jizz
View Post
pretty awesome

And also add Real Time in SAMP
yea, I try add this idea in the next release.
p.d: thanks all
Reply
#8

nice!
Reply
#9

Very Nice ! +rep
Reply
#10

i hope this is good i will be using it awsome work mate.
Reply
#11

Nice work
May use it
Reply
#12

i got it compiled when I started server I got
Quote:

I Can't Get Real Weather, ERROR CODE: 6 in samp log

Reply
#13

Fix the download link please
Otherwise, it is nice (:
Reply
#14

Excellent idea! I would love to see this get implemented in roleplay servers.
Reply
#15

Pretty awesome.
Reply
#16

Really creative and nice work mate!!
Good going
Reply
#17

Please reupload the file
Reply
#18

Nevermind, found out that the Download Files don't work.
Reply
#19

nice work
Reply
#20

Wooooaaaahhh! Excellent!!!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)