Weather System
#7

I was looking for something like this a while ago. The only way i could think of it working is to make my own weather system. EG: SetPlayerWeather(playerid, weather); under OnPlayerEnterDynamicArea.

So something like:

pawn Код:
#include streamer

new PlayerWeather[MAX_PLAYERS];

public OnPlayerEnterDynamicArea(playerid,areaid)
{
    if(areaid == AREA_BONE_COUNTY)
    {
        PlayerWeather[playerid] = 1;
    }
    if(areaid == AREA_LAS_VENTURAS)
    {
        PlayerWeather[playerid] = 2;
    }
    SetPlayerWeather(playerid,PlayerWeather[playerid]);
}

stock GetWeather(playerid)
{
    new weatherstr[15];
    switch(PlayerWeather[playerid])
    {
        case 1: weatherstr = "Sandstorm";
        case 2: weatherstr = "Heatwave";
    }
    return weatherstr;
}
This is untested, but thats the general idea of it(at least i think so). I'll be making a weather streamer soon anyway. Or you can search for Mick88 and check his releases. He's released a streamer for weather previously. I know how to get it working also.
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: 2 Guest(s)