map selection on voting [ need help ]
#2

In some command or etc:
pawn Код:
ShowPlayerDialog( playerid, YOUR_DIALOG_ID, DIALOG_STYLE_LIST, "Map voting", "First Map\nSecond Map", "Select", "Close" );
In OnDialogResponse:
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!");
}
}
}
}
Reply


Messages In This Thread
map selection on voting [ need help ] - by Sands - 30.11.2013, 17:39
Re: map selection on voting [ need help ] - by carloLT - 30.11.2013, 18:49

Forum Jump:


Users browsing this thread: 3 Guest(s)