legodude

legodude

Jul 1st, 2010
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 6.41 KB | None | 0 0
  1. #define FILTERSCRIPT
  2.  
  3. #include <a_samp>
  4.  
  5. public OnFilterScriptInit()
  6. {
  7.     print("\n--------------------------------------");
  8.     print(" Blank Filterscript by your name here");
  9.     print("--------------------------------------\n");
  10.     return 1;
  11. }
  12.  
  13. public OnFilterScriptExit()
  14. {
  15.     return 1;
  16. }
  17.  
  18. public OnPlayerCommandText(playerid, cmdtext[])
  19. {
  20.     if (strcmp("/restaurant", cmdtext, true, 10) == 0)
  21.     {
  22.         ShowPlayerDialog(playerid,5623,DIALOG_STYLE_LIST,"main-menu","entree\nmain course\ndessert","select","exit");
  23.         SetPVarString(playerid,"predish","nothing");
  24.         SetPVarString(playerid,"maindish","nothing");
  25.         SetPVarString(playerid,"dessert","nothing");
  26.         return 1;
  27.     }
  28.     return 0;
  29. }
  30.  
  31. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  32. {
  33.     switch(response)
  34.     {
  35.         case true:
  36.         {
  37.             switch(dialogid)
  38.             {
  39.                 case 5623:
  40.                 {
  41.                     switch(listitem)
  42.                     {
  43.                         case 0:
  44.                         {
  45.                             ShowPlayerDialog(playerid,5624,DIALOG_STYLE_LIST,"entree","crackers with salmon\nfried shrimps\nchicken soup","select","back");
  46.                         }
  47.                         case 1:
  48.                         {
  49.                             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");
  50.                         }
  51.                         case 2:
  52.                         {
  53.                             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");
  54.                         }
  55.                     }
  56.                 }
  57.                 case 5624:
  58.                 {
  59.                     switch(listitem)
  60.                     {
  61.                         case 0:
  62.                         {
  63.                             ShowPlayerDialog(playerid,5623,DIALOG_STYLE_LIST,"main-menu","entree\nmain course\ndessert","select","exit");
  64.                             SetPVarString(playerid,"predish","crackers with salmon");
  65.                         }
  66.                         case 1:
  67.                         {
  68.                             ShowPlayerDialog(playerid,5623,DIALOG_STYLE_LIST,"main-menu","entree\nmain course\ndessert","select","exit");
  69.                             SetPVarString(playerid,"predish","fried shrimps");
  70.                         }
  71.                         case 2:
  72.                         {
  73.                             ShowPlayerDialog(playerid,5623,DIALOG_STYLE_LIST,"main-menu","entree\nmain course\ndessert","select","exit");
  74.                             SetPVarString(playerid,"predish","chicken soup");
  75.                         }
  76.                     }
  77.                 }
  78.                 case 5625:
  79.                 {
  80.                     switch(listitem)
  81.                     {
  82.                         case 0:
  83.                         {
  84.                             ShowPlayerDialog(playerid,5623,DIALOG_STYLE_LIST,"main-menu","entree\nmain course\ndessert","select","exit");
  85.                             SetPVarString(playerid,"maindish","fried spinach balls with a oyster garniture");
  86.                         }
  87.                         case 1:
  88.                         {
  89.                             ShowPlayerDialog(playerid,5623,DIALOG_STYLE_LIST,"main-menu","entree\nmain course\ndessert","select","exit");
  90.                             SetPVarString(playerid,"maindish","lobster with garniture of potatoes and limon juice");
  91.                         }
  92.                         case 2:
  93.                         {
  94.                             ShowPlayerDialog(playerid,5623,DIALOG_STYLE_LIST,"main-menu","entree\nmain course\ndessert","select","exit");
  95.                             SetPVarString(playerid,"maindish","noodles with vegetables and blocks of ham");
  96.                         }
  97.                     }
  98.                 }
  99.                 case 5626:
  100.                 {
  101.                     switch(listitem)
  102.                     {
  103.                         case 0:
  104.                         {
  105.                             ShowPlayerDialog(playerid,5623,DIALOG_STYLE_LIST,"main-menu","entree\nmain course\ndessert","select","exit");
  106.                             SetPVarString(playerid,"dessert","sorbet with pieces of tropic fruits");
  107.                         }
  108.                         case 1:
  109.                         {
  110.                             ShowPlayerDialog(playerid,5623,DIALOG_STYLE_LIST,"main-menu","entree\nmain course\ndessert","select","exit");
  111.                             SetPVarString(playerid,"dessert","apple pie like granny made it");
  112.                         }
  113.                         case 2:
  114.                         {
  115.                             ShowPlayerDialog(playerid,5627,DIALOG_STYLE_LIST,"what flavour?","strawberry\nbanana\ncitron\nchocolate","select","exit");
  116.                         }
  117.                     }
  118.                 }
  119.                 case 5627:
  120.                 {
  121.                     switch(listitem)
  122.                     {
  123.                         case 0:
  124.                         {
  125.                             ShowPlayerDialog(playerid,5623,DIALOG_STYLE_LIST,"main-menu","entree\nmain course\ndessert","select","exit");
  126.                             SetPVarString(playerid,"dessert","strawberry icecream");
  127.                         }
  128.                         case 1:
  129.                         {
  130.                             ShowPlayerDialog(playerid,5623,DIALOG_STYLE_LIST,"main-menu","entree\nmain course\ndessert","select","exit");
  131.                             SetPVarString(playerid,"dessert","banana icecream");
  132.                         }
  133.                         case 2:
  134.                         {
  135.                             ShowPlayerDialog(playerid,5623,DIALOG_STYLE_LIST,"main-menu","entree\nmain course\ndessert","select","exit");
  136.                             SetPVarString(playerid,"dessert","citron icecream");
  137.                         }
  138.                         case 3:
  139.                         {
  140.                             ShowPlayerDialog(playerid,5623,DIALOG_STYLE_LIST,"main-menu","entree\nmain course\ndessert","select","exit");
  141.                             SetPVarString(playerid,"dessert","chocolate icecream");
  142.                         }
  143.                     }
  144.                 }
  145.             }
  146.         }
  147.         case false:
  148.         {
  149.             switch(dialogid)
  150.             {
  151.                 case 5623:
  152.                 {
  153.                     new string[128];
  154.                     new entree[128],maincourse[128],dessert[128];
  155.                     GetPVarString(playerid, "predish", entree, 128);
  156.                     GetPVarString(playerid, "maindish", maincourse, 128);
  157.                     GetPVarString(playerid, "dessert", dessert, 128);
  158.                     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);
  159.                     ShowPlayerDialog(playerid,5628,DIALOG_STYLE_MSGBOX,"",string,"done","exit");
  160.                 }
  161.                 case 5624:
  162.                 {
  163.                     ShowPlayerDialog(playerid,5623,DIALOG_STYLE_LIST,"main-menu","entree\nmain course\ndessert","select","exit");
  164.                 }
  165.                 case 5625:
  166.                 {
  167.                     ShowPlayerDialog(playerid,5623,DIALOG_STYLE_LIST,"main-menu","entree\nmain course\ndessert","select","exit");
  168.                 }
  169.                 case 5626:
  170.                 {
  171.                     ShowPlayerDialog(playerid,5623,DIALOG_STYLE_LIST,"main-menu","entree\nmain course\ndessert","select","exit");
  172.                 }
  173.             }
  174.         }
  175.     }
  176.     return 1;
  177. }
Add Comment
Please, Sign In to add comment