max. Random
#7

Outside everything, at top of script:

pawn Код:
new WeatherIDs[3] = { 3, 12, 17 };
In the command/function

pawn Код:
if(hour == 6)
{
 SetWeather(WeatherIDs[random(sizeof(WeatherIDs))]);
}
EDIT: I modified the code above a couple of times because I noticed a couple of mistakes, if it doesn't work check you have the latest version..
Reply


Messages In This Thread
max. Random - by Justsmile - 17.05.2009, 20:23
Re: max. Random - by Weirdosport - 17.05.2009, 20:25
Re: max. Random - by Justsmile - 17.05.2009, 20:29
Re: max. Random - by Justsmile - 17.05.2009, 20:35
Re: max. Random - by Weirdosport - 17.05.2009, 20:42
Re: max. Random - by Justsmile - 17.05.2009, 20:49
Re: max. Random - by Weirdosport - 17.05.2009, 20:55
Re: max. Random - by Justsmile - 17.05.2009, 21:00
Re: max. Random - by Weirdosport - 17.05.2009, 21:03
Re: max. Random - by Justsmile - 17.05.2009, 21:08

Forum Jump:


Users browsing this thread: 1 Guest(s)