01.12.2009, 18:13
Hi everyone, here took up the dialogue, it works on a small - unfinished cheers)))
---
----
my first appears dialog "to select a group of weapons" (1,2,3) / / / / When you click on the abolition of the kick occurs.
when you click on the corresponding "group-weapon" appears in a dialogue with the choice of locations (1,2,3) ///// Pressing the lifting I need to return the originally dialogue, and when you click on "OK" is all there is) If someone does not difficult it'll show please
---
Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { if(dialogid == 1337) { if(response) { // this my fuction :p } else { SendClientMessage(playerid, COLOR_GREY, "* You Chose 'Cancel'. Goodbye!"); Kick(playerid); } } if(dialogid == DIALOGID) { if(response) { if(listitem == 0) // Deagle + M4 { ShowPlayerDialog(playerid, DIALOGID+1, DIALOG_STYLE_LIST, "Chose location", "Location 1\nLocation 2\nLocation 3", "Select", "Cancel"); } if(listitem == 1) // Shotgun + MP5 { ShowPlayerDialog(playerid, DIALOGID+2, DIALOG_STYLE_LIST, "Chose location", "Location 1\nLocation 2\nLocation 3", "Select", "Cancel"); } if(listitem == 2) // Sniper + Silenced Pistol { ShowPlayerDialog(playerid, DIALOGID+3, DIALOG_STYLE_LIST, "Chose location", "Location 1\nLocation 2\nLocation 3", "Select", "Cancel"); } } return 1; } if(dialogid == DIALOGID+1) // Deagle + M4 { if(response) { if(listitem == 0) { GivePlayerWeapon(playerid, 24, 9999); GivePlayerWeapon(playerid, 31, 9999); } if(listitem == 1) { GivePlayerWeapon(playerid, 24, 9999); GivePlayerWeapon(playerid, 31, 9999); } if(listitem == 2) { GivePlayerWeapon(playerid, 24, 9999); GivePlayerWeapon(playerid, 31, 9999); } } return 1; } if(dialogid == DIALOGID+2) // Shotgun + MP5 { if(response) { if(listitem == 0) { GivePlayerWeapon(playerid, 25, 9999); GivePlayerWeapon(playerid, 29, 9999); } if(listitem == 1) { GivePlayerWeapon(playerid, 25, 9999); GivePlayerWeapon(playerid, 29, 9999); } if(listitem == 2) { GivePlayerWeapon(playerid, 25, 9999); GivePlayerWeapon(playerid, 29, 9999); } } return 1; } if(dialogid == DIALOGID+3) // Sniper + Silenced Pistol { if(response) { if(listitem == 0) { GivePlayerWeapon(playerid, 23, 9999); GivePlayerWeapon(playerid, 34, 9999); } if(listitem == 1) { GivePlayerWeapon(playerid, 23, 9999); GivePlayerWeapon(playerid, 34, 9999); } if(listitem == 2) { GivePlayerWeapon(playerid, 23, 9999); GivePlayerWeapon(playerid, 34, 9999); } } return 1; } return 0; }
my first appears dialog "to select a group of weapons" (1,2,3) / / / / When you click on the abolition of the kick occurs.
when you click on the corresponding "group-weapon" appears in a dialogue with the choice of locations (1,2,3) ///// Pressing the lifting I need to return the originally dialogue, and when you click on "OK" is all there is) If someone does not difficult it'll show please