27.12.2010, 14:39
Command:
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp("/teles",cmdtext,true,10) == 0)
{
ShowPlayerDialog(playerid, 0, DIALOG_STYLE_LIST, "Choose somewhere", "1. Stunt\n2.Airport","Ok","Cancel");
return 1;
}
return 0;
}
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 0 && response)
{
if(listitem == 0) return ... // Function
if(listitem == 1) return ... // Function
return 1;
}
return 0;
}