Weather
#10

Quote:
Originally Posted by JJB562
Посмотреть сообщение
Try using this:

Under OnGameModeInIt
pawn Код:
SetTimer("Weather", 5000, true);
This will create a timer, so the weather you want will be set every 5 seconds.

Anywhere In Your Script:
pawn Код:
forward Weather();
public Weather()
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        SetPlayerWeather(i, 8);
    }
    return 1;
}
This will make it so every player will get the same weather, every time the timer is called.
Why do you have to loop? Just do SetWeather and it's fine
Reply


Messages In This Thread
Weather - by AstonDA-G - 01.04.2012, 21:47
Re: Weather - by TzAkS. - 01.04.2012, 23:56
Re: Weather - by Tanush123 - 02.04.2012, 01:56
Re: Weather - by MP2 - 02.04.2012, 03:13
Re: Weather - by [ABK]Antonio - 02.04.2012, 03:17
Re: Weather - by Reklez - 02.04.2012, 03:18
Re: Weather - by AstonDA-G - 02.04.2012, 12:48
Re: Weather - by Tanush123 - 02.04.2012, 20:36
Re: Weather - by JJB562 - 02.04.2012, 23:46
Re: Weather - by Tanush123 - 03.04.2012, 23:37

Forum Jump:


Users browsing this thread: 2 Guest(s)