SA-MP Forums Archive
[Include] [INC] Weather Simulator 1.1 by vovo4ka - 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: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+---- Forum: Includes (https://sampforum.blast.hk/forumdisplay.php?fid=83)
+---- Thread: [Include] [INC] Weather Simulator 1.1 by vovo4ka (/showthread.php?tid=66568)



[INC] Weather Simulator 1.1 by vovo4ka - drV - 23.02.2009

[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: 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:


See example.

Screenshots:


Video:

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

http://rutube.ru/tracks/1555241.html...610b356d3949e0


Re: [INC] Weather Simulator by vovo4ka - Danny_Costelo - 23.02.2009

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


Re: [INC] Weather Simulator by vovo4ka - drV - 23.02.2009

Thank u!
I added. See above


Re: [INC] Weather Simulator by vovo4ka - [AoA]RyDeR - 23.02.2009

Haha , THX Really!


Re: [INC] Weather Simulator by vovo4ka - drV - 23.02.2009

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


Re: [INC] Weather Simulator by vovo4ka - bpeterson - 23.02.2009

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


Re: [INC] Weather Simulator by vovo4ka - drV - 23.02.2009

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.


Re: [INC] Weather Simulator by vovo4ka - bpeterson - 23.02.2009

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


Re: [INC] Weather Simulator 1.1 by vovo4ka - drV - 23.02.2009

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