25.11.2011, 01:29
Код:
if(dialogid == 99999) { if(response) { switch(listitem) { case 0: { ShowPlayerDialog(playerid, 99998, DIALOG_STYLE_LIST, "Melee Weapons", "Golf Club (3 Chips)\nNite Stick (7 Chips)\nKnife (10 Chips)\nBaseball Bat (12 Chips)\nShovel (15 Chips)\nPool Cue (17 Chips)\nKatana (20 Chips)", "Purchase", "Cancel"); } case 1: { ShowPlayerDialog(playerid, 99997, DIALOG_STYLE_LIST, "Pistols", "9mm (15 Chips)\nDesert Eagle (20 Chips)", "Purchase", "Cancel"); } case 2: { ShowPlayerDialog(playerid, 99996, DIALOG_STYLE_LIST, "Close Range Weapons", "Shotgun (20 Chips)\nSawn-off Shotgun (40 Chips)\nCombat Shotgun (60 Chips)\nFlamethrower (300 Chips)", "Purchase", "Cancel"); } case 3: { ShowPlayerDialog(playerid, 99995, DIALOG_STYLE_LIST, "Assault Weapons", "MP5 (20 Chips)\nAK47 (60 Chips)\nM4 (75 Chips)", "Purchase", "Cancel"); } case 4: { ShowPlayerDialog(playerid, 99994, DIALOG_STYLE_LIST, "Explosives", "Molotov (120 Chips)\nGrenades (300 Chips)", "Purchase", "Cancel"); } } } }