25.10.2008, 19:22
Basic Random Weather system
FilterScript Download: http://www.zshare.net/download/50408108c5e2667e/
Code Itself:
Put this at the top of your script, near the other forwards
Timer - (put this ongamemodeinit):
Put this ongamemodeinit if you want the server to start with a random weather
Put this at the bottom of your script
This changes the weather on your server every 10 minutes.
FilterScript Download: http://www.zshare.net/download/50408108c5e2667e/
Code Itself:
Put this at the top of your script, near the other forwards
Код:
forward AutoWeather();
Код:
SetTimer("AutoWeather", 600000, 1);
Код:
AutoWeather();
Код:
public AutoWeather() { new RandonWeather = random(15); SetWeather(RandonWeather); }