02.04.2012, 00:47
Desculpem Eu Dar Outro Topico ¬¬ Mas E Que Eu Estou Precisando Muito da Ajuda de Vocкs
E Nessas Entradas Quando Eu Entro Ela Entra no Interior Normal Mas Quando Eu Saio ele Sai em Outro Lugar Ex:
Entro Em Pref de Ls Saio na Pref de LV
Alguem Pode Ajudar Por Favor
Tentativa:
Comandos
Entradas e Saidas de Ls
Entradas e Saidas de Lv
Botoes
Essa Aki So da Para no Interior e Ele Buga o Serve Todo e Nao da para Sair
By: Rjjj
Comandos
Botoes
Byteeldark
Comandos
Botoes
Alguem Poderia Me Ajudar PF '-'
E Nessas Entradas Quando Eu Entro Ela Entra no Interior Normal Mas Quando Eu Saio ele Sai em Outro Lugar Ex:
Entro Em Pref de Ls Saio na Pref de LV
Alguem Pode Ajudar Por Favor
Tentativa:
Comandos
Entradas e Saidas de Ls
pawn Код:
if(strcmp(cmdtext, "/LosSantosEntrar", true) == 0)
{
if(IsPlayerInRangeOfPoint(playerid, 2.0, 1480.8795,-1771.4631,18.7958))//Prefeitura Ls
{
SetPlayerInterior(playerid, 3);
SetPlayerPos(playerid,385.4674,173.9319,1008.3828); //Prefeitura Ls
}
if(IsPlayerInRangeOfPoint(playerid, 2.0, 1297.5850,-1423.7469,14.9531))//Auto Escola Ls
{
SetPlayerInterior(playerid, 10);
SetPlayerPos(playerid,245.5392,112.9773,1003.2188); //Auto Escola Ls
}
if(IsPlayerInRangeOfPoint(playerid, 2.0, 1352.2056,-1758.6322,13.5078))//Loja De Utilidade Ls
{
SetPlayerInterior(playerid, 18);
SetPlayerPos(playerid,-31.8536,-89.5964,1003.5469); //Loja De Utilidade Ls
}
if(IsPlayerInRangeOfPoint(playerid, 2.0, 1554.9529,-1675.5452,16.1953))//DP Ls
{
SetPlayerInterior(playerid, 6);
SetPlayerPos(playerid,246.7995,65.9249,1003.6406); //DP Ls
}
if(IsPlayerInRangeOfPoint(playerid, 2.0, 1154.0659,-1771.8986,16.5992))//Academia Ls
{
SetPlayerInterior(playerid, 5);
SetPlayerPos(playerid,772.2243,-1.5818,1000.7274); //Academia Ls
}
if(IsPlayerInRangeOfPoint(playerid, 2.0, 1411.6390,-1699.9222,13.5395))//Banco Lv
{
SetPlayerInterior(playerid, 3);
SetPlayerPos(playerid,829.6920,5.3135,1004.1870); //Banco Lv
}
if(IsPlayerInRangeOfPoint(playerid, 2.0, 1163.1570,-1694.1464,14.1719))//Loja De Roupas Ls
{
SetPlayerInterior(playerid, 3);
SetPlayerPos(playerid,207.0979,-137.2776,1002.8744); //Loja De Roupas Ls
}
if(IsPlayerInRangeOfPoint(playerid, 2.0, 1368.3270,-1279.8624,13.5469))//Loja De Armas Ls
{
SetPlayerInterior(playerid, 7);
SetPlayerPos(playerid,315.5569,-141.2360,999.6016); //Loja De Armas Ls
}
if(IsPlayerInRangeOfPoint(playerid, 2.0, 1567.9241,-1897.4308,13.5607))//Bar LV
{
SetPlayerInterior(playerid, 3);
SetPlayerPos(playerid,1212.1914,-28.5221,1000.9531); //Bar Lv
}
return true; // Returnando a 1
}
if(strcmp(cmdtext, "/LosSantosSair", true) == 0)
{
if(IsPlayerInRangeOfPoint(playerid, 2.0, 389.0495,173.6506,1008.3828))//Prefeitura Ls
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, 1480.6866,-1768.7736,18.7958); //Prefeitura Ls
}
if(IsPlayerInRangeOfPoint(playerid, 2.0, 246.2520,108.1373,1003.2188))//Auto Escola Ls
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid,1296.8510,-1418.9569,14.1520); //Auto Escola Ls
}
if(IsPlayerInRangeOfPoint(playerid, 2.0, -31.1073,-91.4312,1003.5469))//Loja De Utilidade Ls
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid,1351.7350,-1754.5626,13.3494); //Loja De Utilidade Ls
}
if(IsPlayerInRangeOfPoint(playerid, 2.0, 246.9346,62.4051,1003.6406))//DP Ls
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid,1549.9392,-1676.1322,15.1908); //DP Ls
}
if(IsPlayerInRangeOfPoint(playerid, 2.0, 772.3262,-5.1436,1000.7287))//Academia Ls
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid,1153.3905,-1770.2196,16.5938); //Academia Ls
}
if(IsPlayerInRangeOfPoint(playerid, 2.0, 834.0978,7.4395,1004.1797))//Banco Ls
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid,1414.9572,-1702.0819,13.5395); //Banco Ls
}
if(IsPlayerInRangeOfPoint(playerid, 2.0, 206.9967,-140.3296,1003.5078))//Loja De Roupas Ls
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid,1157.8561,-1694.9485,13.9531); //Loja De Roupas Ls
}
if(IsPlayerInRangeOfPoint(playerid, 2.0, 315.6995,-143.8061,999.6016))//Loja De Armas Ls
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid,1364.3126,-1279.5771,13.5469); //Loja De Armas Ls
}
if(IsPlayerInRangeOfPoint(playerid, 2.0, 1212.1920,-25.8786,1000.9531))//Bar Ls
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid,1567.5786,-1895.1635,13.5602); //Bar Ls
}
if(IsPlayerInRangeOfPoint(playerid, 2.0, 2196.4326,1677.2306,12.3672))//Prefeitura Las Venture
{
SetPlayerInterior(playerid, 3);
SetPlayerPos(playerid,385.4674,173.9319,1008.3828); //Prefeitura Las Venture
}
return true; // Returnando a 1
}
pawn Код:
if(strcmp(cmdtext, "/LasVenturasEntrar", true) == 0)
{
if(IsPlayerInRangeOfPoint(playerid, 2.0, 1952.2542,1342.9927,15.3746))//Loja De Roupas Las Venture
{
SetPlayerInterior(playerid, 3);
SetPlayerPos(playerid,207.0979,-137.2776,1002.8744); //Loja De Roupas Las Venture
}
if(IsPlayerInRangeOfPoint(playerid, 2.0, 1968.6689,2295.0244,16.4559))//Academia Las Venture
{
SetPlayerInterior(playerid, 5);
SetPlayerPos(playerid,772.2243,-1.5818,1000.7274); //Academia Las Venture
}
if(IsPlayerInRangeOfPoint(playerid, 2.0, 2289.9480,2431.7009,10.8203))//DP Las Venture
{
SetPlayerInterior(playerid, 6);
SetPlayerPos(playerid,246.7995,65.9249,1003.6406); //DP Las Venture
}
if(IsPlayerInRangeOfPoint(playerid, 2.0, 2194.6040,1990.9104,12.2969))//Loja De Utilidade Las Venture
{
SetPlayerInterior(playerid, 18);
SetPlayerPos(playerid,-31.8536,-89.5964,1003.5469); //Loja De Utilidade Las Venture
}
if(IsPlayerInRangeOfPoint(playerid, 2.0, 2200.8933,1394.5096,11.0625))//Loja De Armas Lv
{
SetPlayerInterior(playerid, 7);
SetPlayerPos(playerid,315.5569,-141.2360,999.6016); //Loja De Armas Lv
}
if(IsPlayerInRangeOfPoint(playerid, 2.0, 2015.5875,1105.8513,10.8203))//Bar LV
{
SetPlayerInterior(playerid, 3);
SetPlayerPos(playerid,1212.1914,-28.5221,1000.9531); //Bar Lv
}
if(IsPlayerInRangeOfPoint(playerid, 2.0, 2015.2686,1183.8424,10.8203))//Cartorio Lv
{
SetPlayerInterior(playerid, 10);
SetPlayerPos(playerid,245.5392,112.9773,1003.2188); //Auto Escola Lv
}
if(IsPlayerInRangeOfPoint(playerid, 2.0, 2374.0017,2168.1934,10.8245))//Banco Lv
{
SetPlayerInterior(playerid, 3);
SetPlayerPos(playerid,829.6920,5.3135,1004.1870); //Banco Lv
}
if(IsPlayerInRangeOfPoint(playerid, 2.0, 389.0495,173.6506,1008.3828))//Prefeitura Las Venture
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, 2193.2810,1676.6268,12.3672); //Prefeitura Las Venture
}
return true; // Returnando a 1
}
if(strcmp(cmdtext, "/LasVenturasSair", true) == 0)
{
if(IsPlayerInRangeOfPoint(playerid, 2.0, 206.9967,-140.3296,1003.5078))//Loja De Roupas Las Venture
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid,1958.1155,1343.2960,15.3746); //Loja De Roupas Las Venture
}
if(IsPlayerInRangeOfPoint(playerid, 2.0, 772.3262,-5.1436,1000.7287))//Academia Las Venture
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid,1963.7617,2294.5278,16.4559); //Academia Las Venture
}
if(IsPlayerInRangeOfPoint(playerid, 2.0, 246.9346,62.4051,1003.6406))//DP Las Venture
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid,2289.8254,2427.2874,10.8203); //DP Las Venture
}
if(IsPlayerInRangeOfPoint(playerid, 2.0, -31.1073,-91.4312,1003.5469))//Loja De Utilidade Las Venture
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid,2192.2788,1989.3683,12.2657); //Loja De Utilidade Las Venture
}
if(IsPlayerInRangeOfPoint(playerid, 2.0, 315.6995,-143.8061,999.6016))//Loja De Armas Lv
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid,2201.4021,1386.0597,10.8203); //Loja De Armas Lv
}
if(IsPlayerInRangeOfPoint(playerid, 2.0, 1212.1920,-25.8786,1000.9531))//Bar LV
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid,2017.6279,1102.4275,10.8203); //Bar Lv
}
if(IsPlayerInRangeOfPoint(playerid, 2.0, 246.2520,108.1373,1003.2188))//Cartorio Lv
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid,2018.8411,1179.4906,10.8203); //Auto Escola Lv
}
if(IsPlayerInRangeOfPoint(playerid, 2.0, 834.0978,7.4395,1004.1797))//Banco Lv
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid,2368.5071,2164.0110,10.8282); //Banco Lv
}
if(IsPlayerInRangeOfPoint(playerid, 2.0, 389.0495,173.6506,1008.3828))//Prefeitura Las Venture
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, 2193.2810,1676.6268,12.3672); //Prefeitura Las Venture
}
return true; // Returnando a 1
}
pawn Код:
if ((newkeys==KEY_SECONDARY_ATTACK)) // Key ( F / Enter )
{
OnPlayerCommandText(playerid,"/LosSantosEntrar");
OnPlayerCommandText(playerid,"/LosSantosSair");
OnPlayerCommandText(playerid,"/LasVenturasEntrar");
OnPlayerCommandText(playerid,"/LasVenturasSair");
}
Essa Aki So da Para no Interior e Ele Buga o Serve Todo e Nao da para Sair
By: Rjjj
Comandos
pawn Код:
if(strcmp(cmdtext, "/LosSantosEntrar", true) == 0)
{
if(IsPlayerInRangeOfPoint(playerid, 2.0, 1480.8795,-1771.4631,18.7958))//Prefeitura Ls
{
SetPlayerVirtualWorld(playerid, 1);
SetPlayerInterior(playerid, 3);
SetPlayerPos(playerid,385.4674,173.9319,1008.3828); //Prefeitura Ls
}
if(IsPlayerInRangeOfPoint(playerid, 2.0, 1297.5850,-1423.7469,14.9531))//Auto Escola Ls
{
SetPlayerVirtualWorld(playerid, 1);
SetPlayerInterior(playerid, 10);
SetPlayerPos(playerid,245.5392,112.9773,1003.2188); //Auto Escola Ls
}
if(IsPlayerInRangeOfPoint(playerid, 2.0, 1352.2056,-1758.6322,13.5078))//Loja De Utilidade Ls
{
SetPlayerVirtualWorld(playerid, 1);
SetPlayerInterior(playerid, 18);
SetPlayerPos(playerid,-31.8536,-89.5964,1003.5469); //Loja De Utilidade Ls
}
if(IsPlayerInRangeOfPoint(playerid, 2.0, 1554.9529,-1675.5452,16.1953))//DP Ls
{
SetPlayerVirtualWorld(playerid, 1);
SetPlayerInterior(playerid, 6);
SetPlayerPos(playerid,246.7995,65.9249,1003.6406); //DP Ls
}
if(IsPlayerInRangeOfPoint(playerid, 2.0, 1154.0659,-1771.8986,16.5992))//Academia Ls
{
SetPlayerVirtualWorld(playerid, 1);
SetPlayerInterior(playerid, 5);
SetPlayerPos(playerid,772.2243,-1.5818,1000.7274); //Academia Ls
}
if(IsPlayerInRangeOfPoint(playerid, 2.0, 1411.6390,-1699.9222,13.5395))//Banco Lv
{
SetPlayerVirtualWorld(playerid, 1);
SetPlayerInterior(playerid, 3);
SetPlayerPos(playerid,829.6920,5.3135,1004.1870); //Banco Lv
}
if(IsPlayerInRangeOfPoint(playerid, 2.0, 1163.1570,-1694.1464,14.1719))//Loja De Roupas Ls
{
SetPlayerVirtualWorld(playerid, 1);
SetPlayerInterior(playerid, 3);
SetPlayerPos(playerid,207.0979,-137.2776,1002.8744); //Loja De Roupas Ls
}
if(IsPlayerInRangeOfPoint(playerid, 2.0, 1368.3270,-1279.8624,13.5469))//Loja De Armas Ls
{
SetPlayerVirtualWorld(playerid, 1);
SetPlayerInterior(playerid, 7);
SetPlayerPos(playerid,315.5569,-141.2360,999.6016); //Loja De Armas Ls
}
if(IsPlayerInRangeOfPoint(playerid, 2.0, 1567.9241,-1897.4308,13.5607))//Bar LV
{
SetPlayerVirtualWorld(playerid, 1);
SetPlayerInterior(playerid, 3);
SetPlayerPos(playerid,1212.1914,-28.5221,1000.9531); //Bar Lv
}
return true; // Returnando a 1
}
if(strcmp(cmdtext, "/LosSantosSair", true) == 0)
{
if(GetPlayerVirtualWorld(playerid) != 1) return true;
SetPlayerVirtualWorld(playerid, 0);
if(IsPlayerInRangeOfPoint(playerid, 2.0, 385.4674,173.9319,1008.3828))//Prefeitura Ls
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, 1480.8795,-1771.4631,18.7958); //Prefeitura Ls
}
if(IsPlayerInRangeOfPoint(playerid, 2.0, 246.2520,108.1373,1003.2188))//Auto Escola Ls
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid,1296.8510,-1418.9569,14.1520); //Auto Escola Ls
}
if(IsPlayerInRangeOfPoint(playerid, 2.0, -31.1073,-91.4312,1003.5469))//Loja De Utilidade Ls
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid,1351.7350,-1754.5626,13.3494); //Loja De Utilidade Ls
}
if(IsPlayerInRangeOfPoint(playerid, 2.0, 246.9346,62.4051,1003.6406))//DP Ls
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid,1549.9392,-1676.1322,15.1908); //DP Ls
}
if(IsPlayerInRangeOfPoint(playerid, 2.0, 772.3262,-5.1436,1000.7287))//Academia Ls
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid,1153.3905,-1770.2196,16.5938); //Academia Ls
}
if(IsPlayerInRangeOfPoint(playerid, 2.0, 834.0978,7.4395,1004.1797))//Banco Ls
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid,1414.9572,-1702.0819,13.5395); //Banco Ls
}
if(IsPlayerInRangeOfPoint(playerid, 2.0, 206.9967,-140.3296,1003.5078))//Loja De Roupas Ls
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid,1157.8561,-1694.9485,13.9531); //Loja De Roupas Ls
}
if(IsPlayerInRangeOfPoint(playerid, 2.0, 315.6995,-143.8061,999.6016))//Loja De Armas Ls
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid,1364.3126,-1279.5771,13.5469); //Loja De Armas Ls
}
if(IsPlayerInRangeOfPoint(playerid, 2.0, 1212.1920,-25.8786,1000.9531))//Bar Ls
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid,1567.5786,-1895.1635,13.5602); //Bar Ls
}
return true; // Returnando a 1
}
if(strcmp(cmdtext, "/LasVenturasEntrar", true) == 0)
{
if(IsPlayerInRangeOfPoint(playerid, 2.0, 1952.2542,1342.9927,15.3746))//Loja De Roupas Las Venture
{
SetPlayerVirtualWorld(playerid, 2);
SetPlayerInterior(playerid, 3);
SetPlayerPos(playerid,207.0979,-137.2776,1002.8744); //Loja De Roupas Las Venture
}
if(IsPlayerInRangeOfPoint(playerid, 2.0, 1968.6689,2295.0244,16.4559))//Academia Las Venture
{
SetPlayerVirtualWorld(playerid, 2);
SetPlayerInterior(playerid, 5);
SetPlayerPos(playerid,772.2243,-1.5818,1000.7274); //Academia Las Venture
}
if(IsPlayerInRangeOfPoint(playerid, 2.0, 2289.9480,2431.7009,10.8203))//DP Las Venture
{
SetPlayerVirtualWorld(playerid, 2);
SetPlayerInterior(playerid, 6);
SetPlayerPos(playerid,246.7995,65.9249,1003.6406); //DP Las Venture
}
if(IsPlayerInRangeOfPoint(playerid, 2.0, 2194.6040,1990.9104,12.2969))//Loja De Utilidade Las Venture
{
SetPlayerVirtualWorld(playerid, 2);
SetPlayerInterior(playerid, 18);
SetPlayerPos(playerid,-31.8536,-89.5964,1003.5469); //Loja De Utilidade Las Venture
}
if(IsPlayerInRangeOfPoint(playerid, 2.0, 2200.8933,1394.5096,11.0625))//Loja De Armas Lv
{
SetPlayerVirtualWorld(playerid, 2);
SetPlayerInterior(playerid, 7);
SetPlayerPos(playerid,315.5569,-141.2360,999.6016); //Loja De Armas Lv
}
if(IsPlayerInRangeOfPoint(playerid, 2.0, 2015.5875,1105.8513,10.8203))//Bar LV
{
SetPlayerVirtualWorld(playerid, 2);
SetPlayerInterior(playerid, 3);
SetPlayerPos(playerid,1212.1914,-28.5221,1000.9531); //Bar Lv
}
if(IsPlayerInRangeOfPoint(playerid, 2.0, 2015.2686,1183.8424,10.8203))//Cartorio Lv
{
SetPlayerVirtualWorld(playerid, 2);
SetPlayerInterior(playerid, 10);
SetPlayerPos(playerid,245.5392,112.9773,1003.2188); //Auto Escola Lv
}
if(IsPlayerInRangeOfPoint(playerid, 2.0, 2374.0017,2168.1934,10.8245))//Banco Lv
{
SetPlayerVirtualWorld(playerid, 2);
SetPlayerInterior(playerid, 3);
SetPlayerPos(playerid,829.6920,5.3135,1004.1870); //Banco Lv
}
if(IsPlayerInRangeOfPoint(playerid, 2.0, 2193.2810,1676.6268,12.3672))//Prefeitura Las Venture
{
SetPlayerVirtualWorld(playerid, 2);
SetPlayerInterior(playerid, 3);
SetPlayerPos(playerid, 389.0495,173.6506,1008.3828); //Prefeitura Las Venture
}
return true; // Returnando a 1
}
if(strcmp(cmdtext, "/LasVenturasSair", true) == 0)
{
if(GetPlayerVirtualWorld(playerid) != 2) return true;
SetPlayerVirtualWorld(playerid, 0);
if(IsPlayerInRangeOfPoint(playerid, 2.0, 206.9967,-140.3296,1003.5078))//Loja De Roupas Las Venture
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid,1958.1155,1343.2960,15.3746); //Loja De Roupas Las Venture
}
if(IsPlayerInRangeOfPoint(playerid, 2.0, 772.3262,-5.1436,1000.7287))//Academia Las Venture
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid,1963.7617,2294.5278,16.4559); //Academia Las Venture
}
if(IsPlayerInRangeOfPoint(playerid, 2.0, 246.9346,62.4051,1003.6406))//DP Las Venture
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid,2289.8254,2427.2874,10.8203); //DP Las Venture
}
if(IsPlayerInRangeOfPoint(playerid, 2.0, -31.1073,-91.4312,1003.5469))//Loja De Utilidade Las Venture
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid,2192.2788,1989.3683,12.2657); //Loja De Utilidade Las Venture
}
if(IsPlayerInRangeOfPoint(playerid, 2.0, 315.6995,-143.8061,999.6016))//Loja De Armas Lv
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid,2201.4021,1386.0597,10.8203); //Loja De Armas Lv
}
if(IsPlayerInRangeOfPoint(playerid, 2.0, 1212.1920,-25.8786,1000.9531))//Bar LV
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid,2017.6279,1102.4275,10.8203); //Bar Lv
}
if(IsPlayerInRangeOfPoint(playerid, 2.0, 246.2520,108.1373,1003.2188))//Cartorio Lv
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid,2018.8411,1179.4906,10.8203); //Auto Escola Lv
}
if(IsPlayerInRangeOfPoint(playerid, 2.0, 834.0978,7.4395,1004.1797))//Banco Lv
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid,2368.5071,2164.0110,10.8282); //Banco Lv
}
if(IsPlayerInRangeOfPoint(playerid, 2.0, 389.0495,173.6506,1008.3828))//Prefeitura Las Venture
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, 2193.2810,1676.6268,12.3672); //Prefeitura Las Venture
}
return true; // Returnando a 1
}
pawn Код:
if ((newkeys==KEY_SECONDARY_ATTACK)) // Key ( F / Enter )
{
if(GetPlayerInterior(playerid))
{
OnPlayerCommandText(playerid,"/LosSantosSair");
OnPlayerCommandText(playerid,"/LasVenturasSair");
}
else
{
OnPlayerCommandText(playerid,"/LosSantosEntrar");
OnPlayerCommandText(playerid,"/LasVenturasEntrar");
}
}
Comandos
pawn Код:
if(strcmp(cmdtext, "/entrar", true) == 0)
{
// entradas ls
playerpoint(playerid, 2.0, 1480.8795,-1771.4631,18.7958, 385.4674,173.9319,1008.3828,3); //1
//playerpoint(playerid, 2.0, 1297.5850,-1423.7469,14.9531, 245.5392,112.9773,1003.2188,11); //2 -- delegacia de polica de lv
playerpoint(playerid, 2.0, 1352.2056,-1758.6322,13.5078, -25.884498,-185.868988,1003.546875,17); //3
playerpoint(playerid, 2.0, 1554.9529,-1675.5452,16.1953, 246.7995,65.9249,1003.6406,6); //4
//playerpoint(playerid, 2.0, 1154.0659,-1771.8986,16.5992, 772.2243,-1.5818,1000.7274,5); //5
//playerpoint(playerid, 2.0, 1411.6390,-1699.9222,13.5395, 829.6920,5.3135,1004.1870,3); //6
playerpoint(playerid, 2.0, 1163.1570,-1694.1464,14.1719, 204.332992,-166.694992,1000.523437,14); //7
playerpoint(playerid, 2.0, 1368.3270,-1279.8624,13.5469, 286.800994,-82.547599,1001.515625,4); //8
playerpoint(playerid, 2.0, 1567.9241,-1897.4308,13.5, 493.390991,-22.722799,1000.679687,17); //9
//--- entradas lv
playerpoint(playerid, 2.0, 1952.2542,1342.9927,15.3746, 207.0979,-137.2776,1002.8744,3); //10
playerpoint(playerid, 2.0, 1968.6689,2295.0244,16.4559, 772.2243,-1.5818,1000.7274,5); //11
playerpoint(playerid, 2.0, 2289.9480,2431.7009,10.8203, 288.745971,169.350997,1007.171875,3); //12
playerpoint(playerid, 2.0, 2194.6040,1990.9104,12.2969, -31.8536,-89.5964,1003.5469,18); //13
playerpoint(playerid, 2.0, 2200.8933,1394.5096,11.0625, 315.5569,-141.2360,999.6016,7); //14
playerpoint(playerid, 2.0, 2015.5875,1105.8513,10.8203, 1212.1914,-28.5221,1000.9531,3); //15
playerpoint(playerid, 2.0, 2387.9685,2466.6338,10.8203, 245.5392,112.9773,1003.2188,10); //16
playerpoint(playerid, 2.0, 2374.0017,2168.1934,10.8245, 829.6920,5.3135,1004.1870,3); //17
playerpoint(playerid, 2.0, 389.0495,173.6506,1008.3828, 2193.2810,1676.6268,12.3672,0); //18 - no meu gm cai no ar
return 1;
}
if(strcmp(cmdtext, "/sair", true) == 0)
{
// --- saidas ls
playerpoint(playerid, 2.0, 385.4674,173.9319,1008.3828, 1480.8795,-1771.4631,18.7958,0); //1
//playerpoint(playerid, 2.0, 245.5392,112.9773,1003.2188, 1297.5850,-1423.7469,14.9531,0); //2
playerpoint(playerid, 2.0, -25.884498,-185.868988,1003.546875, 1352.2056,-1758.6322,13.5078,0); //3
playerpoint(playerid, 2.0, 246.7995,65.9249,1003.6406, 1554.9529,-1675.5452,16.1953,0); //4
//playerpoint(playerid, 2.0, 772.2243,-1.5818,1000.7274, 1154.0659,-1771.8986,16.5992,0); //5 akdemia so sai na de lv.
//playerpoint(playerid, 2.0, 829.6920,5.3135,1004.1870, 1411.6390,-1699.9222,13.5395,0); //6 loteria so sai em lv
playerpoint(playerid, 2.0, 204.332992,-166.694992,1000.523437, 1163.1570,-1694.1464,14.1719,0); //7
playerpoint(playerid, 2.0, 286.800994,-82.547599,1001.515625, 1368.3270,-1279.8624,13.5469,0); //8
playerpoint(playerid, 2.0, 493.390991,-22.722799,1000.679687, 1567.9241,-1897.4308,13.5,0); //9
//---- saidas lv
playerpoint(playerid, 2.0, 207.0979,-137.2776,1002.8744, 1952.2542,1342.9927,15.3746,0); //10
playerpoint(playerid, 2.0, 772.2243,-1.5818,1000.7274, 1968.6689,2295.0244,16.4559,0); //11
playerpoint(playerid, 2.0, 288.745971,169.350997,1007.171875, 2289.9480,2431.7009,10.8203,0); //12
playerpoint(playerid, 2.0, -31.8536,-89.5964,1003.5469, 2194.6040,1990.9104,12.2969,0); //13
playerpoint(playerid, 2.0, 315.5569,-141.2360,999.6016, 2200.8933,1394.5096,11.0625,0); //14
playerpoint(playerid, 2.0, 1212.1914,-28.5221,1000.9531, 2015.5875,1105.8513,10.8203,0); //15
playerpoint(playerid, 2.0, 245.5392,112.9773,1003.2188, 2387.9685,2466.6338,10.8203, 0); //16
playerpoint(playerid, 2.0, 829.6920,5.3135,1004.1870, 2374.0017,2168.1934,10.8245,0); //17
playerpoint(playerid, 2.0, 2193.2810,1676.6268,12.3672, 389.0495,173.6506,1008.3828,0); //18
return 1;
}
pawn Код:
if ((newkeys==KEY_SECONDARY_ATTACK)) // Key ( F / Enter )
{
OnPlayerCommandText(playerid,"/entrar");
OnPlayerCommandText(playerid,"/sair");
}
// no final do GM.
stock playerpoint(playerid,Float:raio,Float:PointX,Float:PointY,Float:PointZ,Float:OtherPointX,Float:OtherPointY,Float:OtherPointZ,Interior)
{
if(IsPlayerInRangeOfPoint(playerid, raio, PointX, PointY, PointZ))
{
SetPlayerInterior(playerid, Interior);
SetPlayerPos(playerid,OtherPointX,OtherPointY,OtherPointZ);
}
return 1;
}
Alguem Poderia Me Ajudar PF '-'