[Include] [INC] Weather Simulator 1.1 by vovo4ka
#1

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

thats very good
An example with screenshots or a video would be nice
Reply
#3

Thank u!
I added. See above
Reply
#4

Haha , THX Really!
Reply
#5

Thank you for feedback!
I have added a new video (see 1st post)
Reply
#6

OMG! It's totally bugged!
If i add this INC into my GM i have colour bug...
Please fix it!
Reply
#7

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.
Reply
#8

When i connect to the server the weather always changing. The sky is flashing.
Reply
#9

bpeterson, try new version of this.
If the bug again make a screenshot and show me a block of code where you use include.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)