SA-MP Forums Archive
[HELP] Weather time - 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)
+--- Thread: [HELP] Weather time (/showthread.php?tid=473219)



[HELP] Weather time - Luca12 - 01.11.2013

Hello I work weather and know how can I make example it's 12:00 and I want then put text Good day that is for I don't know from 07-18 then in that time I want the text good day and from 18:00 do 06:00 it say's good evening if you know what I mean and alo for weather how can I make for example this

current weather is: sunny and it set to sunny weather
the weather in next five minutes is : rainy and again it says current weather is rainny and again like this the weather in next fice minutes is: foggy and again current weather is foggy and etc...


Re: [HELP] Weather time - bensmart469 - 02.11.2013

https://sampwiki.blast.hk/wiki/GetPlayerTime for the first one


Re: [HELP] Weather time - Tropicali - 02.11.2013

https://sampwiki.blast.hk/wiki/SetWorldTime
https://sampwiki.blast.hk/wiki/SetWeather

Those are good starting points, I guess.

Plus, I cant understand you too much, but what you want is basically from 07:00 to 18:00 you want it to say "Good Day" and then from 18:00 to 6:00 it'd say "Good Evening", right? If so, you would also need to do that using textdraws.


Re: [HELP] Weather time - Luca12 - 02.11.2013

Anyone? Thanks


Re: [HELP] Weather time - Luca12 - 03.11.2013

Anyone? Thanks


Re: [HELP] Weather time - Luca12 - 03.11.2013

Anyone?


Re: [HELP] Weather time - iZN - 03.11.2013

You can do like this:

pawn Код:
new hour, minutes;
GetPlayerTime(playerid, hour, minutes);

switch(hour)
{
    case 12: SendClientMessage(playerid, -1, "Good day!");
    case 18: SendClientMessage(playerid, -1, "Good Evening");
}
About the weather, you can try mWeather by Mauzen https://sampwiki.blast.hk/wiki/Mweather