16.04.2014, 00:56
Something like this. You also need to store the weather ID in a variable.
Has not been tested.
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;
}