19.04.2015, 14:18
Why not?
Just an example:
Just an example:
PHP код:
#define WEAPONS_DIALOG 1201
#define RIFLES_DIALOG 1202
// public OnPlayerCommandText(playerid, cmdtext[])
if(!strcmp(cmdtext, "/w"))
{
ShowPlayerDialog(playerid, WEAPONS_DIALOG, DIALOG_STYLE_LIST, .....);
}
// public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
switch(dialogid)
{
case WEAPONS_DIALOG:
{
if(response)
{
if(listitem == 1)
{
ShowPlayerDialog(playerid, RIFLES_DIALOG, DIALOG_STYLE, LIST, ....);
}
}
break;
}
}