
if(strcmp("/gps", cmdtext, true, 10) == 0)
{
new listitems[] = "Las Venturas\nLos Santos\n\n";
ShowPlayerDialog(playerid,617,DIALOG_STYLE_LIST,"GPS:",listitems,"Local","Sair");
return 1;
}
if(response == 1)
{
switch(dialogid)
{
case 617:
{
switch(listitem)
{
case 0: ShowPlayerDialog(playerid, 8778, 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 8778:
{
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;
}
}
}
}
if(response == 2) // Eu Tentei Isso Mas Nao Deu -.-
{
switch(dialogid)
{
case 617:
{
switch(listitem)
{
case 0: ShowPlayerDialog(playerid, 8778, 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 8778:
{
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;
}
}
}
}
switch(listitem)
{
case 0: ShowPlayerDialog(playerid, 8778, 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 1: //mesma coisa do case 0 mas vocк faz outro dialog de gps
}
}
|
pawn Код:
|
new str[256];
if(GPS_Spawned[i] == 1)
{
format(str,sizeof(str)," ~n~~n~~w~GPS: ~p~%s", GetPlayerArea(i));
TextDrawSetString(gps[i], str);
TextDrawShowForPlayer(i, gps[i]);
}
else
{
TextDrawHideForPlayer(i, gps[i]);
}
}
}
}
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;
}
}
}
}
!//=-=-=-=-=-=-==-=-=//
//
// Nao sei se as Cordenadas que vc mandou esta certa Mais coloquei do jeito que vocк
// Deixou la Aproveite Qualquer bug me avisa !
//
//=-=-=-=-=-=-=-=-=//
if (strcmp(cmd, "/gps", true) == 0)//By: Tiger_xD
{
Controle(playerid, 0);
ShowPlayerDialog(playerid,2012,DIALOG_STYLE_LIST,"GPS","Las Ventura\nLos Santos","Aceitar","Cancelar");
EmDialog[playerid] = 1;
return 1;
}
//=-=-=-=-=-=-=-=-=-=//
//=-=-=-=-=-=-=-=-=-=//
if(dialogid == 2012)//By: Tiger_xD
{
Controle(playerid, 1);
if(!response) { return 1; }
switch(listitem)
{
case 0:
{
ShowPlayerDialog(playerid,2013,DIALOG_STYLE_LIST,"Las Ventura","LOCAL\nLOCAL\nLOCAL","Ok","Voltar");
}
case 1:
{
ShowPlayerDialog(playerid,2014,DIALOG_STYLE_LIST,"Los Santos","LOCAL\nLOCAL\nLOCAL","Ok","Voltar");
}
case 3:
{
DisablePlayerCheckpoint(playerid);
}
}
}
//=-=-=-=-=-=-=-=-=-=//
if(dialogid == 2013)
{
Controle(playerid, 1);
EmDialog[playerid] = 0;
if(response == 0) { return ShowPlayerDialog(playerid,2012,DIALOG_STYLE_LIST,"GPS","Las Ventura\nLos Santos","Aceitar","Cancelar"); }
switch(listitem)//Las Ventura
{
case 0:
{
SetPlayerCheckpoint(playerid, 1374.6579,-1649.5585,13.3828,8.0);//Prefeitura LV
}
case 1:
{
SetPlayerCheckpoint(playerid, 1552.5363,-1675.8291,16.1953,8.0);//Delegacia (DP) de Las Ventures
}
case 2:
{
SetPlayerCheckpoint(playerid, 1159.2301,-1694.0264,13.9531,8.0);//Loja de roupas
}
case 3:
{
SetPlayerCheckpoint(playerid, 1140.2137,-1757.8071,13.5845,8.0);//Banco
}
}
}
//=-=-=-=-=-=-=-=-=-=//
if(dialogid == 2014)
{
Controle(playerid, 1);
EmDialog[playerid] = 0;
if(response == 0) { return ShowPlayerDialog(playerid,2012,DIALOG_STYLE_LIST,"GPS","Las Ventura\nLos Santos","Aceitar","Cancelar"); }
switch(listitem)//Las Ventura
{
case 0:
{
SetPlayerCheckpoint(playerid, 1374.6579,-1649.5585,13.3828,8.0);//Prefeitura de LS
}
case 1:
{
SetPlayerCheckpoint(playerid, 1552.5363,-1675.8291,16.1953,8.0);//DP de LS
}
case 2:
{
SetPlayerCheckpoint(playerid, 1159.2301,-1694.0264,13.9531,8.0);//Loja de Roupas ( LS )
}
case 3:
{
SetPlayerCheckpoint(playerid, 1140.2137,-1757.8071,13.5845,8.0);//Banco de ( LS )
}
}
}
//=-=-=-=-=-=-=-=-=-=-=-=-=-=( By: Tiger_xD )=-=-=-=-=-=-=-=-=-=-=//