[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


Messages In This Thread
[INC] Weather Simulator 1.1 by vovo4ka - by drV - 23.02.2009, 00:00
Re: [INC] Weather Simulator by vovo4ka - by Danny_Costelo - 23.02.2009, 02:00
Re: [INC] Weather Simulator by vovo4ka - by drV - 23.02.2009, 06:42
Re: [INC] Weather Simulator by vovo4ka - by [AoA]RyDeR - 23.02.2009, 07:42
Re: [INC] Weather Simulator by vovo4ka - by drV - 23.02.2009, 10:48
Re: [INC] Weather Simulator by vovo4ka - by bpeterson - 23.02.2009, 13:44
Re: [INC] Weather Simulator by vovo4ka - by drV - 23.02.2009, 14:21
Re: [INC] Weather Simulator by vovo4ka - by bpeterson - 23.02.2009, 14:33
Re: [INC] Weather Simulator 1.1 by vovo4ka - by drV - 23.02.2009, 16:38

Forum Jump:


Users browsing this thread: 3 Guest(s)