iPLEOMAX

weather

Feb 13th, 2012
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 1.26 KB | None | 0 0
  1. new
  2.     WeatherNews[][][] =
  3. {
  4.     {"Sunny",               "Good to visit the beach"},
  5.     {"Sunny",               "Perfect to swim"},
  6.     {"Heatwave",            "Perfect to stay at home"},
  7.     {"Sunny",               "Perfect to Drive"},
  8.     {"Foggy with Heat",     "land at your nearest airport"},
  9.     {"Heat Wave",           "do not use much clothes"},
  10.     {"Heat Wave",           "do not use much clothes"},
  11.     {"Cloudy",              "watch out for rain"},
  12.     {"Heavy Rain",          "You better get to the Evac Center"},
  13.     {"Foggy",               "land at your nearest airport"},
  14.     {"Sunny",               "But watch out for rain"},
  15.     {"Sunny",               "Perfect to ride a bicycle"},
  16.     {"Cloudy",              "do not leave without your umbrella"},
  17.     {"Sunny",               "perfect to fly"},
  18.     {"Sunny",               "Perfect to walk"},
  19.     {"Cloudy",              "Watch out"},
  20.     {"Rain",                "get your umbrella"},
  21.     {"Sunny with some heat","do not take many clothes"},
  22.     {"Sand Storm",          "Do not drive or fly"},
  23.     {"Heavy Clouds",        "Be careful and take your umbrella"}
  24.     //And you can continue adding here ,{"Weathername", "Info"}
  25. };
  26.    
  27. forward ChangeWeather();
  28. public ChangeWeather()
  29. {
  30.     new news[128], R = random(sizeof WeatherNews);
  31.     format(news, sizeof news, "[WEATHER NEWS] It's gonna be %s now, %s!", WeatherNews[R][0], WeatherNews[R][1]);
  32.     SendClientMessageToAll(COLOR_SEA, news);
  33.     SetWeather(R);
  34.     return 1;
  35. }
Advertisement
Add Comment
Please, Sign In to add comment