16.04.2014, 02:13
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:
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.
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;
}