17.01.2012, 17:13
(
Последний раз редактировалось Ryktardy; 17.01.2012 в 19:03.
)
Bom Galera eu Gostaria de uma ajuda em meu gps tipo quando eu chego perto do check ele me teleporta pra um interior
vcs poderiam me ajuda fazendo favor
ele entra em esse inteiror
Nome:Big spread ranch ,interior: 3 , XYZ: 1212.019897,-28.663099,1000.953125
vcs poderiam me ajuda fazendo favor
ele entra em esse inteiror
Nome:Big spread ranch ,interior: 3 , XYZ: 1212.019897,-28.663099,1000.953125
pawn Код:
if (strcmp("/gps", cmdtext, true, 10) == 0)
{
new listitems[] = "Los Santos\n\n\n";
ShowPlayerDialog(playerid,617,DIALOG_STYLE_LIST,"GPS:",listitems,"Local","Sair");
return 1;
}
public OnPlayerEnterCheckpoint(playerid)
{
new checknome = CPS_GetPlayerCheckpoint(playerid);
if(GPSPos[playerid] == 1)
{
GPSPos[playerid] = 0;
DisablePlayerCheckpoint(playerid);
}
//=================================================================
if(response == 1)
{
switch(dialogid)
{
case 617:
{
switch(listitem)
{
case 0: ShowPlayerDialog(playerid, 8778, 2, "GPS", "Loja de Tuning\nDepartamento de Policia\nPrefeitura\nEscola\nLoja de Roupas\nBanco\nFavela\nPonto De Drogas\nArea de carga\nArea de descarga\nAlhambra\nPosto de Gasolina\nLava-Jato\nHospital\nLoja De Armas\nPonto de Pesca\nVenda de Pesca\nAeroporto LS\nCentro de Licencas\nIlha", "Selecionar", "Sair");
}
}
case 8778:
{
if(listitem == 0)
{
SetPlayerCheckpoint(playerid,1755.7616,-1893.8690,13.5566,6.0);
SendClientMessage(playerid, COLOR_YELLOW, "[INFO] GPS Ativado! Localizaзгo : Loja de Tunning.");
TogglePlayerControllable(playerid, 1);
GPSPos[playerid] = 1;
}
else if(listitem == 1)
{
SetPlayerCheckpoint(playerid,1552.5363,-1675.8291,16.1953,6.0);
SendClientMessage(playerid, COLOR_YELLOW, "[INFO] GPS Ativado! Localizaзгo : Delegacia de Los Santos.");
TogglePlayerControllable(playerid, 1);
GPSPos[playerid] = 1;
}
else if(listitem == 2)
{
SetPlayerCheckpoint(playerid,1480.9109,-1767.2134,18.7958,6.0);
SendClientMessage(playerid, COLOR_YELLOW, "[INFO] GPS Ativado! Localizaзгo : Prefeitura");
TogglePlayerControllable(playerid, 1);
GPSPos[playerid] = 1;
}
else if(listitem == 3)
{
SetPlayerCheckpoint(playerid,1154.1721,-1772.3430,16.5992,6.0);
SendClientMessage(playerid, COLOR_YELLOW, "[INFO] GPS Ativado! Localizaзгo : Escola.");
TogglePlayerControllable(playerid, 1);
GPSPos[playerid] = 1;
}
else if(listitem == 4)
{
SetPlayerCheckpoint(playerid,1169.4113,-1489.7637,22.7562,6.0);
SendClientMessage(playerid, COLOR_YELLOW, "[INFO] GPS Ativado! Localizaзгo : Loja de roupas.");
TogglePlayerControllable(playerid, 1);
GPSPos[playerid] = 1;
}
else if(listitem == 5)
{
SetPlayerCheckpoint(playerid,1577.9795,-1809.9609,13.3651,5.0);
SendClientMessage(playerid, COLOR_YELLOW, "[INFO] GPS Ativado! Localizaзгo : Banco.");
TogglePlayerControllable(playerid, 1);
GPSPos[playerid] = 1;
}
else if(listitem == 6)
{
SetPlayerCheckpoint(playerid,2177.8029,-1054.8934,53.2892,6.0);
SendClientMessage(playerid, COLOR_YELLOW, "[INFO] GPS Ativado! Localizaзгo : Favela.");
TogglePlayerControllable(playerid, 1);
GPSPos[playerid] = 1;
}
else if(listitem == 7)
{
SetPlayerCheckpoint(playerid, 2358.6071,-656.8526,128.2067,6.0);
SendClientMessage(playerid, COLOR_YELLOW, "[INFO] GPS Ativado! Localizaзгo : Ponto de Drogas.");
TogglePlayerControllable(playerid, 1);
GPSPos[playerid] = 1;
}
else if(listitem == 8)
{
SetPlayerCheckpoint(playerid,2763.2651,-2455.1262,13.5296,6.0);
SendClientMessage(playerid, COLOR_YELLOW, "[INFO] GPS Ativado! Localizaзгo : Area de carga.");
TogglePlayerControllable(playerid, 1);
GPSPos[playerid] = 1;
}
else if(listitem == 9)
{
SetPlayerCheckpoint(playerid,856.8088,-592.7067,17.9415,6.0);
SendClientMessage(playerid, COLOR_YELLOW, "[INFO] GPS Ativado! Localizaзгo : Area de descarga.");
TogglePlayerControllable(playerid, 1);
GPSPos[playerid] = 1;
}
else if(listitem == 10)
{
SetPlayerCheckpoint(playerid,1832.6485,-1682.7600,13.5063,6.0);
SendClientMessage(playerid, COLOR_YELLOW, "[INFO] GPS Ativado! Localizaзгo : Alhambra");
TogglePlayerControllable(playerid, 1);
GPSPos[playerid] = 1;
}
else if(listitem == 11)
{
SetPlayerCheckpoint(playerid,1944.0904,-1773.0372,13.3905,6.0);
SendClientMessage(playerid, COLOR_YELLOW, "[INFO] GPS Ativado! Localizaзгo : Posto.");
TogglePlayerControllable(playerid, 1);
GPSPos[playerid] = 1;
}
else if(listitem == 12)
{
SetPlayerCheckpoint(playerid,1911.0927,-1768.1420,13.3828,6.0);
SendClientMessage(playerid, COLOR_YELLOW, "[INFO] GPS Ativado! Localizaзгo : Lava - Jato.");
TogglePlayerControllable(playerid, 1);
GPSPos[playerid] = 1;
}
else if(listitem == 13)
{
SetPlayerCheckpoint(playerid,1172.5013,-1323.5996,15.0575,6.0);
SendClientMessage(playerid, COLOR_YELLOW, "[INFO] GPS Ativado! Localizaзгo : Hospital.");
TogglePlayerControllable(playerid, 1);
GPSPos[playerid] = 1;
}
else if(listitem == 14)
{
SetPlayerCheckpoint(playerid,1365.1682,-1279.7357,13.5468,6.0);
SendClientMessage(playerid, COLOR_YELLOW, "[INFO] GPS Ativado! Localizaзгo : Loja De Armas.");
TogglePlayerControllable(playerid, 1);
GPSPos[playerid] = 1;
}
else if(listitem == 15)
{
SetPlayerCheckpoint(playerid,724.7313,-1857.3493,11.4685,6.0);
SendClientMessage(playerid, COLOR_YELLOW, "[INFO] GPS Ativado! Localizaзгo : Ponto de pesca.");
TogglePlayerControllable(playerid, 1);
GPSPos[playerid] = 1;
}
else if(listitem == 16)
{
SetPlayerCheckpoint(playerid,536.6308,-1765.9327,14.3132,6.0);
SendClientMessage(playerid, COLOR_YELLOW, "[INFO] GPS Ativado! Localizaзгo : Venda de pesca.");
TogglePlayerControllable(playerid, 1);
GPSPos[playerid] = 1;
}
else if(listitem == 17)
{
SetPlayerCheckpoint(playerid,1858.3388,-2444.1955,13.5546,6.0);
SendClientMessage(playerid, COLOR_YELLOW, "[INFO] GPS Ativado! Localizaзгo : Aeroporto de Los Santos.");
TogglePlayerControllable(playerid, 1);
GPSPos[playerid] = 1;
}
else if(listitem == 18)
{
SetPlayerCheckpoint(playerid,1381.6619,-1753.5095, 13.5469,6.0);
SendClientMessage(playerid, COLOR_YELLOW, "[INFO] GPS Ativado! Localizaзгo : Centro de Licencas.");
TogglePlayerControllable(playerid, 1);
GPSPos[playerid] = 1;
}
else if(listitem == 19)
{
SetPlayerCheckpoint(playerid,836.1819,-2060.3032,12.8672,6.0);
SendClientMessage(playerid, COLOR_YELLOW, "[INFO] GPS Ativado! Localizaзгo : Ilha.");
TogglePlayerControllable(playerid, 1);
GPSPos[playerid] = 1;
}
}
}
}