PHP код:
if(dialogid == dgps)
{
if(response == 1)
{
if(listitem == 0)
{
new stringona[500];
format(stringona, sizeof(stringona), "Delegacia de Polнcia\nPrefeitura\nBanco\nAluguel de Carros\nLoja de Arma 1\nLoja de Arma 2\nLoja 24-7 Sul\nLoja 24-7 Norte\nLoja 24-7 Subъrbio\nCartуrio\nBinco\nAlhambra\nAcademia\nRoda Gigante\nStrip Club\nLotйrica\nAuto Escola\nPegar Jornal");
ShowPlayerDialog(playerid, dgpsgeral, DIALOG_STYLE_LIST, "Gerais", stringona, "Confirmar", "Voltar");
}
if(listitem == 1)
{
ShowPlayerDialog(playerid, dgpslanc, DIALOG_STYLE_LIST, "Lanchonetes", "BurgerShot Norte\nBurgerShot Sul\nDonut\nCluckin' Bell\nPizza Stack no Subъrbio", "Confirmar", "Voltar");
}
if(listitem == 2)
{
ShowPlayerDialog(playerid, dgpscarro, DIALOG_STYLE_LIST, "Serviзos de Carro", "Posto Norte\nPosto Sul\nPay'n'Spray Norte\nPay'n'Spray Praia\nPay'n'Spray Subъrbio\nTunning carros Normais\nTunning carros Lowrider", "Confirmar", "Voltar");
}
if(listitem == 3)
{
ShowPlayerDialog(playerid, dgpsdroga, DIALOG_STYLE_LIST, "Locais de Drogas", "Pista de Skate\nFavela\nEstaзгo Unity\nCasarгo Abandonado", "Confirmar", "Voltar");
}
if(listitem == 4)
{
ShowPlayerDialog(playerid, dgpsmateriais, DIALOG_STYLE_LIST, "Locais de Materiais", "Materiais Entregar\nMateriais Obter", "Confirmar", "Voltar");
}
}
else return 1;
}
if(dialogid == dgpsgeral)
{
if(response == 1)
{
if(listitem == 0) { SetPlayerCheckpoint(playerid,1550.8214,-1675.6589,15.5775, 8.0); } //DP
if(listitem == 1) { SetPlayerCheckpoint(playerid,1482.0112,-1764.9534,18.7958, 8.0); } // Prefeitura
if(listitem == 2) { SetPlayerCheckpoint(playerid,1462.3958,-1012.3912,26.8438,8.0); } // Banco
if(listitem == 3) { SetPlayerCheckpoint(playerid,558.8148,-1256.6654,17.2422, 8.0); } // Aluguel de Carros
if(listitem == 4) { SetPlayerCheckpoint(playerid,1789.8976,-1165.7076,23.8281,8.0); } // Loja de arma 1
if(listitem == 5) { SetPlayerCheckpoint(playerid,1066.2732,-1871.5447,13.3984,8.0); } // Loja de arma 2
if(listitem == 6) { SetPlayerCheckpoint(playerid,1352.4993,-1756.8805,13.5078, 8.0); } // 24-7 Sul
if(listitem == 7) { SetPlayerCheckpoint(playerid,1315.0397,-904.7772,38.7982 ,6.0); } // 24-7 norte
if(listitem == 8) { SetPlayerCheckpoint(playerid,1829.0067,-1842.3956,13.5781 , 6.0); } // 24-7 suburbio
if(listitem == 9) { SetPlayerCheckpoint(playerid,912.6013,-994.4505,37.9966 , 6.0); } // cartorio
if(listitem == 10) { SetPlayerCheckpoint(playerid,2245.2778,-1661.1738,15.4690 , 6.0); } //binco
if(listitem == 11) { SetPlayerCheckpoint(playerid,1829.7552,-1682.3643,13.5469 , 6.0); } //alahmbra
if(listitem == 12) { SetPlayerCheckpoint(playerid,2224.3066,-1725.1635,13.5625 , 6.0); } //academia
if(listitem == 13) { SetPlayerCheckpoint(playerid,378.3370,-2035.4636,7.8301 , 6.0); } //roda gigante
if(listitem == 14) { SetPlayerCheckpoint(playerid,2419.0410,-1231.4813,24.526 , 6.0); } // stripclub
if(listitem == 15) { SetPlayerCheckpoint(playerid,1631.8547,-1172.5637,24.0843, 6); } // Lotйrica
if(listitem == 16) { SetPlayerCheckpoint(playerid,952.7140,-910.4492,45.7656, 6); } //Auto Escola
if(listitem == 17) { SetPlayerCheckpoint(playerid,648.6782,-1357.4170,13.5698, 6); } //Pegar Jornais
}
else if(response == 0) return ShowPlayerDialog(playerid, dgps, DIALOG_STYLE_LIST, "{DAD8C5}GPS Portбtil","Locais Gerais de Los Santos > \nLanchonetes >\nServiзos de Carro >\nLocais de Drogas >\nLocais de Materiais >", "Selecionar", "Fechar");
else return 1;
}
if(dialogid == dgpslanc)
{
if(response == 1)
{
if(listitem == 0) { SetPlayerCheckpoint(playerid, 1199.8994,-922.7019,43.020 ,6.0); } //BS norte
if(listitem == 1) { SetPlayerCheckpoint(playerid, 815.8632,-1616.6548,13.815 ,6.0); } //BS sul
if(listitem == 2) { SetPlayerCheckpoint(playerid, 1038.0527,-1334.3103,13.5484,6.0); } //donut
if(listitem == 3) { SetPlayerCheckpoint(playerid, 922.6517,-1353.6556,13.377 ,6.0); } //cluckin bell
if(listitem == 4) { SetPlayerCheckpoint(playerid, 2105.4858,-1806.4725,13.5547, 6.6); } // pizza suburbio
}
else if(response == 0) return ShowPlayerDialog(playerid, dgps, DIALOG_STYLE_LIST, "{DAD8C5}GPS Portбtil","Locais Gerais de Los Santos > \nLanchonetes >\nServiзos de Carro >\nLocais de Drogas >\nLocais de Materiais >", "Selecionar", "Fechar");
else return 1;
}
if(dialogid == dgpscarro)
{
if(response == 1)
{
if(listitem == 0) { SetPlayerCheckpoint(playerid,1007.0654,-940.5147,42.179 ,6.0); } //Posto Norte
if(listitem == 1) { SetPlayerCheckpoint(playerid, 1942.4059,-1759.2180,13.382,6.0); } //PoSto sul
if(listitem == 2) { SetPlayerCheckpoint(playerid, 1025.0304,-1033.9000,31.7427,6.0); } //spray norte
if(listitem == 3) { SetPlayerCheckpoint(playerid, 488.6210,-1730.0775,11.119,6.0); } //spray praia
if(listitem == 4) { SetPlayerCheckpoint(playerid, 2077.1982,-1831.2705,13.382,6.0); } //spray suburbio
if(listitem == 5) { SetPlayerCheckpoint(playerid, 1041.7769,-1031.1161,32.066,6.0); } //tunn normal
if(listitem == 6) { SetPlayerCheckpoint(playerid, 2645.3928,-2016.2319,13.5,6.0); } //tunn lowrider
}
else if(response == 0) return ShowPlayerDialog(playerid, dgps, DIALOG_STYLE_LIST, "{DAD8C5}GPS Portбtil","Locais Gerais de Los Santos > \nLanchonetes >\nServiзos de Carro >\nLocais de Drogas >\nLocais de Materiais >", "Selecionar", "Fechar");
else return 1;
}
if(dialogid == dgpsdroga)
{
if(response == 1)
{
if(listitem == 0) { SetPlayerCheckpoint(playerid, 1919.3672,-1413.2959,13.5703,6.0); } //pista
if(listitem == 1) { SetPlayerCheckpoint(playerid,2154.5747,-1011.5778,62.963,6.0); } //morro
if(listitem == 2) { SetPlayerCheckpoint(playerid, 1724.3193,-1937.6158,13.58,6.0); } //unity
if(listitem == 3) { SetPlayerCheckpoint(playerid, 1208.7942,-2036.6554,69.007,6.0); } //casarao
}
else if(response == 0) return ShowPlayerDialog(playerid, dgps, DIALOG_STYLE_LIST, "{DAD8C5}GPS Portбtil","Locais Gerais de Los Santos > \nLanchonetes >\nServiзos de Carro >\nLocais de Drogas >\nLocais de Materiais >", "Selecionar", "Fechar");
else return 1;
}
if(dialogid == dgpsmateriais)
{
if(response == 1)
{
if(listitem == 0) { SetPlayerCheckpoint(playerid,1751.3204,-1943.9150,13.5685,6.0); } //mat trocar
if(listitem == 1) { SetPlayerCheckpoint(playerid, 1649.1335,-2061.7736,13.5468 ,6.0); } //mat pegar
}
else if(response == 0) return ShowPlayerDialog(playerid, dgps, DIALOG_STYLE_LIST, "{DAD8C5}GPS Portбtil","Locais Gerais de Los Santos > \nLanchonetes >\nServiзos de Carro >\nLocais de Drogas >\nLocais de Materiais >", "Selecionar", "Fechar");
else return 1;
}