Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 8th, 2012  |  syntax: PAWN  |  size: 8.30 KB  |  hits: 13  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  2. {
  3.         if(dialogid == 1)
  4.         {
  5.             if(response == 1)
  6.             {
  7.                         switch(listitem)
  8.                         {
  9.                             case 0:
  10.                             {
  11.                             ShowPlayerDialog(playerid, 2, DIALOG_STYLE_LIST, "WEAPONS: Handguns", "Colt 45\nSilenced Pistol\nDesert Eagle\nBack", "Select", "Close");
  12.                             }
  13.                             case 1:
  14.                             {
  15.                             ShowPlayerDialog(playerid, 3, DIALOG_STYLE_LIST, "WEAPONS: Rifles", "AK-47\nM4\nCountry Rifle\nSniper Rifle\nBack", "Select", "Close");
  16.                 }
  17.                 case 2:
  18.                             {
  19.                             ShowPlayerDialog(playerid, 4, DIALOG_STYLE_LIST, "WEAPONS: Shotguns", "Pump Action Shotgun\nSawn Off Shotguns\nCombat Shotgun\nBack", "Select", "Close");
  20.                 }
  21.                 case 3:
  22.                             {
  23.                             ResetPlayerWeapons(playerid);
  24.                 }
  25.                         }
  26.                 }
  27.         }
  28.  
  29.  
  30.  
  31.     if(dialogid == 2)
  32.     {
  33.         if(response == 1)
  34.         {
  35.             switch(listitem)
  36.             {
  37.                 case 0:
  38.                                 {
  39.                                 GivePlayerWeapon(playerid, 22, 9999);
  40.                                 GameTextForPlayer(playerid, "~w~Enjoy your new weapon!", 3000, 1);
  41.                                 }
  42.                                 case 1:
  43.                                 {
  44.                                 GivePlayerWeapon(playerid, 23, 9999);
  45.                                 GameTextForPlayer(playerid, "~w~Enjoy your new weapon!", 3000, 1);
  46.                                 }
  47.                                 case 2:
  48.                                 {
  49.                                 GivePlayerWeapon(playerid, 24, 9999);
  50.                                 GameTextForPlayer(playerid, "~w~Enjoy your new weapon!", 3000, 1);
  51.                                 }
  52.                                 case 3:
  53.                                 {
  54.                                 ShowPlayerDialog(playerid,1,DIALOG_STYLE_LIST,"WEAPONS","Handguns\nRifles\nShotguns\nReset Weapons","Select", "Close");
  55.                                 }
  56.                         }
  57.                 }
  58.         }
  59.  
  60.         if(dialogid == 3)
  61.         {
  62.             if(response == 1)
  63.             {
  64.                 switch(listitem)
  65.                 {
  66.                     case 0:
  67.                     {
  68.                     GivePlayerWeapon(playerid, 30, 9999);
  69.                                 GameTextForPlayer(playerid, "~w~Enjoy your new weapon!", 3000, 1);
  70.                                 }
  71.                                 case 1:
  72.                                 {
  73.                     GivePlayerWeapon(playerid, 31, 9999);
  74.                                 GameTextForPlayer(playerid, "~w~Enjoy your new weapon!", 3000, 1);
  75.                                 }
  76.                                 case 2:
  77.                                 {
  78.                     GivePlayerWeapon(playerid, 33, 9999);
  79.                                 GameTextForPlayer(playerid, "~w~Enjoy your new weapon!", 3000, 1);
  80.                                 }
  81.                                 case 3:
  82.                                 {
  83.                     GivePlayerWeapon(playerid, 34, 9999);
  84.                                 GameTextForPlayer(playerid, "~w~Enjoy your new weapon!", 3000, 1);
  85.                                 }
  86.                                 case 4:
  87.                                 {
  88.                                 ShowPlayerDialog(playerid,1,DIALOG_STYLE_LIST,"WEAPONS","Handguns\nRifles\nShotguns\nReset Weapons","Select", "Close");
  89.                                 }
  90.                         }
  91.                 }
  92.         }
  93.  
  94.         if(dialogid == 4)
  95.         {
  96.             if(response == 1)
  97.             {
  98.                 switch(listitem)
  99.                 {
  100.                 case 0:
  101.                     {
  102.                     GivePlayerWeapon(playerid, 25, 9999);
  103.                                 GameTextForPlayer(playerid, "~w~Enjoy your new weapon!", 3000, 1);
  104.                                 }
  105.                                 case 1:
  106.                     {
  107.                     GivePlayerWeapon(playerid, 26, 9999);
  108.                                 GameTextForPlayer(playerid, "~w~Enjoy your new weapon!", 3000, 1);
  109.                                 }
  110.                                 case 2:
  111.                     {
  112.                     GivePlayerWeapon(playerid, 27, 9999);
  113.                                 GameTextForPlayer(playerid, "~w~Enjoy your new weapon!", 3000, 1);
  114.                                 }
  115.                                 case 3:
  116.                                 {
  117.                                 ShowPlayerDialog(playerid,1,DIALOG_STYLE_LIST,"WEAPONS","Handguns\nRifles\nShotguns\nReset Weapons","Select", "Close");
  118.                                 }
  119.                         }
  120.                 }
  121.         }
  122.  
  123.         if(dialogid == 5)
  124.         {
  125.                 if(response == 1)
  126.                 {
  127.                 switch (listitem)
  128.                 {
  129.                     case 0:
  130.                     {
  131.                     ShowPlayerDialog(playerid,8,DIALOG_STYLE_LIST,"LOCATIONS: Interiors","Club Unknown\nWarehouse 1","Select", "Close");
  132.                     }
  133.                         case 1:
  134.                         {
  135.                                 SetPlayerPos(playerid, -489.2018, -558.5182,25.5234);
  136.                                 SetPlayerInterior(playerid, 0);
  137.                                 }
  138.                                 case 2:
  139.                                 {
  140.                                 SetPlayerPos(playerid, 1545.1239,-1675.7538,13.5597);
  141.                                 SetPlayerInterior(playerid, 0);
  142.                                 }
  143.                                 case 3:
  144.                                 {
  145.                                 SetPlayerPos(playerid, -688.0177, 933.9884, 13.6328);
  146.                                 SetPlayerInterior(playerid, 0);
  147.                                 }
  148.                         }
  149.                 }
  150.         }
  151.  
  152.         if(dialogid == 6)
  153.         {
  154.             if(response == 1)
  155.             {
  156.                 switch (listitem)
  157.                 {
  158.                     case 0:
  159.                     {
  160.                     PlayAudioStreamForPlayer(playerid, "http://46.37.173.176:8000/live.m3u");
  161.                         }
  162.                         case 1:
  163.                         {
  164.                         PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=21585");
  165.                                 }
  166.                                 case 2:
  167.                                 {
  168.                                 SendClientMessage(playerid,COLOR_WHITE,"You have turned off your radio.");
  169.                                 StopAudioStreamForPlayer(playerid);
  170.                                 }
  171.                         }
  172.                 }
  173.         }
  174.  
  175.         if(dialogid == 7)
  176.         {
  177.             if(response == 1)
  178.             {
  179.                 switch (listitem)
  180.                 {
  181.                     case 0:
  182.                     {
  183.                     SendClientMessage(playerid,COLOR_WHITE,"You're now fighting in the Normal style.");
  184.                                 SetPlayerFightingStyle(playerid, 4);
  185.                                 }
  186.                                 case 1:
  187.                                 {
  188.                                 SendClientMessage(playerid,COLOR_WHITE,"You're now fighting in the Boxing style.");
  189.                                 SetPlayerFightingStyle(playerid, 5);
  190.                                 }
  191.                                 case 2:
  192.                                 {
  193.                                 SendClientMessage(playerid,COLOR_WHITE,"You're now fighting in the Kung Fu style.");
  194.                                 SetPlayerFightingStyle(playerid, 6);
  195.                                 }
  196.                                 case 3:
  197.                                 {
  198.                                 SendClientMessage(playerid,COLOR_WHITE,"You're now fighting in the Kneehead style.");
  199.                                 SetPlayerFightingStyle(playerid, 7);
  200.                                 }
  201.                                 case 4:
  202.                                 {
  203.                                 SendClientMessage(playerid,COLOR_WHITE,"You're now fighting in the Grabkick style.");
  204.                                 SetPlayerFightingStyle(playerid, 15);
  205.                                 }
  206.                                 case 5:
  207.                                 {
  208.                                 SendClientMessage(playerid,COLOR_WHITE,"You're now fighting in the Elbow style.");
  209.                                 SetPlayerFightingStyle(playerid, 16);
  210.                                 }
  211.                         }
  212.                 }
  213.         }
  214.        
  215.         if(dialogid == 8)
  216.         {
  217.             if(response == 1)
  218.             {
  219.                 switch (listitem)
  220.                 {
  221.                     case 0:
  222.                                 {
  223.                                 SetPlayerPos(playerid, 1171.1672, -1499.0725, -35.3438);
  224.                                 SetPlayerInterior(playerid, 1);
  225.                                 }
  226.                                 case 1:
  227.                                 {
  228.                                 SetPlayerPos(playerid, 1092.0638, -365.4299, 40.4562);
  229.                                 SetPlayerInterior(playerid, 1);
  230.                                 }
  231.                         }
  232.                 }
  233.         }
  234.        
  235.         if(dialogid == 9)
  236.         {
  237.             if(response == 1)
  238.             {
  239.                 switch (listitem)
  240.                 {
  241.                     case 0:
  242.                     {
  243.                 SendClientMessage(playerid, ANNOUNCEMENT, "-------------------------------------------------------------------------------------------");
  244.                 SendClientMessage(playerid, COLOR_WHITE, ">>Commands<<");
  245.                 SendClientMessage(playerid, COLOR_WHITE, "/kill, /weapons, /go, /spawnvehicle, /radio, /fightstyles, /goto, /vwreset");
  246.                 SendClientMessage(playerid, COLOR_WHITE, "/skin, /drunklevel");
  247.                 SendClientMessage(playerid, ANNOUNCEMENT, "-------------------------------------------------------------------------------------------");
  248.                 }
  249.                 case 1:
  250.                 {
  251.                 SendClientMessage(playerid, ANNOUNCEMENT, "-------------------------------------------------------------------------------------------");
  252.                 SendClientMessage(playerid, COLOR_WHITE, ">>Tips<<");
  253.                 SendClientMessage(playerid, COLOR_WHITE, "Press escape to bring up the menu, then select 'Map'. You can click ");
  254.                 SendClientMessage(playerid, COLOR_WHITE, "anywhere on the map and be teleported there!");
  255.                 SendClientMessage(playerid, ANNOUNCEMENT, "-------------------------------------------------------------------------------------------");
  256.                 }
  257.                 case 2:
  258.                 {
  259.                 SendClientMessage(playerid, ANNOUNCEMENT, "-------------------------------------------------------------------------------------------");
  260.                 SendClientMessage(playerid, COLOR_WHITE, ">>Updates<<");
  261.                         SendClientMessage(playerid, COLOR_WHITE, "VERSION 0.11");
  262.                         SendClientMessage(playerid, COLOR_WHITE, "-Added '/vwreset'");
  263.                                 SendClientMessage(playerid, ANNOUNCEMENT, "-------------------------------------------------------------------------------------------");
  264.                                 }
  265.                                 case 3:
  266.                                 {
  267.                 SendClientMessage(playerid, ANNOUNCEMENT, "-------------------------------------------------------------------------------------------");
  268.                         SendClientMessage(playerid, COLOR_WHITE, ">>Server Information<<");
  269.                         SendClientMessage(playerid, COLOR_WHITE, "Version 0.11");
  270.                         SendClientMessage(playerid, COLOR_WHITE, "'Los Santos Freeroam' made by Josh Davis");
  271.                                 SendClientMessage(playerid, ANNOUNCEMENT, "-------------------------------------------------------------------------------------------");
  272.                                 }
  273.                         }
  274.                 }
  275.         }
  276.                
  277.  
  278.     return 0;
  279. }