20.01.2012, 21:17
Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) {
if(dialogid == DIALOG_CLASS) {
if(!response) // if player presses ESC re-show the dialog
return ShowPlayerDialog(playerid, DIALOG_CLASS, DIALOG_STYLE_LIST, "Choose your class", "Class 1\nClass 2\nClass 3", "Choose", "");
switch(listitem) {
case 0:
{
ShowPlayerDialog(playerid, DIALOG_ASSAULT, DIALOG_STYLE_MSGBOX, "Class information", "information of the class....", "Choose", "Back");
}
case 1: {
//dialogg
}
case 2: { // CLASS 3
// stuff for class 3
}
if(dialogid == DIALOG_ASSAULT) {
return ShowPlayerDialog(playerid, DIALOG_CLASS, DIALOG_STYLE_LIST, "Class information", "information of the class....", "Choose", "Back");
switch(listitem) {
case 0:
{
GivePlayerWeapon(32,80)
}
case 1: {
}
case 2: {
}
}
}
return 0;
}

