NightHell

Auto Weather System

Jan 16th, 2016
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.52 KB | None | 0 0
  1. #include <a_samp>
  2. #include <core>
  3. #include <float>
  4.  
  5.  
  6. public OnGameModeInit()
  7. {
  8. SetTimer("ElegyWeather", 60000, true);
  9. return 1;
  10. }
  11.  
  12. public ElegyWeather()
  13. {
  14. new var0 = random(49);
  15. switch(var0) {
  16. case 0:
  17. SetWeather(1);
  18. case 1:
  19. SetWeather(2);
  20. case 2:
  21. SetWeather(3);
  22. case 3:
  23. SetWeather(4);
  24. case 4:
  25. SetWeather(5);
  26. case 5:
  27. SetWeather(6);
  28. case 6:
  29. SetWeather(7);
  30. case 7:
  31. SetWeather(8);
  32. case 8:
  33. SetWeather(9);
  34. case 9:
  35. SetWeather(10);
  36. case 10:
  37. SetWeather(11);
  38. case 11:
  39. SetWeather(12);
  40. case 12:
  41. SetWeather(13);
  42. case 13:
  43. SetWeather(14);
  44. case 14:
  45. SetWeather(15);
  46. case 15:
  47. SetWeather(16);
  48. case 16:
  49. SetWeather(17);
  50. case 17:
  51. SetWeather(18);
  52. case 18:
  53. SetWeather(19);
  54. case 19:
  55. SetWeather(20);
  56. case 20:
  57. SetWeather(21);
  58. case 21:
  59. SetWeather(22);
  60. case 22:
  61. SetWeather(23);
  62. case 23:
  63. SetWeather(24);
  64. case 24:
  65. SetWeather(25);
  66. case 25:
  67. SetWeather(26);
  68. case 26:
  69. SetWeather(27);
  70. case 27:
  71. SetWeather(28);
  72. case 28:
  73. SetWeather(29);
  74. case 29:
  75. SetWeather(30);
  76. case 30:
  77. SetWeather(31);
  78. case 31:
  79. SetWeather(32);
  80. case 32:
  81. SetWeather(33);
  82. case 33:
  83. SetWeather(34);
  84. case 34:
  85. SetWeather(35);
  86. case 35:
  87. SetWeather(36);
  88. case 36:
  89. SetWeather(37);
  90. case 37:
  91. SetWeather(38);
  92. case 38:
  93. SetWeather(39);
  94. case 39:
  95. SetWeather(40);
  96. case 40:
  97. SetWeather(41);
  98. case 41:
  99. SetWeather(42);
  100. case 42:
  101. SetWeather(43);
  102. case 43:
  103. SetWeather(44);
  104. case 44:
  105. SetWeather(45);
  106. case 45:
  107. SetWeather(46);
  108. case 46:
  109. SetWeather(47);
  110. case 47:
  111. SetWeather(48);
  112. case 48:
  113. SetWeather(49);
  114. case 49:
  115. SetWeather(50);
  116. }
  117. return 0;
  118. }
Advertisement
Add Comment
Please, Sign In to add comment