Advertisement
Guest User

[FilterScript] nV_time

a guest
Jul 22nd, 2012
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.95 KB | None | 0 0
  1. /*
  2.  
  3. [FilterScript] nV_time
  4.  
  5. BY NENO
  6.  
  7.  
  8. */
  9.  
  10. #include <a_samp>
  11. #include <zcmd>
  12. #define COLOR_GREY 0xAFAFAFAA
  13. #define DIALOG_TIME 25
  14.  
  15. //----------------------------------------------------------------------------//
  16.  
  17. public OnFilterScriptInit()
  18. {
  19. print("\n--------------------------------------");
  20. print(" [FilterScript] nV_time ");
  21. print("--------------------------------------\n");
  22. return 1;
  23. }
  24.  
  25. //----------------------------------------------------------------------------//
  26.  
  27. public OnFilterScriptExit()
  28. {
  29. return 1;
  30. }
  31.  
  32. //----------------------------------------------------------------------------//
  33.  
  34. public OnPlayerConnect(playerid)
  35. {
  36. return 1;
  37. }
  38.  
  39. //----------------------------------------------------------------------------//
  40.  
  41. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  42. {
  43. if(dialogid == DIALOG_TIME)
  44. {
  45. if(response)
  46. {
  47. if(listitem == 0)
  48. {
  49. SetPlayerTime(playerid, 06,00);
  50. SendClientMessage(playerid, COLOR_GREY, "[FilterScript] nV_time >> Promjenuo si vrijeme na jutro!");
  51. }
  52. if(listitem == 1)
  53. {
  54. SetPlayerTime(playerid, 12,00);
  55. SendClientMessage(playerid, COLOR_GREY, "[FilterScript] nV_time >> Promjenuo si vrijeme na podne!");
  56. }
  57. if(listitem == 2)
  58. {
  59. SetPlayerTime(playerid, 18,00);
  60. SendClientMessage(playerid, COLOR_GREY, "[FilterScript] nV_time >> Promjenuo si vrijeme na predvece!");
  61. }
  62. if(listitem == 3)
  63. {
  64. SetPlayerTime(playerid, 20,00);
  65. SendClientMessage(playerid, COLOR_GREY, "[FilterScript] nV_time >> Promjenuo si vrijeme na vece!");
  66. }
  67. if(listitem == 4)
  68. {
  69. SetPlayerTime(playerid, 00,00);
  70. SendClientMessage(playerid, COLOR_GREY, "[FilterScript] nV_time >> Promjenuo si vrijeme na noc!");
  71. }
  72. }
  73. }
  74. return 1;
  75. }
  76. //----------------------------------------------------------------------------//
  77.  
  78. CMD:time(playerid, params[])
  79. {
  80. ShowPlayerDialog(playerid, DIALOG_TIME, DIALOG_STYLE_LIST, "[FilterScript] nV_time", "Jutro\nPodne\nPredvece\nVece\nNoc", "OK","");
  81. return 1;
  82. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement