Weather System
#4

Something like this. You also need to store the weather ID in a variable.

Has not been tested.

pawn Код:
// Top of your script:
new weather;

// Under any callback (you need to store the weather in a variable so we can call it later):
weather = 1;
SetWeather(1);

// Stock (I got the descriptions from wiki.sa-mp.com/wiki/WeatherID)
stock GetWeather()
{
    if(weather == 0)
    {
        SendClientMessageToAll(playerid, -1, "The weather is extra sunny!");
    }

    else if(weather == 1)
    {
        SendClientMessageToAll(playerid, -1, "The weather is sunny!!");
    }

    else if(weather == 2)
    {
        SendClientMessageToAll(playerid, -1, "The weather is extra sunny and smog!");
    }

    // etc etc

    return 1;
}
Reply


Messages In This Thread
Weather System - by KDark - 15.04.2014, 01:30
Re: Weather System - by Mattakil - 15.04.2014, 01:36
Re: Weather System - by KDark - 16.04.2014, 00:49
Re: Weather System - by Dignity - 16.04.2014, 00:56
Re: Weather System - by Baltazar - 16.04.2014, 01:54
Re: Weather System - by Dignity - 16.04.2014, 02:03
Re: Weather System - by DobbysGamertag - 16.04.2014, 02:13
Re: Weather System - by KDark - 16.04.2014, 16:24

Forum Jump:


Users browsing this thread: 1 Guest(s)