21.01.2012, 16:19
Tenta isso:
pawn Код:
if(response == 2)
{
switch(dialogid)
{
case 617:
{
switch(listitem)
{ //Tem que mudar o id da dialog
case 0: ShowPlayerDialog(playerid, 8779, 2, "GPS", "Loja de Tuning\nDepartamento de Policia\nPrefeitura\nLoja de roupas\nBanco\nFavela\nBoca de fumo\nArea de carga\nArea de descarga\nBoate\nPosto de Gasolina\nLava-jato\nHospital\nAmmunation\nPonto de Pesca\nVenda de Pesca\nArea de stunts\nBarzinho", "Selecionar", "Sair");
}
}
case 8779: //aqui vocк pхe o id da dialog que no caso agr й 8779
{
if(listitem == 0)
{
SetPlayerCheckpoint(playerid,1374.6579,-1649.5585,13.3828,6.0);
SendClientMessage(playerid, COLOR_YELLOW, "* GPS Ligado! Localizaзгo : Prefeitura De Las Venture.");
TogglePlayerControllable(playerid, 1);
GPSPos[playerid] = 1;
}
if(listitem == 1)
{
SetPlayerCheckpoint(playerid,1552.5363,-1675.8291,16.1953,6.0);
SendClientMessage(playerid, COLOR_YELLOW, "* GPS Ligado! Localizaзгo : Delegacia (DP) de Las Venture.");
TogglePlayerControllable(playerid, 1);
GPSPos[playerid] = 1;
}
if(listitem == 2)
{
SetPlayerCheckpoint(playerid,1481.4605,-1768.7117,18.7957,6.0);
SendClientMessage(playerid, COLOR_YELLOW, "* GPS Ligado! Localizaзгo : Prefeitura");
TogglePlayerControllable(playerid, 1);
GPSPos[playerid] = 1;
}
if(listitem == 3)
{
SetPlayerCheckpoint(playerid,1159.2301,-1694.0264,13.9531,6.0);
SendClientMessage(playerid, COLOR_YELLOW, "* GPS Ligado! Localizaзгo : Loja de roupas.");
TogglePlayerControllable(playerid, 1);
GPSPos[playerid] = 1;
}
if(listitem == 4)
{
SetPlayerCheckpoint(playerid,1140.2137,-1757.8071,13.5845,6.0);
SendClientMessage(playerid, COLOR_YELLOW, "* GPS Ligado! Localizaзгo : Banco.");
TogglePlayerControllable(playerid, 1);
GPSPos[playerid] = 1;
}
if(listitem == 5)
{
SetPlayerCheckpoint(playerid,2177.8029,-1054.8934,53.2892,6.0);
SendClientMessage(playerid, COLOR_YELLOW, "* GPS Ligado! Localizaзгo : Favela.");
TogglePlayerControllable(playerid, 1);
GPSPos[playerid] = 1;
}
if(listitem == 6)
{
SetPlayerCheckpoint(playerid, 2358.6071,-656.8526,128.2067,6.0);
SendClientMessage(playerid, COLOR_YELLOW, "* GPS Ligado! Localizaзгo : Boca de fumo.");
TogglePlayerControllable(playerid, 1);
GPSPos[playerid] = 1;
}
else if(listitem == 7)
{
SetPlayerCheckpoint(playerid,2763.2651, -2455.1262, 13.5296,6.0);
SendClientMessage(playerid, COLOR_YELLOW, "* GPS Ligado! Localizaзгo : Area de carga.");
TogglePlayerControllable(playerid, 1);
GPSPos[playerid] = 1;
}
else if(listitem == 8)
{
SetPlayerCheckpoint(playerid,856.8088, -592.7067, 17.9415,6.0);
SendClientMessage(playerid, COLOR_YELLOW, "* GPS Ligado! Localizaзгo : Area de descarga.");
TogglePlayerControllable(playerid, 1);
GPSPos[playerid] = 1;
}
else if(listitem == 9)
{
SetPlayerCheckpoint(playerid,1832.6485, -1682.7600, 13.5063,6.0);
SendClientMessage(playerid, COLOR_YELLOW, "* GPS Ligado! Localizaзгo : Boate.");
TogglePlayerControllable(playerid, 1);
GPSPos[playerid] = 1;
}
else if(listitem == 10)
{
SetPlayerCheckpoint(playerid,1944.0904, -1773.0372, 13.3905,6.0);
SendClientMessage(playerid, COLOR_YELLOW, "* GPS Ligado! Localizaзгo : Posto.");
TogglePlayerControllable(playerid, 1);
GPSPos[playerid] = 1;
}
else if(listitem == 11)
{
SetPlayerCheckpoint(playerid,1911.0927, -1768.1420, 13.3828,6.0);
SendClientMessage(playerid, COLOR_YELLOW, "* GPS Ligado! Localizaзгo : Lava - Jato.");
TogglePlayerControllable(playerid, 1);
GPSPos[playerid] = 1;
}
else if(listitem == 12)
{
SetPlayerCheckpoint(playerid,1189.0695, -1324.7470, 13.5670,6.0);
SendClientMessage(playerid, COLOR_YELLOW, "* GPS Ligado! Localizaзгo : Hospital.");
TogglePlayerControllable(playerid, 1);
GPSPos[playerid] = 1;
}
else if(listitem == 13)
{
SetPlayerCheckpoint(playerid,1365.1682, -1279.7357, 13.5468,6.0);
SendClientMessage(playerid, COLOR_YELLOW, "* GPS Ligado! Localizaзгo : Ammunation.");
TogglePlayerControllable(playerid, 1);
GPSPos[playerid] = 1;
}
else if(listitem == 14)
{
SetPlayerCheckpoint(playerid,724.7313, -1857.3493, 11.4685,6.0);
SendClientMessage(playerid, COLOR_YELLOW, "* GPS Ligado! Localizaзгo : Ponto de pesca.");
TogglePlayerControllable(playerid, 1);
GPSPos[playerid] = 1;
}
else if(listitem == 15)
{
SetPlayerCheckpoint(playerid,536.6308, -1765.9327, 14.3132,6.0);
SendClientMessage(playerid, COLOR_YELLOW, "* GPS Ligado! Localizaзгo : Venda de pesca.");
TogglePlayerControllable(playerid, 1);
GPSPos[playerid] = 1;
}
else if(listitem == 16)
{
SetPlayerCheckpoint(playerid,1858.3388, -2444.1955, 13.5546,6.0);
SendClientMessage(playerid, COLOR_YELLOW, "* GPS Ligado! Localizaзгo : Area de stunts.");
TogglePlayerControllable(playerid, 1);
GPSPos[playerid] = 1;
}
else if(listitem == 17)
{
SetPlayerCheckpoint(playerid,1513.0549, -1654.0858, 13.5391,6.0);
SendClientMessage(playerid, COLOR_YELLOW, "* GPS Ligado! Localizaзгo : Area de bebidas.");
TogglePlayerControllable(playerid, 1);
GPSPos[playerid] = 1;
}
}
}
}