Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(dialogid == 1)
- {
- if(!response) return SendClientMessage(playerid, COLOR_WHITE, "Add message here");
- if(response == 1)
- {
- switch(listitem)
- {
- 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");
- 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");
- case 2:ShowPlayerDialog(playerid, DIALOG_CARSHOP, DIALOG_STYLE_LIST, "Car Menu", "Custom Car(4$)\nCustom Family Cars(x5)(7$)", "Purches", "Back");
- }
- }
- }
- if(dialogid == DIALOG_VIPSHOP && response)
- {
- new string[128];
- if(!response)
- {
- ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "Donate Menu","VIP Packages\nHouse Items\nCar Items","Choose","Close");
- }
- if(response == 1)
- {
- 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");
- }
- switch(listitem)
- {
- case 0:
- {
- format(string, sizeof(string), "{AA3333}AdmWarning{FFFF00}: Player %s want to buy Bronze VIP from shop", RPName(playerid));
- SendAdminMessage(COLOR_YELLOW, 1, string);
- 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");
- }
- case 1:
- {
- format(string, sizeof(string), "{AA3333}AdmWarning{FFFF00}: Player %s want to buy Silver VIP from shop", RPName(playerid));
- SendAdminMessage(COLOR_YELLOW, 1, string);
- 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");
- }
- case 2:
- {
- format(string, sizeof(string), "{AA3333}AdmWarning{FFFF00}: Player %s want to buy Gold VIP from shop", RPName(playerid));
- SendAdminMessage(COLOR_YELLOW, 1, string);
- 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");
- }
- case 3:
- {
- format(string, sizeof(string), "{AA3333}AdmWarning{FFFF00}: Player %s want to buy Platinum VIP from shop", RPName(playerid));
- SendAdminMessage(COLOR_YELLOW, 1, string);
- 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");
- }
- case 4:
- {
- format(string, sizeof(string), "{AA3333}AdmWarning{FFFF00}: Player %s want to buy Diamond VIP from shop", RPName(playerid));
- SendAdminMessage(COLOR_YELLOW, 1, string);
- 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");
- }
- }
- }
- if(dialogid == DIALOG_HOUSESHOP && response)
- {
- new string[128];
- if(!response)
- {
- ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "Donate Menu","VIP Packages\nHouse Items\nCar Items","Choose","Close");
- }
- if(response == 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");
- }
- switch(listitem)
- {
- case 0:
- {
- format(string, sizeof(string), "{AA3333}AdmWarning{FFFF00}: Player %s want to buy Custom House from shop", RPName(playerid));
- SendAdminMessage(COLOR_YELLOW, 1, string);
- 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");
- }
- case 1:
- {
- format(string, sizeof(string), "{AA3333}AdmWarning{FFFF00}: Player %s want to buy Custom Island from shop", RPName(playerid));
- SendAdminMessage(COLOR_YELLOW, 1, string);
- 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");
- }
- case 2:
- {
- format(string, sizeof(string), "{AA3333}AdmWarning{FFFF00}: Player %s want to buy Custom Interior from shop", RPName(playerid));
- SendAdminMessage(COLOR_YELLOW, 1, string);
- 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");
- }
- case 3:
- {
- format(string, sizeof(string), "{AA3333}AdmWarning{FFFF00}: Player %s want to buy Custom Exterior from shop", RPName(playerid));
- SendAdminMessage(COLOR_YELLOW, 1, string);
- 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");
- }
- case 4:
- {
- format(string, sizeof(string), "{AA3333}AdmWarning{FFFF00}: Player %s want to buy House Move from shop", RPName(playerid));
- SendAdminMessage(COLOR_YELLOW, 1, string);
- 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");
- }
- case 5:
- {
- format(string, sizeof(string), "{AA3333}AdmWarning{FFFF00}: Player %s want to buy Backdoor from shop", RPName(playerid));
- SendAdminMessage(COLOR_YELLOW, 1, string);
- 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");
- }
- case 6:
- {
- format(string, sizeof(string), "{AA3333}AdmWarning{FFFF00}: Player %s want to buy House Gate from shop", RPName(playerid));
- SendAdminMessage(COLOR_YELLOW, 1, string);
- 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");
- }
- }
- }
- if(dialogid == DIALOG_CARSHOP && response)
- {
- new string[128];
- if(!response)
- {
- ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "Donate Menu","VIP Packages\nHouse Items\nCar Items","Choose","Close");
- }
- if(response == 1)
- {
- ShowPlayerDialog(playerid, DIALOG_CARSHOP, DIALOG_STYLE_LIST, "Car Menu", "Custom Car(4$)\nCustom Family Cars(x5)(7$)", "Purches", "Back");
- }
- switch(listitem)
- {
- case 0:
- {
- format(string, sizeof(string), "{AA3333}AdmWarning{FFFF00}: Player %s want to buy Custom Car from shop", RPName(playerid));
- SendAdminMessage(COLOR_YELLOW, 1, string);
- ShowPlayerDialog(playerid, DIALOG_CARSHOP, DIALOG_STYLE_LIST, "Car Menu", "Custom Car(4$)\nCustom Family Cars(x5)(7$)", "Purches", "Back");
- }
- case 1:
- {
- format(string, sizeof(string), "{AA3333}AdmWarning{FFFF00}: Player %s want to buy Custom Family Cars from shop", RPName(playerid));
- SendAdminMessage(COLOR_YELLOW, 1, string);
- ShowPlayerDialog(playerid, DIALOG_CARSHOP, DIALOG_STYLE_LIST, "Car Menu", "Custom Car(4$)\nCustom Family Cars(x5)(7$)", "Purches", "Back");
- }
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment