24.06.2012, 17:51
Easy; just do:
There you go, that's making it all good.
pawn Код:
new Weather;
forward WeatherChange();
public OnGameModeInit()
{
Weather = 1;
SetWeather(Weather);
SetTimer("WeatherChange", 30000, 1);//Every 30 seconds
return 1;
}
public WeatherChange()
{
new rand = 0 + random(17);
Weather = rand;
SetWeather(Weather);
return 1;
}
public OnPlayerConnect(playerid)
{
SetPlayerWeather(playerid, Weather);
return 1;
}