17.01.2013, 11:22
Os comandos /entrar e /sair deixam de fuincionar quando estгo 2 players ou mais online no servidor.
Os dialog's e os teleportes para entrar e sair dos interiores deixam de funcionar, se alguem souber o que possa ser da uma ajuda ai , desde ja agradeco.
Os dialog's e os teleportes para entrar e sair dos interiores deixam de funcionar, se alguem souber o que possa ser da uma ajuda ai , desde ja agradeco.
pawn Код:
if(strcmp(cmd, "/entrar", true) == 0)
{
if(IsPlayerConnected(playerid))
{
for(new i = 0; i < sizeof(HouseInfo); i++)
{
if (PlayerToPoint(2.5, playerid,HouseInfo[i][hEntrancex], HouseInfo[i][hEntrancey], HouseInfo[i][hEntrancez]))
{
if(PlayerInfo[playerid][pPHousekey] == i || HouseInfo[i][hLock] == 0)
{
SetPlayerInterior(playerid,HouseInfo[i][hInt]);
SetPlayerVirtualWorld(playerid,HouseInfo[i][hWorld]);
SetPlayerPos(playerid,HouseInfo[i][hExitx],HouseInfo[i][hExity],HouseInfo[i][hExitz]);
GameTextForPlayer(playerid, "~w~Bem vindo em casa", 5000, 1);
PlayerInfo[playerid][pInt] = HouseInfo[i][hInt];
PlayerInfo[playerid][pLocal] = i;
HouseEntered[playerid] = i;
SetPlayerVirtualWorld(playerid,HouseInfo[i][hWorld]);
SetPlayerVirtualWorld(playerid,HouseInfo[i][hWorld]);
SetPlayerVirtualWorld(playerid,HouseInfo[i][hWorld]);
}
else
{
GameTextForPlayer(playerid, "~r~Fechado", 5000, 1);
}
}
}
for(new i = 0; i < sizeof(BizzInfo); i++)
{
if (PlayerToPoint(2.5, playerid,BizzInfo[i][bEntranceX], BizzInfo[i][bEntranceY], BizzInfo[i][bEntranceZ]))
{
if(PlayerInfo[playerid][pPbiskey] == i || GetPlayerMoney(playerid) >= BizzInfo[i][bEntranceCost])
{
if(PlayerInfo[playerid][pPbiskey] != i)
{
if(BizzInfo[i][bLocked] == 1)
{
GameTextForPlayer(playerid, "~r~Fechado", 5000, 1);
return true;
}
GivePlayerMoney(playerid,-BizzInfo[i][bEntranceCost]);
format(string, sizeof(string), "~r~-R$%d~n~~w~Digite /sair~n~Para poder sair!", BizzInfo[i][bEntranceCost]);
BizzInfo[i][bTill] += BizzInfo[i][bEntranceCost];
ExtortionBiz(i, BizzInfo[i][bEntranceCost]);
OnPropUpdate();
GameTextForPlayer(playerid, string, 5000, 3);
}
SetPlayerInterior(playerid,BizzInfo[i][bInterior]);
SetPlayerPos(playerid,BizzInfo[i][bExitX],BizzInfo[i][bExitY],BizzInfo[i][bExitZ]);
PlayerInfo[playerid][pInt] = BizzInfo[i][bInterior];
PlayerInfo[playerid][pLocal] = i+99;
new dood[MAX_PLAYER_NAME];
GetPlayerName(playerid, dood, sizeof(dood));
format(string, sizeof(string), "%s pagou R$%d para entrar na empresa %d", dood, BizzInfo[i][bEntranceCost], i);
printf("%s", string);
//PayLog(string);
}
else
{
GameTextForPlayer(playerid, "~r~Voce nao tem dinheiro suficiente", 5000, 1);
}
}
}
for(new i = 0; i < sizeof(SBizzInfo); i++)
{
if (PlayerToPoint(1, playerid,SBizzInfo[i][sbEntranceX], SBizzInfo[i][sbEntranceY], SBizzInfo[i][sbEntranceZ]))
{
if(PlayerInfo[playerid][pPbiskey] == i || GetPlayerMoney(playerid) >= SBizzInfo[i][sbEntranceCost])
{
if(PlayerInfo[playerid][pPbiskey] != i)
{
if(SBizzInfo[i][sbLocked] == 1)
{
GameTextForPlayer(playerid, "~r~Fechado", 5000, 1);
return true;
}
GivePlayerMoney(playerid,-SBizzInfo[i][sbEntranceCost]);
gSpentCash[playerid] = GetPlayerMoney(playerid);
SBizzInfo[i][sbTill] += SBizzInfo[i][sbEntranceCost];
ExtortionSBiz(i, SBizzInfo[i][sbEntranceCost]);
new dood[MAX_PLAYER_NAME];
GetPlayerName(playerid, dood, sizeof(dood));
format(string, sizeof(string), "%s payed R$%d to enter sbiz %d", dood, SBizzInfo[i][sbEntranceCost], i);
printf("%s", string);
OnPropUpdate();
}
}
else
{
GameTextForPlayer(playerid, "~r~Voce nao tem dinheiro suficiente", 5000, 1);
}
}
}
if (PlayerToPoint(3, playerid,1484.3788,-1777.2107,13.6554))
{//Prefeitura
SetPlayerInterior(playerid,3);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerPos(playerid,387.7978,173.8582,1008.3828);
GameTextForPlayer(playerid, "~w~Bem vindo a ~n~~b~Prefeitura !", 5000, 1);
PlayerInfo[playerid][pInt] = 3;
PlayerInfo[playerid][pLocal] = 241;
}
if (PlayerToPoint(3, playerid,2025.3307,-1402.5562,17.2106))
{//HOSPITAL ENTRAR
SetPlayerPos(playerid,1165.2401,-1317.4412,-0.8598);
GameTextForPlayer(playerid, "~w~Bem vindo ao ~n~~b~Hospital !", 5000, 1);
}
if (PlayerToPoint(1, playerid,306.3995,-159.1051,999.5938))
{//COFRE LOJA DE ARMAS 1 ENTRADA
SetPlayerPos(playerid,305.05056762695,-159.16743469238,999.59375);
GameTextForPlayer(playerid, "~w~Cofre", 5000, 1);
PlayerInfo[playerid][pInt] = 6;
SetPlayerInterior(playerid,6);
}
if (PlayerToPoint(1, playerid,301.7848,-76.6545,1001.5156))
{//COFRE LOJA DE ARMAS 2 ENTRADA
SetPlayerPos(playerid,301.71704101563,-75.318428039551,1001.515625);
GameTextForPlayer(playerid, "~w~Cofre", 5000, 1);
PlayerInfo[playerid][pInt] = 4;
SetPlayerInterior(playerid,4);
}
else if (PlayerToPoint(1, playerid,1570.3828,-1333.8882,16.4844))
{
SetPlayerPos(playerid, 1545.0068,-1366.5094,327.2868);
}
else if(PlayerToPoint(3, playerid,1554.9537,-1675.6584,16.1953))
{//Departamento de Policia Los Santos
GameTextForPlayer(playerid, "~w~Departamento da Policia Militar", 5000, 1);
//SetPlayerVirtualWorld(playerid, 1);
SetPlayerInterior(playerid, 6);
SetPlayerPos(playerid,246.5878,62.7877,1003.6406);
PlayerInfo[playerid][pInt] = 6;
}
else if(PlayerToPoint(2, playerid,1434.1337,-968.4908,37.3894))
{
SetPlayerInterior(playerid,1);
SetPlayerPos(playerid,2155.9976,1597.9829,999.9699);
}
else if (PlayerToPoint(3.0, playerid,2155.9976,1597.9829,999.9699))
{
GameTextForPlayer(playerid, "~w~Cofre", 5000, 1);
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,1434.1337,-968.4908,37.3894);
}
else if(PlayerToPoint(2, playerid,2315.5200,0.3490,26.7422))
{
SetPlayerInterior(playerid,1);
SetPlayerPos(playerid,2167.6201,1618.4679,999.9777);
GameTextForPlayer(playerid, "~w~Cofre", 5000, 3);
}
else if (PlayerToPoint(3.0, playerid,2167.6201,1618.4679,999.9777))
{
GameTextForPlayer(playerid, "~w~Banco", 5000, 1);
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,2315.5200,0.3490,26.7422);
}
else if(PlayerToPoint(3, playerid,2244.5669,-1664.4495,15.4766))
{//Entrada Binco
GameTextForPlayer(playerid, "~w~Binco", 5000, 1);
SetPlayerVirtualWorld(playerid, 0);
SendClientMessage(playerid, COR_GERAL, "DICA: Use /meuskin para mudar sua roupa");
SetPlayerInterior(playerid, 1);
SetPlayerPos(playerid,204,-49,1002);
PlayerInfo[playerid][pInt] = 1;
}
else if (PlayerToPoint(3, playerid,461.3484,-1500.9084,31.0592))
{//Entrado mercado 24/7
SetPlayerPos(playerid, 226.293991,-7.431529,1002.210937);
GameTextForPlayer(playerid, "~w~VICTIM",5000,1);
SetPlayerVirtualWorld(playerid, 0);
SendClientMessage(playerid, COR_GERAL, "DICA: Use /meuskin para mudar sua roupa");
SetPlayerInterior(playerid,5);
SetPlayerFacingAngle(playerid, 0);
PlayerInfo[playerid][pInt] = 5;
}
else if(PlayerToPoint(3, playerid,1836.4064,-1682.4403,13.3493))
{//Alhambra Entrance
GameTextForPlayer(playerid, "~w~Alhambra", 5000, 1);
SetPlayerInterior(playerid, 17);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerPos(playerid,493.3891,-22.7212,1000.6797);
PlayerInfo[playerid][pInt] = 17;
}
else if(PlayerToPoint(3, playerid,-2281.4065,2288.4255,4.9669))
{//ENTRADA HQ GI
GameTextForPlayer(playerid, "~w~HQ GI", 5000, 1);
SetPlayerInterior(playerid, 4);
SetPlayerPos(playerid,-261,1457,1085);
PlayerInfo[playerid][pInt] = 4;
SetPlayerVirtualWorld(playerid, 0);
}
else if(PlayerToPoint(1, playerid,755.4222,-1361.7944,13.5132))
{//Entrada Reporters HQ
SetPlayerPos(playerid, 367.9629,194.3110,1008.3828);
GameTextForPlayer(playerid, "~w~Hq Reporters",5000,1);
SetPlayerInterior(playerid,3);
SetPlayerFacingAngle(playerid, 0);
PlayerInfo[playerid][pInt] = 3;
}
else if(PlayerToPoint(3, playerid,992.9674,-1459.9849,13.5469))
{//ENTRADA HQ CV
GameTextForPlayer(playerid, "~w~HQ Comando Vermelho", 5000, 1);
SetPlayerInterior(playerid, 6);
SetPlayerPos(playerid,2308.5269,-1211.2737,1049.0234);
PlayerInfo[playerid][pInt] = 6;
SetPlayerVirtualWorld(playerid, 0);
}
else if(PlayerToPoint(3, playerid,1106.5376,-299.6835,74.5391))
{//ENTRADA HQ ts
GameTextForPlayer(playerid, "~w~HQ Hitmans", 5000, 1);
SetPlayerInterior(playerid, 8);
SetPlayerPos(playerid,-42 ,1406, 1085);
PlayerInfo[playerid][pInt] = 8;
SetPlayerVirtualWorld(playerid, 0);
}
else if(PlayerToPoint(3, playerid, 1455.0348,749.8630,11.0234))
{//ENTRADA HQ admin
GameTextForPlayer(playerid, "~w~HQ Admin", 5000, 1);
SetPlayerInterior(playerid, 3);
SetPlayerPos(playerid,964 ,-53, 1002);
PlayerInfo[playerid][pInt] = 3;
SetPlayerVirtualWorld(playerid, 0);
}
else if(PlayerToPoint(3, playerid, 229.2918,-2186.2107,1.2488))
{//ENTRADA casa condo vip
GameTextForPlayer(playerid, "~w~Casa Vip", 5000, 1);
SetPlayerInterior(playerid, 2);
SetPlayerPos(playerid,2524 ,-1285, 1055);
PlayerInfo[playerid][pInt] = 2;
SetPlayerVirtualWorld(playerid, 0);
}
else if(PlayerToPoint(3, playerid,2421.4998,-1219.2438,25.5617))
{//Pigpen entrada
GameTextForPlayer(playerid, "~w~The Pig Pen", 5000, 1);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerInterior(playerid, 2);
SetPlayerPos(playerid,1205.0803,-9.9519,1000.9219);
PlayerInfo[playerid][pInt] = 2;
}
else if(PlayerToPoint(3, playerid,2229.9011,-1721.2582,13.5613))
{//Entrada Ginasio de Lutas
GameTextForPlayer(playerid, "~w~Ginasio de Lutas", 5000, 1);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerInterior(playerid, 5);
SetPlayerPos(playerid,771.9399,-2.2574,1000.7292);
PlayerInfo[playerid][pInt] = 5;
}
else if (PlayerToPoint(3, playerid,1631.8547,-1172.5637,24.0843))
{//Loterica entrada
SetPlayerPos(playerid, 832.6270,7.2666,1004.1797);
GameTextForPlayer(playerid, "~w~Loterica BKS",5000,1);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerInterior(playerid,3);
SetPlayerFacingAngle(playerid, 0);
PlayerInfo[playerid][pInt] = 3;
}
else if (PlayerToPoint(3, playerid,1200.4497,-918.7695,43.1105))
{//Entrada Burger Shot 1
SetPlayerPos(playerid, 366.0324,-72.6400,1001.5078);
GameTextForPlayer(playerid, "~w~Vinewood Burger Shot",5000,1);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerInterior(playerid,10);
SetPlayerFacingAngle(playerid, 0);
PlayerInfo[playerid][pInt] = 10;
InAFoodPlace[playerid] = 2;
SetPlayerCheckpoint(playerid, 376.8571,-67.6620,1001.5151, 1.0);
}
else if (PlayerToPoint(3, playerid,810.4855,-1616.1888,13.5469))
{//Entrada Burger Shot 2
SetPlayerPos(playerid, 681.5034,-452.0092,-25.6172);
GameTextForPlayer(playerid, "~w~Marina Burger Shot",5000,1);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerInterior(playerid,1);
SetPlayerFacingAngle(playerid, 0);
PlayerInfo[playerid][pInt] = 1;
InAFoodPlace[playerid] = 5;
SetPlayerCheckpoint(playerid, 683.9015,-456.7076,-25.6099, 1.0);
}
else if (PlayerToPoint(3, playerid,927.6217,-1353.0105,13.3438))
{//Entrada Cluckin Bell
SetPlayerPos(playerid, 365.7793,-9.1699,1001.8516);
GameTextForPlayer(playerid, "~w~Cluckin Bell", 5000, 1);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerInterior(playerid, 9);
SetPlayerFacingAngle(playerid, 0);
PlayerInfo[playerid][pInt] = 9;
InAFoodPlace[playerid] = 1;
SetPlayerCheckpoint(playerid, 368.9714,-6.2486,1001.8516, 1.0);
}
else if (PlayerToPoint(3, playerid,2105.4858,-1806.4725,13.5547))
{//Entrada Well Stacked Pizza
SetPlayerPos(playerid, 372.4117,-130.4577,1001.4922);
GameTextForPlayer(playerid, "~w~Well Stacked Pizza", 5000, 1);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerInterior(playerid, 5);
SetPlayerFacingAngle(playerid, 0);
PlayerInfo[playerid][pInt] = 5;
InAFoodPlace[playerid] = 3;
SetPlayerCheckpoint(playerid, 375.6895,-118.9683,1001.4995, 1.5);
}
else if (PlayerToPoint(3, playerid,975.4691,-1335.9618,13.5319))
{//Entrada SmK BAR
SetPlayerPos(playerid, 377.5237,-191.6597,1000.6328);
GameTextForPlayer(playerid, "~w~BKS's Bar", 5000, 1);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerInterior(playerid, 17);
SetPlayerFacingAngle(playerid, 0);
PlayerInfo[playerid][pInt] = 17;
InAFoodPlace[playerid] = 4;
SetPlayerCheckpoint(playerid, 379.0611,-186.6032,1000.6328, 1.0);
}
else if(PlayerToPoint(3, playerid,1833.6124,-1842.4968,13.5781))
{//24/7 estaзгo entrada
GameTextForPlayer(playerid, "~w~24/7", 5000, 1);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerInterior(playerid, 18);
SetPlayerPos(playerid,-30.9467,-89.6096,1003.5469);
PlayerInfo[playerid][pInt] = 18;
storeexit[playerid] = 1;
}
else if(PlayerToPoint(3, playerid,1000.5861,-919.8832,42.3281))
{//24/7 gas station entrance
GameTextForPlayer(playerid, "~w~24/7", 5000, 1);
SetPlayerInterior(playerid, 4);
SetPlayerPos(playerid,-28.2619,-26.2015,1003.5573);
PlayerInfo[playerid][pInt] = 4;
}
else if(PlayerToPoint(3, playerid,1928.6006,-1776.4480,13.5469))
{//24/7 lado hq pcc
GameTextForPlayer(playerid, "~w~24/7", 5000, 1);
SetPlayerInterior(playerid, 16);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerPos(playerid,-25.1326,-139.0670,1003.5469);
PlayerInfo[playerid][pInt] = 16;
}
else if (PlayerToPoint(3, playerid, 1315.5110,-898.9860,39.5781))
{//24/7 perto madd dogg
GameTextForPlayer(playerid, "~w~24/7", 5000, 1);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerInterior(playerid, 18);
SetPlayerPos(playerid,-30.9467,-89.6096,1003.5469);
PlayerInfo[playerid][pInt] = 18;
storeexit[playerid] = 2;
}
else if (PlayerToPoint(3, playerid, 1352.4357,-1759.0243,13.5078))
{//24/7 praзa dp
GameTextForPlayer(playerid, "~w~24/7", 5000, 1);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerInterior(playerid, 18);
SetPlayerPos(playerid,-30.9467,-89.6096,1003.5469);
PlayerInfo[playerid][pInt] = 18;
storeexit[playerid] = 3;
}
else if (PlayerToPoint(3, playerid,2480.9678,-1536.6002,24.1730))
{//HQ VAGOS
SetPlayerPos(playerid, 2350.6013,-1180.7566,1027.9766);
GameTextForPlayer(playerid, "~w~HQ Los Vagos",5000,1);
SetPlayerInterior(playerid,5);
SetPlayerFacingAngle(playerid, 0);
PlayerInfo[playerid][pInt] = 5;
SetPlayerVirtualWorld(playerid, 0);
}
if(PlayerToPoint(3, playerid,327.8898,-1511.8446,36.0325))
{//Entrada HQ BOPE
GameTextForPlayer(playerid, "~w~DP Rotam", 5000, 1);
SetPlayerInterior(playerid, 10);
SetPlayerPos(playerid,246.4631,110.1669,1003.2257);
PlayerInfo[playerid][pInt] = 10;
SetPlayerVirtualWorld(playerid, 0);
}
else if (PlayerToPoint(3, playerid,988.6390,-1356.8457,13.5530))
{//PF Entrada
SetPlayerPos(playerid, 238.7194,141.7792,1003.0234);
GameTextForPlayer(playerid, "~w~DP Policia Civil",5000,1);
SetPlayerInterior(playerid,3);
SetPlayerFacingAngle(playerid, 0);
PlayerInfo[playerid][pInt] = 3;
SetPlayerVirtualWorld(playerid, 0);
}
else if(PlayerToPoint(3, playerid,2263.5852,-1458.9557,24.0085))
{//ENTRADA HQ BALLAS
GameTextForPlayer(playerid, "~w~HQ Ballas", 5000, 1);
SetPlayerInterior(playerid, 10);
SetPlayerPos(playerid,2268.3950,-1210.5328,1047.7491);
PlayerInfo[playerid][pInt] = 10;
SetPlayerVirtualWorld(playerid, 0);
}
else if (PlayerToPoint(3, playerid,2495.3481,-1691.1355,14.7656))
{//HQ Groove Street Entrada
SetPlayerPos(playerid,2496.0061,-1693.5201,1014.7422);
GameTextForPlayer(playerid, "~g~Groove Street HQ",5000,1);
SetPlayerInterior(playerid,3);
SetPlayerFacingAngle(playerid, 181);
PlayerInfo[playerid][pInt] = 3;
SetPlayerVirtualWorld(playerid, 0);
}
if(PlayerToPoint(3, playerid,-1681.9230,1350.5095,7.1722))
{//ENTRADA HQ TriadS
GameTextForPlayer(playerid, "~w~HQ Triads", 5000, 1);
SetPlayerInterior(playerid, 6);
SetPlayerPos(playerid,345.0741,305.5558,999.1484);
PlayerInfo[playerid][pInt] = 6;
SetPlayerVirtualWorld(playerid, 0);
}
}
return 1;
}
if(strcmp(cmd, "/sair", true) == 0)
{
if(IsPlayerConnected(playerid))
{
for(new i = 0; i < sizeof(HouseInfo); i++)
{
if (PlayerToPoint(1, playerid,HouseInfo[i][hExitx], HouseInfo[i][hExity], HouseInfo[i][hExitz]))
{
if(HouseEntered[playerid] == i)
{
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
SetPlayerPos(playerid,HouseInfo[i][hEntrancex],HouseInfo[i][hEntrancey],HouseInfo[i][hEntrancez]);
PlayerInfo[playerid][pInt] = 0;
SetPlayerVirtualWorld(playerid, 0);
PlayerInfo[playerid][pLocal] = 255;
HouseEntered[playerid] = 255;
return true;
}
}
}
for(new i = 0; i < sizeof(BizzInfo); i++)
{
if (PlayerToPoint(1, playerid,BizzInfo[i][bExitX], BizzInfo[i][bExitY], BizzInfo[i][bExitZ]))
{
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
SetPlayerVirtualWorld(playerid, 0);
SetPlayerPos(playerid,BizzInfo[i][bEntranceX],BizzInfo[i][bEntranceY],BizzInfo[i][bEntranceZ]);
PlayerInfo[playerid][pLocal] = 255;
return true;
}
}
if(GetPlayerVehicleID(playerid) >= 1)
{
Controle(playerid, 1);
}
else if (PlayerToPoint(3, playerid,1548.8167,-1366.2247,326.2109))
{
SetPlayerPos(playerid, 1572.1115,-1332.5288,16.4844);
}
else if (PlayerToPoint(3.0, playerid,387.7978,173.8582,1008.3828))
{//Saida Prefeitura
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,1484.3788,-1777.2107,13.6554);
Controle(playerid, 1);
PlayerInfo[playerid][pInt] = 0;
SetPlayerVirtualWorld(playerid, 0);
PlayerInfo[playerid][pLocal] = 255;
}
else if (PlayerToPoint(3.0, playerid,1161.5105,-1316.5150,-0.8598))
{//Saida Hospital
SetPlayerPos(playerid,2025.3307,-1402.5562,17.2106);
GameTextForPlayer(playerid, "~w~Los Santos", 5000, 1);
}
if (PlayerToPoint(1, playerid,305.05056762695,-159.16743469238,999.59375))
{//COFRE LOJA DE ARMAS 1 SAIDA
SetPlayerPos(playerid,306.3995,-159.1051,999.5938);
PlayerInfo[playerid][pInt] = 6;
SetPlayerInterior(playerid,6);
}
if (PlayerToPoint(1, playerid,301.71704101563,-75.318428039551,1001.515625))
{//COFRE loja de armas 2 SAIDA
SetPlayerPos(playerid,301.7848,-76.6545,1001.5156);
PlayerInfo[playerid][pInt] = 4;
SetPlayerInterior(playerid,4);
}
if(PlayerToPoint(3.0, playerid,246.5878,62.7877,1003.6406))
{//Saida Departamento de Policia Los Santos
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid,1554.9537,-1675.6584,16.1953);
PlayerInfo[playerid][pInt] = 0;
PlayerInfo[playerid][pLocal] = 255;
SetPlayerVirtualWorld(playerid, 0);
}
else if(PlayerToPoint(3.0, playerid, 204,-49, 1002))
{//Saida Binco
SetPlayerVirtualWorld(playerid, 0);
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid,2244.5669,-1664.4495,15.4766);
PlayerInfo[playerid][pInt] = 0;
PlayerInfo[playerid][pLocal] = 255;
}
else if (PlayerToPoint(2.0, playerid,226.293991,-7.431529,1002.210937))
{//Saido mercado 24/7
SetPlayerPos(playerid, 459.1313,-1501.1628,31.0392);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerInterior(playerid,0);
SetPlayerFacingAngle(playerid, 0);
PlayerInfo[playerid][pInt] = 0;
PlayerInfo[playerid][pLocal] = 255;
}
else if(PlayerToPoint(3.0, playerid,493.3891,-22.7212,1000.6797))
{//Saida Alhambra
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerPos(playerid,1836.4064,-1682.4403,13.3493);
PlayerInfo[playerid][pInt] = 0;
PlayerInfo[playerid][pLocal] = 255;
}
else if(PlayerToPoint(3.0, playerid,1205.0803,-9.9519,1000.9219))
{//saida pigpen
SetPlayerVirtualWorld(playerid, 0);
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid,2421.4998,-1219.2438,25.5617);
PlayerInfo[playerid][pInt] = 0;
PlayerInfo[playerid][pLocal] = 255;
}
else if(PlayerToPoint(3.0, playerid,771.9399,-2.2574,1000.7292))
{//Saida Ginasio de Lutas
SetPlayerVirtualWorld(playerid, 0);
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid,2229.9011,-1721.2582,13.5613);
PlayerInfo[playerid][pInt] = 0;
PlayerInfo[playerid][pLocal] = 255;
}
else if(PlayerToPoint(1, playerid,367.9629,194.3110,1008.3828))
{//Reporter Hq
SetPlayerPos(playerid, 755.4222,-1361.7944,13.5132);
GameTextForPlayer(playerid, "~w~Los Santos",5000,1);
SetPlayerInterior(playerid,0);
SetPlayerFacingAngle(playerid, 0);
PlayerInfo[playerid][pInt] = 0;
}
else if (PlayerToPoint(3.0, playerid,832.6270,7.2666,1004.1797))
{//Loterica saida
SetPlayerPos(playerid, 1631.8547,-1172.5637,24.084);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerInterior(playerid,0);
SetPlayerFacingAngle(playerid, 0);
PlayerInfo[playerid][pInt] = 0;
PlayerInfo[playerid][pLocal] = 255;
}
else if (PlayerToPoint(3.0, playerid,366.0324,-72.6400,1001.5078))
{//Entrada Burger Shot 1
SetPlayerPos(playerid, 1200.4497,-918.7695,43.1105);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerInterior(playerid,0);
SetPlayerFacingAngle(playerid, 0);
PlayerInfo[playerid][pInt] = 0;
InAFoodPlace[playerid] = 0;
PlayerInfo[playerid][pLocal] = 255;
}
else if (PlayerToPoint(3.0, playerid,681.5034,-452.0092,-25.6172))
{//Saida Burger Shot 2
SetPlayerPos(playerid, 810.4855,-1616.1888,13.5469);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerInterior(playerid,0);
SetPlayerFacingAngle(playerid, 0);
PlayerInfo[playerid][pInt] = 0;
PlayerInfo[playerid][pLocal] = 255;
InAFoodPlace[playerid] = 0;
PlayerInfo[playerid][pLocal] = 255;
}
else if (PlayerToPoint(3.0, playerid,365.7793,-9.1699,1001.8516))
{//Saida Cluckin Bell
SetPlayerPos(playerid, 927.6217,-1353.0105,13.3438);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerInterior(playerid, 0);
SetPlayerFacingAngle(playerid, 0);
PlayerInfo[playerid][pInt] = 0;
InAFoodPlace[playerid] = 0;
PlayerInfo[playerid][pLocal] = 255;
}
else if (PlayerToPoint(3.0, playerid,372.4117,-130.4577,1001.4922))
{//Saida Well Stacked Pizza
SetPlayerPos(playerid, 2105.4858,-1806.4725,13.5547);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerInterior(playerid,0);
SetPlayerFacingAngle(playerid, 0);
PlayerInfo[playerid][pInt] = 0;
InAFoodPlace[playerid] = 0;
PlayerInfo[playerid][pLocal] = 255;
}
else if (PlayerToPoint(3.0, playerid,377.5237,-191.6597,1000.6328))
{//Saida SmK BAR
SetPlayerPos(playerid, 975.4691,-1335.9618,13.5319);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerInterior(playerid, 0);
SetPlayerFacingAngle(playerid, 0);
PlayerInfo[playerid][pInt] = 0;
InAFoodPlace[playerid] = 0;
PlayerInfo[playerid][pLocal] = 255;
}
else if(PlayerToPoint(3.0, playerid,-30.9891,-91.5607,1003.5469))
{
if (storeexit[playerid] == 1)
{//24/7 estaзгo saida
SetPlayerVirtualWorld(playerid, 0);
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid,1833.6124,-1842.4968,13.5781);
PlayerInfo[playerid][pInt] = 0;
PlayerInfo[playerid][pLocal] = 255;
storeexit[playerid] = 0;
}
else if(storeexit[playerid] == 2)
{//perto madd dogg
SetPlayerVirtualWorld(playerid, 0);
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid,1315.5110,-898.9860,39.5781);
PlayerInfo[playerid][pInt] = 0;
PlayerInfo[playerid][pLocal] = 255;
storeexit[playerid] = 0;
}
else if(storeexit[playerid] == 3)
{//praзa dp
SetPlayerVirtualWorld(playerid, 0);
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid,1352.4357,-1759.0243,13.5078);
PlayerInfo[playerid][pInt] = 0;
PlayerInfo[playerid][pLocal] = 255;
storeexit[playerid] = 0;
}
else if(storeexit[playerid] == 4)
{//dillimore
SetPlayerVirtualWorld(playerid, 0);
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid,824.0099,-557.3440,16.3359);
PlayerInfo[playerid][pInt] = 0;
PlayerInfo[playerid][pLocal] = 255;
storeexit[playerid] = 0;
}
else if(storeexit[playerid] == 5)
{//dillimore
SetPlayerVirtualWorld(playerid, 0);
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid,2422.1165,-1740.3470,13.5469);
PlayerInfo[playerid][pInt] = 0;
PlayerInfo[playerid][pLocal] = 255;
storeexit[playerid] = 0;
}
}
else if(PlayerToPoint(3.0, playerid,-28.2619,-26.2015,1003.5573))
{//24/7 gas station saida
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid,1000.5861,-919.8832,42.3281);
PlayerInfo[playerid][pInt] = 0;
PlayerInfo[playerid][pLocal] = 255;
SetPlayerVirtualWorld(playerid, 0);
}
else if(PlayerToPoint(3.0, playerid,-25.1326,-139.0670,1003.5469))
{//24/7 lado hq pcc saida
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerPos(playerid,1928.6006,-1776.4480,13.5469);
PlayerInfo[playerid][pInt] = 0;
PlayerInfo[playerid][pLocal] = 255;
}
else if (PlayerToPoint(3.0, playerid,2350.6013,-1180.7566,1027.9766))
{//SAIDA HQ VAGOS
SetPlayerPos(playerid, 2480.9678,-1536.6002,24.1730);
SetPlayerInterior(playerid,0);
SetPlayerFacingAngle(playerid, 0);
PlayerInfo[playerid][pInt] = 0;
PlayerInfo[playerid][pLocal] = 255;
SetPlayerVirtualWorld(playerid, 0);
}
if(PlayerToPoint(3.0, playerid,246.4631,110.1669,1003.2257))
{//Saida HQ BOPE
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid,327.8898,-1511.8446,36.0325);
PlayerInfo[playerid][pInt] = 0;
SetPlayerVirtualWorld(playerid, 0);
PlayerInfo[playerid][pLocal] = 255;
}
else if (PlayerToPoint(3.0, playerid,238.7194,141.7792,1003.0234))
{//Saida PF
SetPlayerPos(playerid, 988.6390,-1356.8457,13.5530);
SetPlayerInterior(playerid,0);
SetPlayerFacingAngle(playerid, 0);
PlayerInfo[playerid][pInt] = 0;
SetPlayerVirtualWorld(playerid, 0);
PlayerInfo[playerid][pLocal] = 255;
}
else if(PlayerToPoint(3.0, playerid,2268.3950,-1210.5328,1047.7491))
{//SAIDA HQ BALLAS
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid,2263.5852,-1458.9557,24.0085);
PlayerInfo[playerid][pInt] = 0;
SetPlayerVirtualWorld(playerid, 0);
PlayerInfo[playerid][pLocal] = 255;
}
else if(PlayerToPoint(3.0, playerid,374.5317,-2055.1924,8.0156))
{//ENTRADA HQ AZTECAS
GameTextForPlayer(playerid, "~w~HQ Los Aztecas", 5000, 1);
SetPlayerInterior(playerid, 8);
SetPlayerPos(playerid,2807.8213,-1173.5691,1025.5703);
PlayerInfo[playerid][pInt] = 8;
SetPlayerVirtualWorld(playerid, 0);
PlayerInfo[playerid][pLocal] = 255;
}
else if(PlayerToPoint(3.0, playerid,2807.8213,-1173.5691,1025.5703))
{//SAIDA HQ AZTECAS
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid,374.5317,-2055.1924,8.0156);
PlayerInfo[playerid][pInt] = 0;
SetPlayerVirtualWorld(playerid, 0);
PlayerInfo[playerid][pLocal] = 255;
}
else if (PlayerToPoint(3.0, playerid,2496.0061,-1693.5201,1014.7422))
{//HQ Groove Street Saida
SetPlayerPos(playerid,2495.3481,-1691.1355,14.7656);
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
SetPlayerVirtualWorld(playerid, 0);
PlayerInfo[playerid][pLocal] = 255;
}
if(PlayerToPoint(3.0, playerid,345.0741,305.5558,999.1484))
{//SAIDA HQ TriadS
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid,-1681.9230,1350.5095,7.1722);
PlayerInfo[playerid][pInt] = 0;
SetPlayerVirtualWorld(playerid, 0);
PlayerInfo[playerid][pLocal] = 255;
}
else if(PlayerToPoint(3.0, playerid,-261,1457,1085))
{//SAIDA HQ gi
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid,-2281.4065,2288.4255,4.9669);
PlayerInfo[playerid][pInt] = 0;
SetPlayerVirtualWorld(playerid, 0);
PlayerInfo[playerid][pLocal] = 255;
}
else if(PlayerToPoint(3.0, playerid,2308.5269,-1211.2737,1049.0234))
{//SAIDA HQ CV
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid,992.9674,-1459.9849,13.5469);
PlayerInfo[playerid][pInt] = 0;
SetPlayerVirtualWorld(playerid, 0);
PlayerInfo[playerid][pLocal] = 255;
}
else if(PlayerToPoint(3.0, playerid,-42 ,1406, 1085))
{//SAIDA HQ ts
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid,1106.5376,-299.6835,74.5391);
PlayerInfo[playerid][pInt] = 0;
SetPlayerVirtualWorld(playerid, 0);
PlayerInfo[playerid][pLocal] = 255;
}
else if(PlayerToPoint(3.0, playerid,964 ,-53, 1002))
{//SAIDA HQ admin
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid,1455.0348,749.8630,11.0234);
PlayerInfo[playerid][pInt] = 0;
SetPlayerVirtualWorld(playerid, 0);
PlayerInfo[playerid][pLocal] = 255;
}
else if(PlayerToPoint(3.0, playerid,2524 ,-1285, 1055))
{//SAIDA HQ bloodz
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid,229.2918,-2186.2107,1.2488);
PlayerInfo[playerid][pInt] = 0;
SetPlayerVirtualWorld(playerid, 0);
PlayerInfo[playerid][pLocal] = 255;
}
}
return 1;
}