SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 12/09/2019, 01:24 PM   #1
brianrestup
Little Clucker
 
Join Date: Sep 2019
Posts: 2
Reputation: 0
Question Real Time Help

Hi Guys, how to make a real time weather with local zone?
brianrestup is offline   Reply With Quote
Old 12/09/2019, 02:15 PM   #2
Mugala
High-roller
 
Mugala's Avatar
 
Join Date: Nov 2012
Location: Georgia, Tbilisi
Posts: 1,064
Reputation: 50
Default Re: Real Time Help

Hello, you gonna need a_http.inc (SA:MP default include) and API from a weather broadcasting site which displays your local zone weather too.
than, add a timer in a gamemode (for example, 20 minute timer) and make a HTTP request, than when you get that request back, match given result to GTA:SA's weathers, than use SetWeather function and thats all.
__________________
Coding in 8 languages including Pawn, C#, C++ and SQL.
Available for hiring.

If you have a coding question or need an assistance in a code, just PM me.
If you want me to create something for you, here is a Discord Mugala#5651

Currently helping Community members in a coding.
Mugala is offline   Reply With Quote
Old 12/09/2019, 09:17 PM   #3
Vizi10
Big Clucker
 
Join Date: May 2017
Location: Iran
Posts: 155
Reputation: 1
Default Re: Real Time Help

https://forum.sa-mp.com/showthread.php?t=544733
Vizi10 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Server Time = Real Time TahaMhr Scripting Help 9 30/12/2017 10:16 PM
[Pedido] Real Time MoonRey Português/Portuguese 4 06/08/2013 02:21 AM
[FilterScript] [FS] Homer's REAL Clock - NEW VERSION!!! - Real Time + Date! Homerman Filterscripts 36 28/02/2010 01:32 AM
[HELP]Real Time and Real Weather djejsy Help Archive 0 21/12/2009 02:51 PM
In game time not match real time speedy199 Help Archive 3 01/04/2009 10:41 AM


All times are GMT. The time now is 08:07 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.