02.01.2012, 01:26
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 99)
{
if(response)
{
if(listitem == 0)
{
ShowPlayerDialog(playerid,99+1,DIALOG_STYLE_LIST,"Vehicles","\tSultan $ 20.000\n\tNew Maverick $ 25.000n\tNRG-500 $ 11.000n\tSanchez $ 10.000\r\n\tSpeeder $ 17.000\r\n\tSquallo $ 17.000","Select", "Cancel");
}
if(listitem == 1)
{
ShowPlayerDialog(playerid,99+2,DIALOG_STYLE_LIST,"Weapons","Knife $ 200\n\tDesert Eagle $ 12.000\n\tSawn-offs $ 25.000\n\tSMG $ 15.000\n\tM4 $ 24.000","Select", "Cancel");
}
}
return 1;
}
return 1;
}