if(strcmp(cmdtext, "/enter", true) == 0)
{
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
}
if(strcmp(cmdtext, "/sair", true) == 0)
{
if(IsPlayerInRangeOfPoint(playerid, 2.0, 2194.8538,1678.1536,12.3672))//Prefeitura Las Venture
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, 2193.2810,1676.6268,12.3672); //Prefeitura Las Venture
}
if(strcmp(cmdtext, "/sair", 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(strcmp(cmdtext, "/enter", 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
}
Os COmandos sao iguais por isto da conflito?eu axo '-'
se eu estiver errado me corrijam '-' |
if(strcmp(cmdtext, "/enter", true) == 0)
{
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
}
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(strcmp(cmdtext, "/sair", true) == 0)
{
if(IsPlayerInRangeOfPoint(playerid, 2.0, 2194.8538,1678.1536,12.3672))//Prefeitura Las Venture
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, 2193.2810,1676.6268,12.3672); //Prefeitura Las Venture
}
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(strcmp(cmdtext, "/sair", true) == 0)
{
if(IsPlayerInRangeOfPoint(playerid, 2.0, 2194.8538,1678.1536,12.3672))//Prefeitura Las Venture
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, 2193.2810,1676.6268,12.3672); //Prefeitura Las Venture
}
}
else 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(strcmp(cmdtext, "/enter", true) == 0)
{
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
}
}
else 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
}
pawn Код:
|
DisableInteriorEnterExits();
Finge q nao le ne Tem Que Desabilitar as Entradas originais do new.pwn
pawn Код:
|
if ((newkeys==KEY_SECONDARY_ATTACK)) // Key ( F / Enter /Sair )
{
OnPlayerCommandText(playerid,"/enter");
OnPlayerCommandText(playerid,"/sair");
}
if(strcmp(cmdtext, "/enter", true) == 0)
{
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
}
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(strcmp(cmdtext, "/sair", true) == 0)
{
if(IsPlayerInRangeOfPoint(playerid, 2.0, 389.0495,173.6506,1008.3828))//Prefeitura Las Venturas
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, 2194.8538,1678.1536,12.3672); //Prefeitura Las Venture
}
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
}
Manolo Voce esta Tento Conflito Na Entrada que Voce Crio Com a Entrada original entao Tem Que Desabilitar.
|