30.11.2013, 18:49
In some command or etc:
In OnDialogResponse:
pawn Код:
ShowPlayerDialog( playerid, YOUR_DIALOG_ID, DIALOG_STYLE_LIST, "Map voting", "First Map\nSecond Map", "Select", "Close" );
pawn Код:
if( dialogid == YOUR_DIALOG_ID )
{
if(response)
{
switch(listitem)
{
case 0:
{
currentgamemode = 0;
SendClientMessage(playerid, 0xFFFFFFFF, "You've chosen First Map!");
}
case 1:
{
currentgamemode = 1;
SendClientMessage(playerid, 0xFFFFFFFF, "You've chosen Second Map!");
}
}
}
}