Advertisement
Guest User

Wettersystem by Scripter4.0

a guest
Jun 9th, 2012
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.22 KB | None | 0 0
  1. // This is a comment
  2. // uncomment the line below if you want to write a filterscript
  3. //#define FILTERSCRIPT
  4.  
  5. #include <a_samp>
  6.  
  7.  
  8. forward wettertimer1();
  9. forward wettertimer2();
  10. forward wettertimer3();
  11. forward wettertimer4();
  12.  
  13.  
  14. #define sunny 30 //Zeit wielange es sonnig sein soll in minuten
  15. #define rainy 8 //Zeit wielange es regnerisch,stürmisch,gewitter sein soll in minuten
  16. #define normal 30 //Zeit wielange es normal sein soll in minuten
  17. #define foggy 9 //Zeit wielange es nebelig sein soll in minuten
  18.  
  19. public OnFilterScriptInit()
  20. {
  21. print("\n--------------------------------------");
  22. print(" Wettersystem by Scripter4.0");
  23. print("--------------------------------------\n");
  24. SetTimer("wettertimer1",sunny*60*1000,false);
  25. return 1;
  26. }
  27.  
  28. public OnFilterScriptExit()
  29. {
  30. return 1;
  31. }
  32.  
  33.  
  34.  
  35. public wettertimer1()
  36. {
  37. SetWeather(11);
  38. SetTimer("wettertimer2",sunny*60*1000,false);
  39. return 1;
  40. }
  41.  
  42. public wettertimer2()
  43. {
  44. SetWeather(8);
  45. SetTimer("wettertimer3",rainy*60*1000,false);
  46. return 1;
  47. }
  48.  
  49. public wettertimer3()
  50. {
  51. SetWeather(10);
  52. SetTimer("wettertimer4",normal*60*1000,false);
  53. return 1;
  54. }
  55.  
  56. public wettertimer4()
  57. {
  58. SetWeather(9);
  59. SetTimer("wettertimer1",foggy*60*1000,false);
  60. return 1;
  61. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement