SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts > Includes

Reply
 
Thread Tools Display Modes
Old 23/02/2009, 12:00 AM   #1
drV
Little Clucker
 
Join Date: Nov 2008
Posts: 16
Reputation: 4
Default [INC] Weather Simulator 1.1 by vovo4ka

[INC] Weather Simulator by vovo4ka
version 1.1

This inc changes the weather depending on the time and place for each player separately.
There are 4 type of terrain:
  • forest
  • city
  • desert
  • city+desert (LV)

Clouds are moving in the map causing local rain.

How to use:
In OnGameModeInit paste:
Code:
for (new i=0; i<MAX_CYC; i++) 
	{
	CycloneInit(i);
	}
SetTimer("CycloneProcess",30000,true); // moves cyclones
	
SetWeatherTime(12,00); // default time (!) not an SetWorldTime (!)
	
SetTimer("UpdateWeather",10000,true); // weather updates players
OnPlayerRequestClass:
Code:
PlayerWeatherLock(playerid);
OnPlayerSpawn:
Code:
PlayerWeatherUnLock(playerid);
After any change of time in the script:
Code:
SetWeatherTime(YourTime_H, YourTime_M);
UpdateWeather();
Version 1.1:
  • fixed bug (with the superposition of clouds)
  • new function to disable changing weather player (PlayerWeatherLock(playerid))




See example.

Screenshots:


Video:

http://www.youtube.com/watch?v=TyvbXNyssSU

http://rutube.ru/tracks/1555241.html...610b356d3949e0
drV is offline   Reply With Quote
Old 23/02/2009, 02:00 AM   #2
Danny_Costelo
Huge Clucker
 
Join Date: Nov 2008
Posts: 387
Reputation: 0
Default Re: [INC] Weather Simulator by vovo4ka

thats very good
An example with screenshots or a video would be nice
Danny_Costelo is offline   Reply With Quote
Old 23/02/2009, 06:42 AM   #3
drV
Little Clucker
 
Join Date: Nov 2008
Posts: 16
Reputation: 4
Default Re: [INC] Weather Simulator by vovo4ka

Thank u!
I added. See above
drV is offline   Reply With Quote
Old 23/02/2009, 07:42 AM   #4
[AoA]RyDeR
Little Clucker
 
Join Date: Dec 2008
Posts: 17
Reputation: 0
Default Re: [INC] Weather Simulator by vovo4ka

Haha , THX Really!
[AoA]RyDeR is offline   Reply With Quote
Old 23/02/2009, 10:48 AM   #5
drV
Little Clucker
 
Join Date: Nov 2008
Posts: 16
Reputation: 4
Default Re: [INC] Weather Simulator by vovo4ka

Thank you for feedback!
I have added a new video (see 1st post)
drV is offline   Reply With Quote
Old 23/02/2009, 01:44 PM   #6
bpeterson
Banned
 
Join Date: Dec 2008
Posts: 209
Reputation: 0
Default Re: [INC] Weather Simulator by vovo4ka

OMG! It's totally bugged!
If i add this INC into my GM i have colour bug...
Please fix it!
bpeterson is offline   Reply With Quote
Old 23/02/2009, 02:21 PM   #7
drV
Little Clucker
 
Join Date: Nov 2008
Posts: 16
Reputation: 4
Default Re: [INC] Weather Simulator by vovo4ka

Quote:
Originally Posted by bpeterson
OMG! It's totally bugged!
If i add this INC into my GM i have colour bug...
Please fix it!
Please tell what time you saw colored sky and coordinates of your position.
Perhaps this is happening from 21:00 until 00:00 with a cloud skies.
drV is offline   Reply With Quote
Old 23/02/2009, 02:33 PM   #8
bpeterson
Banned
 
Join Date: Dec 2008
Posts: 209
Reputation: 0
Default Re: [INC] Weather Simulator by vovo4ka

When i connect to the server the weather always changing. The sky is flashing.
bpeterson is offline   Reply With Quote
Old 23/02/2009, 04:38 PM   #9
drV
Little Clucker
 
Join Date: Nov 2008
Posts: 16
Reputation: 4
Default Re: [INC] Weather Simulator 1.1 by vovo4ka

bpeterson, try new version of this.
If the bug again make a screenshot and show me a block of code where you use include.
drV 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
Farming Simulator 2009 Store location? Torran Everything and Nothing 0 26/04/2010 10:51 AM
City Bus Simulator 2010 Demo Torran Everything and Nothing 39 18/02/2010 03:02 AM
City Bus Simulator 2010 Torran Everything and Nothing 3 16/02/2010 12:26 PM
Flight Simulator X supported with Windows 7? HydraX Everything and Nothing 4 31/01/2010 06:09 PM


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


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