Guest User

HELP

a guest
Aug 23rd, 2012
217
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.94 KB | None | 0 0
  1. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  2. {
  3. if(dialogid == 1)
  4. {
  5. if(!response) return SendClientMessage(playerid, COLOR_WHITE, "Add message here");
  6. if(response == 1)
  7. {
  8. switch(listitem)
  9. {
  10. case 0:ShowPlayerDialog(playerid, DIALOG_VIPSHOP, DIALOG_STYLE_LIST, "Donate Ranks", "Bronze VIP(2$)\nSilver VIP(4$)\nGold VIP(6$)\nPlatinum VIP(8$)\nDiamond VIP(10$)", "Purches", "Back");
  11. case 1:ShowPlayerDialog(playerid, DIALOG_HOUSESHOP, DIALOG_STYLE_LIST, "House Menu", "Custom House(4$)\nCuston Island(5$)\nCustom Interior(3$)\nCuston Exterior(3$)\nHouse Move(2$)\nBackdoor(1$)\nHouse Gate(2$)", "Purches", "Back");
  12. case 2:ShowPlayerDialog(playerid, DIALOG_CARSHOP, DIALOG_STYLE_LIST, "Car Menu", "Custom Car(4$)\nCustom Family Cars(x5)(7$)", "Purches", "Back");
  13. }
  14. }
  15. }
  16. if(dialogid == DIALOG_VIPSHOP && response)
  17. {
  18. new string[128];
  19. if(!response)
  20. {
  21. ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "Donate Menu","VIP Packages\nHouse Items\nCar Items","Choose","Close");
  22. }
  23. if(response == 1)
  24. {
  25. ShowPlayerDialog(playerid, DIALOG_VIPSHOP, DIALOG_STYLE_LIST, "Donate Ranks", "Bronze VIP(2$)\nSilver VIP(4$)\nGold VIP(6$)\nPlatinum VIP(8$)\nDiamond VIP(10$)", "Purches", "Back");
  26. }
  27. switch(listitem)
  28. {
  29. case 0:
  30. {
  31. format(string, sizeof(string), "{AA3333}AdmWarning{FFFF00}: Player %s want to buy Bronze VIP from shop", RPName(playerid));
  32. SendAdminMessage(COLOR_YELLOW, 1, string);
  33. ShowPlayerDialog(playerid, DIALOG_VIPSHOP, DIALOG_STYLE_LIST, "Donate Ranks", "Bronze VIP(2$)\nSilver VIP(4$)\nGold VIP(6$)\nPlatinum VIP(8$)\nDiamond VIP(10$)", "Purches", "Back");
  34. }
  35. case 1:
  36. {
  37. format(string, sizeof(string), "{AA3333}AdmWarning{FFFF00}: Player %s want to buy Silver VIP from shop", RPName(playerid));
  38. SendAdminMessage(COLOR_YELLOW, 1, string);
  39. ShowPlayerDialog(playerid, DIALOG_VIPSHOP, DIALOG_STYLE_LIST, "Donate Ranks", "Bronze VIP(2$)\nSilver VIP(4$)\nGold VIP(6$)\nPlatinum VIP(8$)\nDiamond VIP(10$)", "Purches", "Back");
  40. }
  41. case 2:
  42. {
  43. format(string, sizeof(string), "{AA3333}AdmWarning{FFFF00}: Player %s want to buy Gold VIP from shop", RPName(playerid));
  44. SendAdminMessage(COLOR_YELLOW, 1, string);
  45. ShowPlayerDialog(playerid, DIALOG_VIPSHOP, DIALOG_STYLE_LIST, "Donate Ranks", "Bronze VIP(2$)\nSilver VIP(4$)\nGold VIP(6$)\nPlatinum VIP(8$)\nDiamond VIP(10$)", "Purches", "Back");
  46. }
  47. case 3:
  48. {
  49. format(string, sizeof(string), "{AA3333}AdmWarning{FFFF00}: Player %s want to buy Platinum VIP from shop", RPName(playerid));
  50. SendAdminMessage(COLOR_YELLOW, 1, string);
  51. ShowPlayerDialog(playerid, DIALOG_VIPSHOP, DIALOG_STYLE_LIST, "Donate Ranks", "Bronze VIP(2$)\nSilver VIP(4$)\nGold VIP(6$)\nPlatinum VIP(8$)\nDiamond VIP(10$)", "Purches", "Back");
  52. }
  53. case 4:
  54. {
  55. format(string, sizeof(string), "{AA3333}AdmWarning{FFFF00}: Player %s want to buy Diamond VIP from shop", RPName(playerid));
  56. SendAdminMessage(COLOR_YELLOW, 1, string);
  57. ShowPlayerDialog(playerid, DIALOG_VIPSHOP, DIALOG_STYLE_LIST, "Donate Ranks", "Bronze VIP(2$)\nSilver VIP(4$)\nGold VIP(6$)\nPlatinum VIP(8$)\nDiamond VIP(10$)", "Purches", "Back");
  58. }
  59. }
  60. }
  61. if(dialogid == DIALOG_HOUSESHOP && response)
  62. {
  63. new string[128];
  64. if(!response)
  65. {
  66. ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "Donate Menu","VIP Packages\nHouse Items\nCar Items","Choose","Close");
  67. }
  68. if(response == 1)
  69. {
  70. ShowPlayerDialog(playerid, DIALOG_HOUSESHOP, DIALOG_STYLE_LIST, "House Menu", "Custom House(4$)\nCuston Island(5$)\nCustom Interior(3$)\nCuston Exterior(3$)\nHouse Move(2$)\nBackdoor(1$)\nHouse Gate(2$)", "Purches", "Back");
  71. }
  72. switch(listitem)
  73. {
  74. case 0:
  75. {
  76. format(string, sizeof(string), "{AA3333}AdmWarning{FFFF00}: Player %s want to buy Custom House from shop", RPName(playerid));
  77. SendAdminMessage(COLOR_YELLOW, 1, string);
  78. ShowPlayerDialog(playerid, DIALOG_HOUSESHOP, DIALOG_STYLE_LIST, "House Menu", "Custom House(4$)\nCuston Island(5$)\nCustom Interior(3$)\nCuston Exterior(3$)\nHouse Move(2$)\nBackdoor(1$)\nHouse Gate(2$)", "Purches", "Back");
  79. }
  80. case 1:
  81. {
  82. format(string, sizeof(string), "{AA3333}AdmWarning{FFFF00}: Player %s want to buy Custom Island from shop", RPName(playerid));
  83. SendAdminMessage(COLOR_YELLOW, 1, string);
  84. ShowPlayerDialog(playerid, DIALOG_HOUSESHOP, DIALOG_STYLE_LIST, "House Menu", "Custom House(4$)\nCuston Island(5$)\nCustom Interior(3$)\nCuston Exterior(3$)\nHouse Move(2$)\nBackdoor(1$)\nHouse Gate(2$)", "Purches", "Back");
  85. }
  86. case 2:
  87. {
  88. format(string, sizeof(string), "{AA3333}AdmWarning{FFFF00}: Player %s want to buy Custom Interior from shop", RPName(playerid));
  89. SendAdminMessage(COLOR_YELLOW, 1, string);
  90. ShowPlayerDialog(playerid, DIALOG_HOUSESHOP, DIALOG_STYLE_LIST, "House Menu", "Custom House(4$)\nCuston Island(5$)\nCustom Interior(3$)\nCuston Exterior(3$)\nHouse Move(2$)\nBackdoor(1$)\nHouse Gate(2$)", "Purches", "Back");
  91. }
  92. case 3:
  93. {
  94. format(string, sizeof(string), "{AA3333}AdmWarning{FFFF00}: Player %s want to buy Custom Exterior from shop", RPName(playerid));
  95. SendAdminMessage(COLOR_YELLOW, 1, string);
  96. ShowPlayerDialog(playerid, DIALOG_HOUSESHOP, DIALOG_STYLE_LIST, "House Menu", "Custom House(4$)\nCuston Island(5$)\nCustom Interior(3$)\nCuston Exterior(3$)\nHouse Move(2$)\nBackdoor(1$)\nHouse Gate(2$)", "Purches", "Back");
  97. }
  98. case 4:
  99. {
  100. format(string, sizeof(string), "{AA3333}AdmWarning{FFFF00}: Player %s want to buy House Move from shop", RPName(playerid));
  101. SendAdminMessage(COLOR_YELLOW, 1, string);
  102. ShowPlayerDialog(playerid, DIALOG_HOUSESHOP, DIALOG_STYLE_LIST, "House Menu", "Custom House(4$)\nCuston Island(5$)\nCustom Interior(3$)\nCuston Exterior(3$)\nHouse Move(2$)\nBackdoor(1$)\nHouse Gate(2$)", "Purches", "Back");
  103. }
  104. case 5:
  105. {
  106. format(string, sizeof(string), "{AA3333}AdmWarning{FFFF00}: Player %s want to buy Backdoor from shop", RPName(playerid));
  107. SendAdminMessage(COLOR_YELLOW, 1, string);
  108. ShowPlayerDialog(playerid, DIALOG_HOUSESHOP, DIALOG_STYLE_LIST, "House Menu", "Custom House(4$)\nCuston Island(5$)\nCustom Interior(3$)\nCuston Exterior(3$)\nHouse Move(2$)\nBackdoor(1$)\nHouse Gate(2$)", "Purches", "Back");
  109. }
  110. case 6:
  111. {
  112. format(string, sizeof(string), "{AA3333}AdmWarning{FFFF00}: Player %s want to buy House Gate from shop", RPName(playerid));
  113. SendAdminMessage(COLOR_YELLOW, 1, string);
  114. ShowPlayerDialog(playerid, DIALOG_HOUSESHOP, DIALOG_STYLE_LIST, "House Menu", "Custom House(4$)\nCuston Island(5$)\nCustom Interior(3$)\nCuston Exterior(3$)\nHouse Move(2$)\nBackdoor(1$)\nHouse Gate(2$)", "Purches", "Back");
  115. }
  116. }
  117. }
  118. if(dialogid == DIALOG_CARSHOP && response)
  119. {
  120. new string[128];
  121. if(!response)
  122. {
  123. ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "Donate Menu","VIP Packages\nHouse Items\nCar Items","Choose","Close");
  124. }
  125. if(response == 1)
  126. {
  127. ShowPlayerDialog(playerid, DIALOG_CARSHOP, DIALOG_STYLE_LIST, "Car Menu", "Custom Car(4$)\nCustom Family Cars(x5)(7$)", "Purches", "Back");
  128. }
  129. switch(listitem)
  130. {
  131. case 0:
  132. {
  133. format(string, sizeof(string), "{AA3333}AdmWarning{FFFF00}: Player %s want to buy Custom Car from shop", RPName(playerid));
  134. SendAdminMessage(COLOR_YELLOW, 1, string);
  135. ShowPlayerDialog(playerid, DIALOG_CARSHOP, DIALOG_STYLE_LIST, "Car Menu", "Custom Car(4$)\nCustom Family Cars(x5)(7$)", "Purches", "Back");
  136. }
  137. case 1:
  138. {
  139. format(string, sizeof(string), "{AA3333}AdmWarning{FFFF00}: Player %s want to buy Custom Family Cars from shop", RPName(playerid));
  140. SendAdminMessage(COLOR_YELLOW, 1, string);
  141. ShowPlayerDialog(playerid, DIALOG_CARSHOP, DIALOG_STYLE_LIST, "Car Menu", "Custom Car(4$)\nCustom Family Cars(x5)(7$)", "Purches", "Back");
  142. }
  143. }
  144. }
  145. return 1;
  146. }
Advertisement
Add Comment
Please, Sign In to add comment