Advertisement
Guest User

Weather Menu by Jizz

a guest
Nov 22nd, 2013
228
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.28 KB | None | 0 0
  1. //Filterscript by Jizz
  2. //You may edit the scripts(add more weathers)
  3. //You may not edit the credit
  4. //Thank you
  5.  
  6. /*
  7. $$$ $$$ $$$$$$$$$$$ $$$$$$$$$$$
  8. $$$ $$$ $$$ $$$
  9. $$$ $$$ $$$ $$$
  10. $$$ $$$ $$$ $$$
  11. $$$ $$$ $$$ $$$
  12. $$$ $$$ $$$ $$$
  13. $$$$ $$$ $$$ $$$ $$$
  14. $$$$$$$$ $$$ $$$ $$$
  15. $$$$ $$$ $$$$$$$$$$ $$$$$$$$$$$
  16. */
  17.  
  18. #include <a_samp>
  19. #pragma tabsize 0
  20. #define COLOR_WHITE 0xFFFFFFAA
  21.  
  22. public OnFilterScriptInit()
  23. {
  24. print("[FILTERSCRIPT]Weather FS by Jizz has loaded Successfully");
  25. return 1;
  26. }
  27. public OnFilterScriptExit()
  28. {
  29. print("[FILTERSCRIPT]Weather FS by Jizz has unloaded successfully");
  30. return 1;
  31. }
  32.  
  33. #if defined FILTERSCRIPT
  34.  
  35. #endif
  36.  
  37. public OnPlayerCommandText(playerid, cmdtext[])
  38. {
  39. if (strcmp("/weather", cmdtext, true, 10) == 0)
  40. {
  41. if(IsPlayerAdmin(playerid)) return SendClientMessage(playerid,COLOR_WHITE, "You are not a RCON Admin.");
  42. ShowPlayerDialog(playerid, 111, DIALOG_STYLE_LIST, "{0CD6E1} Weather Menu by Jizz","Sunny\nStormy\nAfternoon\nNight\nCloudy\nSandStorm\nBlueSky\n{BEE10C} By NTON","Ok","Exit");
  43. return 1;
  44. }
  45. return 0;
  46. }
  47.  
  48. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  49. {
  50. if(response)
  51. {
  52. switch(dialogid)
  53. {
  54. case 111:
  55. {
  56. switch(listitem)
  57. {
  58. case 0:
  59. {
  60. SetPlayerWeather(playerid, 1);//Sunny
  61. }
  62. case 1:
  63. {
  64. SetPlayerWeather(playerid, 15);//Stormy
  65. }
  66. case 2:
  67. {
  68. SetPlayerWeather(playerid, 26);//Afternoon
  69. }
  70. case 3:
  71. {
  72. SetPlayerWeather(playerid, 31);//Night
  73. }
  74. case 4:
  75. {
  76. SetPlayerWeather(playerid, 9);//Cloudy
  77. }
  78. case 5:
  79. {
  80. SetPlayerWeather(playerid, 19);//SandStorm
  81. }
  82. case 6:
  83. {
  84. SetPlayerWeather(playerid, 29);//BlueSky
  85. }
  86. }
  87. }
  88. }
  89. }
  90. return 1;
  91. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement