Advertisement
Guest User

[FS]Vremenska Prognoza

a guest
May 29th, 2013
685
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.97 KB | None | 0 0
  1. #include <a_samp>
  2. forward Vrijeme();
  3.  
  4. #define FILTERSCRIPT
  5. #define COLOR_GREEN 0x33AA33AA
  6. #define COLOR_YELLOW 0xFFFF00AA
  7.  
  8. public OnFilterScriptInit()
  9. {
  10. print("\n--------------------------------------");
  11. print("Vremenska Prognoza");
  12. print("--------------------------------------\n");
  13.  
  14. SetTimer("Vrijeme", 13, 1);
  15. return 1;
  16. }
  17.  
  18. public OnFilterScriptExit()
  19. {
  20. return 1;
  21. }
  22.  
  23. public Vrijeme() {
  24. new rnd = random(108000);
  25. switch(rnd)
  26. {
  27. case 0:
  28. {
  29. SendClientMessageToAll(COLOR_GREEN,"{6EF83C}Vesti | Sledi: Vremenska prognoza.");
  30. SendClientMessageToAll(COLOR_YELLOW,"{6EF83C}Vesti |{FFFFFF} Dragi slusaoci, vreme ocekivano za narednih pola sata je:Suncano");
  31. SetWeather(1);
  32. }
  33. case 1:
  34. { SendClientMessageToAll(COLOR_GREEN,"{6EF83C}Vesti | Sledi: Vremenska prognoza.");
  35. SendClientMessageToAll(COLOR_GREEN,"{6EF83C}Vesti | {FFFFFF}Dragi slusaoci, vreme ocekivano za narednih pola sata je:Oblacno i Tmurno.");
  36. SetWeather(16);
  37. }
  38. case 2:
  39. {
  40. SendClientMessageToAll(COLOR_GREEN,"{6EF83C}Vesti | Sledi: Vremenska prognoza.");
  41. SendClientMessageToAll(COLOR_YELLOW,"{6EF83C}Vesti |{FFFFFF} Dragi slusaoci, vreme ocekivano za narednih pola sata je:Kisovito");
  42. SetWeather(8);
  43.  
  44. }
  45. case 3:
  46. {
  47. SendClientMessageToAll(COLOR_GREEN,"{6EF83C}Vesti | Sledi: Vremenska prognoza.");
  48. SendClientMessageToAll(COLOR_GREEN,"{6EF83C}Vesti |{FFFFFF} Dragi slusaoci, vreme ocekivano za narednih pola sata je:Maglovito.");
  49. SetWeather(9);
  50.  
  51. }
  52. case 4:
  53. {
  54. SendClientMessageToAll(COLOR_GREEN,"{6EF83C}Vesti | Sledi: Vremenska prognoza.");
  55. SendClientMessageToAll(COLOR_GREEN,"{6EF83C}Vesti |{FFFFFF} Dragi slusaoci, vreme ocekivano za narednih pola sata je:Oblacno bez Omorina.");
  56. SetWeather(30);
  57. }
  58. }
  59. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement