04.03.2011, 22:14
Well, show another dialog when he responses a dialog.
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 4)
{
switch(listitem)
{
case 0: // Rules
{
ShowPlayerDialog(playerid, 5, DIALOG_STYLE_MSGBOX, "Rules Part 1", "1єRule1\n2єRule2\n3єRule3", "Continue", "Cancel");
}
case 1: SendClientMessage(playerid, White, "Test 2");
case 2: SendClientMessage(playerid, White, "Test 3");
}
}
if(dialogid == 5)
{
if(response)
{
ShowPlayerDialog(playerid, 6, DIALOG_STYLE_MSGBOX, "Rules Part 2", "1єRule1\n2єRule2\n3єRule3", "Ok", "Back");
}
else if(!response)
{
return 1;
}
}
if(dialogid == 6)
{
if(response)
{
return 1;
}
else if(!response)
{
ShowPlayerDialog(playerid, 5, DIALOG_STYLE_MSGBOX, "Rules Part 1", "1єRule1\n2єRule2\n3єRule3", "Continue", "Cancel");
}
}
return 1;
}