Advertisement
Guest User

GtaSkilled_

a guest
Jan 31st, 2009
782
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.93 KB | None | 0 0
  1. #include <a_samp>
  2.  
  3. #define COLOR_ORANGERED 0xFF4500AA
  4.  
  5. forward WeatherTimer();
  6. forward RandomWeather();
  7.  
  8. enum weather_info
  9. {
  10. wt_id,
  11. wt_text[255]
  12. };
  13.  
  14. new gRandomWeatherIDs[][weather_info] =
  15. {
  16. {0,"Blue Sky"},
  17. {1,"Blue Sky"},
  18. {2,"Blue Sky"},
  19. {3,"Blue Sky"},
  20. {4,"Blue Sky"},
  21. {5,"Blue Sky"},
  22. {6,"Blue Sky"},
  23. {7,"Blue Sky"},
  24. {08,"Stormy"},
  25. {09,"Cloudy and Foggy"},
  26. {10,"Clear Blue Sky"},
  27. {11,"Heatwave"},
  28. {17,"Heatwave"},
  29. {18,"Heatwave"},
  30. {12,"Dull, Colourless"},
  31. {13,"Dull, Colourless"},
  32. {14,"Dull, Colourless"},
  33. {15,"Dull, Colourless"},
  34. {16,"Dull, Cloudy, Rainy"},
  35. {19,"Sandstorm"},
  36. {20,"Foggy, Greenish"},
  37. {21,"Very Dark, Gradiented Skyline, Purple"},
  38. {22,"Very Dark, Gradiented Skyline, Purple"},
  39. {23,"Pale Orange"},
  40. {24,"Pale Orange"},
  41. {25,"Pale Orange"},
  42. {26,"Pale Orange"},
  43. {27,"Fresh Blue"},
  44. {28,"Fresh Blue"},
  45. {29,"Fresh Blue"},
  46. {30,"Dark, Cloudy, Teal"},
  47. {31,"Dark, Cloudy, Teal"},
  48. {32,"Dark, Cloudy, Teal"},
  49. {33,"Dark, Cloudy, Brown"},
  50. {34,"Blue/Purple, Regular"},
  51. {35,"Dull Brown"},
  52. {36,"Bright, Foggy, Orange"},
  53. {37,"Bright, Foggy, Orange"},
  54. {38,"Bright, Foggy, Orange"},
  55. {39,"Very Bright"},
  56. {40,"Blue/Purple, Cloudy"},
  57. {41,"Blue/Purple, Cloudy"},
  58. {42,"Blue/Purple, Cloudy"},
  59. {43,"Toxic Clouds"},
  60. {44,"Black/White Sky"},
  61. {700,"Stormy with Pink Sky and Crystal Water"},
  62. {150,"Darkest Weather Ever"}
  63. };
  64.  
  65. public OnFilterScriptInit()
  66. {
  67. print("Random Weather");
  68. print("GtaSkilled_ Industries ");
  69. print("2009");
  70. SetTimer("RandomWeather", 300000, 1);
  71. return 1;
  72. }
  73.  
  74. public RandomWeather()
  75. {
  76. new rand = random(sizeof(gRandomWeatherIDs));
  77. new strout[256];
  78. format(strout, sizeof(strout), "Weather changed to %s", gRandomWeatherIDs[rand][wt_text]);
  79. SetWeather(gRandomWeatherIDs[rand][wt_id]);
  80. SendClientMessageToAll(COLOR_ORANGERED,strout);
  81. print(strout);
  82. }
  83.  
  84. public OnFilterScriptExit()
  85. {
  86. return 1;
  87. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement