Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define FILTERSCRIPT
- #include <a_samp>
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" Blank Filterscript by your name here");
- print("--------------------------------------\n");
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if (strcmp("/restaurant", cmdtext, true, 10) == 0)
- {
- ShowPlayerDialog(playerid,5623,DIALOG_STYLE_LIST,"main-menu","entree\nmain course\ndessert","select","exit");
- SetPVarString(playerid,"predish","nothing");
- SetPVarString(playerid,"maindish","nothing");
- SetPVarString(playerid,"dessert","nothing");
- return 1;
- }
- return 0;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- switch(response)
- {
- case true:
- {
- switch(dialogid)
- {
- case 5623:
- {
- switch(listitem)
- {
- case 0:
- {
- ShowPlayerDialog(playerid,5624,DIALOG_STYLE_LIST,"entree","crackers with salmon\nfried shrimps\nchicken soup","select","back");
- }
- case 1:
- {
- ShowPlayerDialog(playerid,5625,DIALOG_STYLE_LIST,"main course","fried spinach balls with a oyster garniture\nlobster with garniture of potatoes and limon juice\nnoodles with vegetables and blocks of ham","select","back");
- }
- case 2:
- {
- ShowPlayerDialog(playerid,5626,DIALOG_STYLE_LIST,"desert","sorbet with pieces of tropic fruits\napple pie like granny made it\nscoop ur own ice","select","back");
- }
- }
- }
- case 5624:
- {
- switch(listitem)
- {
- case 0:
- {
- ShowPlayerDialog(playerid,5623,DIALOG_STYLE_LIST,"main-menu","entree\nmain course\ndessert","select","exit");
- SetPVarString(playerid,"predish","crackers with salmon");
- }
- case 1:
- {
- ShowPlayerDialog(playerid,5623,DIALOG_STYLE_LIST,"main-menu","entree\nmain course\ndessert","select","exit");
- SetPVarString(playerid,"predish","fried shrimps");
- }
- case 2:
- {
- ShowPlayerDialog(playerid,5623,DIALOG_STYLE_LIST,"main-menu","entree\nmain course\ndessert","select","exit");
- SetPVarString(playerid,"predish","chicken soup");
- }
- }
- }
- case 5625:
- {
- switch(listitem)
- {
- case 0:
- {
- ShowPlayerDialog(playerid,5623,DIALOG_STYLE_LIST,"main-menu","entree\nmain course\ndessert","select","exit");
- SetPVarString(playerid,"maindish","fried spinach balls with a oyster garniture");
- }
- case 1:
- {
- ShowPlayerDialog(playerid,5623,DIALOG_STYLE_LIST,"main-menu","entree\nmain course\ndessert","select","exit");
- SetPVarString(playerid,"maindish","lobster with garniture of potatoes and limon juice");
- }
- case 2:
- {
- ShowPlayerDialog(playerid,5623,DIALOG_STYLE_LIST,"main-menu","entree\nmain course\ndessert","select","exit");
- SetPVarString(playerid,"maindish","noodles with vegetables and blocks of ham");
- }
- }
- }
- case 5626:
- {
- switch(listitem)
- {
- case 0:
- {
- ShowPlayerDialog(playerid,5623,DIALOG_STYLE_LIST,"main-menu","entree\nmain course\ndessert","select","exit");
- SetPVarString(playerid,"dessert","sorbet with pieces of tropic fruits");
- }
- case 1:
- {
- ShowPlayerDialog(playerid,5623,DIALOG_STYLE_LIST,"main-menu","entree\nmain course\ndessert","select","exit");
- SetPVarString(playerid,"dessert","apple pie like granny made it");
- }
- case 2:
- {
- ShowPlayerDialog(playerid,5627,DIALOG_STYLE_LIST,"what flavour?","strawberry\nbanana\ncitron\nchocolate","select","exit");
- }
- }
- }
- case 5627:
- {
- switch(listitem)
- {
- case 0:
- {
- ShowPlayerDialog(playerid,5623,DIALOG_STYLE_LIST,"main-menu","entree\nmain course\ndessert","select","exit");
- SetPVarString(playerid,"dessert","strawberry icecream");
- }
- case 1:
- {
- ShowPlayerDialog(playerid,5623,DIALOG_STYLE_LIST,"main-menu","entree\nmain course\ndessert","select","exit");
- SetPVarString(playerid,"dessert","banana icecream");
- }
- case 2:
- {
- ShowPlayerDialog(playerid,5623,DIALOG_STYLE_LIST,"main-menu","entree\nmain course\ndessert","select","exit");
- SetPVarString(playerid,"dessert","citron icecream");
- }
- case 3:
- {
- ShowPlayerDialog(playerid,5623,DIALOG_STYLE_LIST,"main-menu","entree\nmain course\ndessert","select","exit");
- SetPVarString(playerid,"dessert","chocolate icecream");
- }
- }
- }
- }
- }
- case false:
- {
- switch(dialogid)
- {
- case 5623:
- {
- new string[128];
- new entree[128],maincourse[128],dessert[128];
- GetPVarString(playerid, "predish", entree, 128);
- GetPVarString(playerid, "maindish", maincourse, 128);
- GetPVarString(playerid, "dessert", dessert, 128);
- format(string,sizeof(string),"you ate as entree %s, then you ate as main course %s, and as dessert you ate %s.",entree,maincourse,dessert);
- ShowPlayerDialog(playerid,5628,DIALOG_STYLE_MSGBOX,"",string,"done","exit");
- }
- case 5624:
- {
- ShowPlayerDialog(playerid,5623,DIALOG_STYLE_LIST,"main-menu","entree\nmain course\ndessert","select","exit");
- }
- case 5625:
- {
- ShowPlayerDialog(playerid,5623,DIALOG_STYLE_LIST,"main-menu","entree\nmain course\ndessert","select","exit");
- }
- case 5626:
- {
- ShowPlayerDialog(playerid,5623,DIALOG_STYLE_LIST,"main-menu","entree\nmain course\ndessert","select","exit");
- }
- }
- }
- }
- return 1;
- }
Add Comment
Please, Sign In to add comment