Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- Sistema Cambio de clima automatico By Badyx
- Fecha 06-08-2012
- Tiempo: 6 minutos
- */
- #include <a_samp>
- new Climas;
- forward Tiempos();
- forward CambiarClima();
- #if defined FILTERSCRIPT
- public OnFilterScriptInit()
- {
- CambiarClima();
- Tiempos();
- return 1;
- }
- #else
- main(){}
- #endif
- public Tiempos()
- {
- SetTimer("CambiarClima",1200000, true);
- return 1;
- }
- public CambiarClima()
- {
- Climas = random(20);
- switch(Climas)
- {
- case 1:
- {
- SetWeather(1);
- SendClientMessageToAll(0xDC092FFF,"[Prevision Meteorologica]: Tiempo soleado, sin nubes!");
- }
- case 2:
- {
- SetWeather(2);
- SendClientMessageToAll(0xDC092FFF,"[Prevision Meteorologica]: Tiempo soleado con cambios significativos!");
- }
- case 3:
- {
- SetWeather(3);
- SendClientMessageToAll(0xDC092FFF,"[Prevision Meteorologica]: Tiempo soleado, buena visibilidad!");
- }
- case 4:
- {
- SetWeather(4);
- SendClientMessageToAll(0xDC092FFF,"[Prevision Meteorologica]: Nublado y soleado en parte!");
- }
- case 5:
- {
- SetWeather(5);
- SendClientMessageToAll(0xDC092FFF,"[Prevision Meteorologica]: Cielo muy limpio, con un clima templado!");
- }
- case 6:
- {
- SetWeather(6);
- SendClientMessageToAll(0xDC092FFF,"[Prevision Meteorologica]: Cielo muy limpio, con un clima templado!");
- }
- case 7:
- {
- SetWeather(7);
- SendClientMessageToAll(0xDC092FFF,"[Prevision Meteorologica]: Tiempo nublado y probabilidad de lluvia!");
- }
- case 8:
- {
- SetWeather(8);
- SendClientMessageToAll(0xDC092FFF,"[Prevision Meteorologica]: Tiempo nublado!");
- }
- case 9:
- {
- SetWeather(9);
- SendClientMessageToAll(0xDC092FFF,"[Prevision Meteorologica]: Tiempo soleado con cambios significativos!");
- }
- case 10:
- {
- SetWeather(10);
- SendClientMessageToAll(0xDC092FFF,"[Prevision Meteorologica]: Tiempo nublado con posible lluvia!");
- }
- case 11:
- {
- SetWeather(11);
- SendClientMessageToAll(0xDC092FFF,"[Prevision Meteorologica]: Tiempo despejado!");
- }
- case 12:
- {
- SetWeather(12);
- SendClientMessageToAll(0xDC092FFF,"[Prevision Meteorologica]: Tiempo despejado!");
- }
- case 13:
- {
- SetWeather(13);
- SendClientMessageToAll(0xDC092FFF,"[Prevision Meteorologica]: Tiempo muy claro y soleado!");
- }
- case 14:
- {
- SetWeather(14);
- SendClientMessageToAll(0xDC092FFF,"[Prevision Meteorologica]: Tiempo muy claro y soleado!");
- }
- case 15:
- {
- SetWeather(15);
- SendClientMessageToAll(0xDC092FFF,"[Prevision Meteorologica]: Tiempo con Posibilidad de lluvias!");
- }
- case 16:
- {
- SetWeather(16);
- SendClientMessageToAll(0xDC092FFF,"[Prevision Meteorologica]: Tiempo con fuertes lluvias y tormentas!");
- }
- case 17:
- {
- SetWeather(17);
- SendClientMessageToAll(0xDC092FFF,"[Prevision Meteorologica]: Temperaturas con un mínimo de 23 y un máximo de 32 grados!");
- }
- case 18:
- {
- SetWeather(18);
- SendClientMessageToAll(0xDC092FFF,"[Prevision Meteorologica]: Tiempo muy claro y soleado!");
- }
- case 19:
- {
- SetWeather(19);
- SendClientMessageToAll(0xDC092FFF,"[Prevision Meteorologica]: Tiempo con posibilidad de lluvia!");
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment