Random weather
#3

pawn Код:
#include <a_samp>

#define WEATHER_MINUTES 3

forward Weather();

new WeatherTimer;

public OnGameModeInit()
{
    WeatherTimer = SetTimer("Weather",WEATHER_MINUTES*60*1000,1);
    return 1;
}

public OnGameModeExit()
{
    KillTimer(WeatherTimer);
    return 1;
}

public Weather()
{
    return SetWeather(random(22)+1);
}
I counted that there are Weather IDs from 1-22. You edit it as you want.
Reply


Messages In This Thread
Random weather - by jcvag44800 - 11.02.2012, 19:53
AW: Random weather - by Drebin - 11.02.2012, 20:59
Re: Random weather - by [MG]Dimi - 11.02.2012, 21:10

Forum Jump:


Users browsing this thread: 3 Guest(s)