27.12.2010, 19:19
pawn Код:
ShowPlayerDialog(playerid, DIALOGID, DIALOG_STYLE_LIST, "Teleports", "Los Santos\nSan Fierro\nLas Venturas", "Teleport", "Close");
OnDialogResponse(...)
{
if(dialogid == DIALOGID)
{
switch(listitem) // Switching between items in the dialog list - Currently, only 3 items
{
case 0: SetPlayerPos(playerid, LOS SANTOS COORDINATES);
case 1: SetPlayerPos(playerid, SAN FIERRO COORDINATES);
case 2: SetPlayerPos(playerid, LAS VENTURAS COORDINATES);
}
}
return 1;
}