03.10.2015, 12:36
PHP код:
CMD:event(playerid,params[])
{
ShowPlayerDialog(playerid,7323,DIALOG_STYLE_LIST, "Event Locations","Event Location 1/nEvent Location 2/nEvent Location 3/nEvent Location 4", "Select", "Close");
}
OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 7323)
{
if(response)
{
switch(listitem)
{
case 0:SetPlayerPos(playerid, x, y, z);
case 1:SetPlayerPos(playerid, x, y, z);
case 2:SetPlayerPos(playerid, x, y, z);
case 3:SetPlayerPos(playerid, x, y, z);
}
}
return 1;
}
return 0;
}