Question about SetWeather
#2

Easy; just do:

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;
}
There you go, that's making it all good.
Reply


Messages In This Thread
Question about SetWeather - by Dodo9655 - 24.06.2012, 17:36
Re: Question about SetWeather - by iGetty - 24.06.2012, 17:51
Re: Question about SetWeather - by Dodo9655 - 24.06.2012, 19:02
Re: Question about SetWeather - by Grand_Micha - 24.06.2012, 19:15

Forum Jump:


Users browsing this thread: 1 Guest(s)