Badyx

Untitled

Aug 4th, 2012
475
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.71 KB | None | 0 0
  1. /*
  2. Sistema Cambio de clima automatico By Badyx
  3.  
  4. Fecha 06-08-2012
  5.  
  6. Tiempo: 6 minutos
  7.  
  8. */
  9. #include <a_samp>
  10.  
  11. new Climas;
  12.  
  13. forward Tiempos();
  14. forward CambiarClima();
  15.  
  16. #if defined FILTERSCRIPT
  17.  
  18. public OnFilterScriptInit()
  19. {
  20. CambiarClima();
  21. Tiempos();
  22. return 1;
  23. }
  24. #else
  25. main(){}
  26. #endif
  27.  
  28. public Tiempos()
  29. {
  30. SetTimer("CambiarClima",1200000, true);
  31. return 1;
  32. }
  33.  
  34. public CambiarClima()
  35. {
  36. Climas = random(20);
  37. switch(Climas)
  38. {
  39. case 1:
  40. {
  41. SetWeather(1);
  42. SendClientMessageToAll(0xDC092FFF,"[Prevision Meteorologica]: Tiempo soleado, sin nubes!");
  43. }
  44. case 2:
  45. {
  46. SetWeather(2);
  47. SendClientMessageToAll(0xDC092FFF,"[Prevision Meteorologica]: Tiempo soleado con cambios significativos!");
  48. }
  49. case 3:
  50. {
  51. SetWeather(3);
  52. SendClientMessageToAll(0xDC092FFF,"[Prevision Meteorologica]: Tiempo soleado, buena visibilidad!");
  53. }
  54. case 4:
  55. {
  56. SetWeather(4);
  57. SendClientMessageToAll(0xDC092FFF,"[Prevision Meteorologica]: Nublado y soleado en parte!");
  58. }
  59. case 5:
  60. {
  61. SetWeather(5);
  62. SendClientMessageToAll(0xDC092FFF,"[Prevision Meteorologica]: Cielo muy limpio, con un clima templado!");
  63. }
  64. case 6:
  65. {
  66. SetWeather(6);
  67. SendClientMessageToAll(0xDC092FFF,"[Prevision Meteorologica]: Cielo muy limpio, con un clima templado!");
  68. }
  69. case 7:
  70. {
  71. SetWeather(7);
  72. SendClientMessageToAll(0xDC092FFF,"[Prevision Meteorologica]: Tiempo nublado y probabilidad de lluvia!");
  73. }
  74. case 8:
  75. {
  76. SetWeather(8);
  77. SendClientMessageToAll(0xDC092FFF,"[Prevision Meteorologica]: Tiempo nublado!");
  78. }
  79. case 9:
  80. {
  81. SetWeather(9);
  82. SendClientMessageToAll(0xDC092FFF,"[Prevision Meteorologica]: Tiempo soleado con cambios significativos!");
  83. }
  84. case 10:
  85. {
  86. SetWeather(10);
  87. SendClientMessageToAll(0xDC092FFF,"[Prevision Meteorologica]: Tiempo nublado con posible lluvia!");
  88. }
  89. case 11:
  90. {
  91. SetWeather(11);
  92. SendClientMessageToAll(0xDC092FFF,"[Prevision Meteorologica]: Tiempo despejado!");
  93. }
  94. case 12:
  95. {
  96. SetWeather(12);
  97. SendClientMessageToAll(0xDC092FFF,"[Prevision Meteorologica]: Tiempo despejado!");
  98. }
  99. case 13:
  100. {
  101. SetWeather(13);
  102. SendClientMessageToAll(0xDC092FFF,"[Prevision Meteorologica]: Tiempo muy claro y soleado!");
  103. }
  104. case 14:
  105. {
  106. SetWeather(14);
  107. SendClientMessageToAll(0xDC092FFF,"[Prevision Meteorologica]: Tiempo muy claro y soleado!");
  108. }
  109. case 15:
  110. {
  111. SetWeather(15);
  112. SendClientMessageToAll(0xDC092FFF,"[Prevision Meteorologica]: Tiempo con Posibilidad de lluvias!");
  113. }
  114. case 16:
  115. {
  116. SetWeather(16);
  117. SendClientMessageToAll(0xDC092FFF,"[Prevision Meteorologica]: Tiempo con fuertes lluvias y tormentas!");
  118. }
  119. case 17:
  120. {
  121. SetWeather(17);
  122. SendClientMessageToAll(0xDC092FFF,"[Prevision Meteorologica]: Temperaturas con un mínimo de 23 y un máximo de 32 grados!");
  123. }
  124. case 18:
  125. {
  126. SetWeather(18);
  127. SendClientMessageToAll(0xDC092FFF,"[Prevision Meteorologica]: Tiempo muy claro y soleado!");
  128. }
  129. case 19:
  130. {
  131. SetWeather(19);
  132. SendClientMessageToAll(0xDC092FFF,"[Prevision Meteorologica]: Tiempo con posibilidad de lluvia!");
  133. }
  134. }
  135. return 1;
  136. }
Advertisement
Add Comment
Please, Sign In to add comment