Erro ao sair do interior
#1

Bom garela, tenho um sistema de entrar e sair de dentro de algum lugar. porem ele entra e sai, sу q quando vou adicionar mais lugares novos, nгo sai, aqui esta o codigo


Quote:

// ======================================== Entradas Do Servidor ================================== //

if(IsPlayerInRangeOfPoint(playerid, 1.0, 1555.0127,-1675.6544,16.1953)) // Delegacia LS
{

SetPlayerPos(playerid,246.7995,65.9249,1003.6406);
SetPlayerInterior(playerid,6);
SendClientMessage(playerid, 0x00FFF2AA, "[N.L-Admin] {FFFFFF}Bem Vindo(a) ao Principal {00FFF2}Departamento De Policia {FFFFFF}Los Santos !");
SetPlayerFacingAngle(playerid, 348.9244);
PlayerInfo[playerid][EntrouL] = true;
SetCameraBehindPlayer(playerid);
PlayerInfo[playerid][entrouDEL] = 1;
return 1;
}
else if(IsPlayerInRangeOfPoint(playerid, 1.0, -1605.4912, 711.4242, 13.8672)) // Delegacia SF
{
SetPlayerPos(playerid, 246.8718, 62.3202, 1003.6406);
SetPlayerFacingAngle(playerid, 348.9244);
SetPlayerInterior(playerid, 6);
SendClientMessage(playerid, 0x00FFF2AA, "[N.L-Admin] {FFFFFF}Bem Vindo(a) ao Principal {00FFF2}Departamento De Policia {FFFFFF}San Fierro !");
PlayerInfo[playerid][EntrouL] = true;
SetCameraBehindPlayer(playerid);
PlayerInfo[playerid][entrouDEL] = 2;
return 1;
}
else if(IsPlayerInRangeOfPoint(playerid, 1.0, 2290.1243,2430.7190,10.8203)) // Delegacia LV
{
SetPlayerPos(playerid, 246.8164,65.2984,1003.6406);
SetPlayerFacingAngle(playerid, 348.9244);
SetPlayerInterior(playerid, 6);
SendClientMessage(playerid, 0x00FFF2AA, "[N.L-Admin] {FFFFFF}Bem Vindo(a) ao Principal {00FFF2}Departamento De Policia {FFFFFF}Las Venturas !");
PlayerInfo[playerid][EntrouL] = true;
SetCameraBehindPlayer(playerid);
PlayerInfo[playerid][entrouDEL] = 3;
return 1;
}
else if(IsPlayerInRangeOfPoint(playerid, 1.0, -2162.4524,-2386.0876,30.6250)) // Angel Pine
{
SetPlayerPos(playerid, 246.8718, 62.3202, 1003.6406);
SetPlayerFacingAngle(playerid, 348.9244);
SetPlayerInterior(playerid, 6);
SendClientMessage(playerid, 0x00FFF2AA, "[N.L-Admin] {FFFFFF}Bem Vindo(a) ao {00FFF2}Departamento De Policia {FFFFFF}Angel Pine !");
PlayerInfo[playerid][EntrouL] = true;
SetCameraBehindPlayer(playerid);
PlayerInfo[playerid][entrouDEL] = 4;
return 1;
}
else if(IsPlayerInRangeOfPoint(playerid, 1.0, -217.2057,979.1824,19.5006)) // Fort Carson
{
SetPlayerPos(playerid, 246.8718, 62.3202, 1003.6406);
SetPlayerFacingAngle(playerid, 348.9244);
SetPlayerInterior(playerid, 6);
SendClientMessage(playerid, 0x00FFF2AA, "[N.L-Admin] {FFFFFF}Bem Vindo(a) ao {00FFF2}Departamento De Policia {FFFFFF}Fort Carson !");
PlayerInfo[playerid][EntrouL] = true;
SetCameraBehindPlayer(playerid);
PlayerInfo[playerid][entrouDEL] = 5;
return 1;
}
else if(IsPlayerInRangeOfPoint(playerid, 1.0, -1389.9792,2637.6277,55.9844)) // El Quebrados
{
SetPlayerPos(playerid, 246.8718, 62.3202, 1003.6406);
SetPlayerFacingAngle(playerid, 348.9244);
SetPlayerInterior(playerid, 6);
SendClientMessage(playerid, 0x00FFF2AA, "[N.L-Admin] {FFFFFF}Bem Vindo(a) ao {00FFF2}Departamento De Policia {FFFFFF}El Quebrados !");
PlayerInfo[playerid][EntrouL] = true;
SetCameraBehindPlayer(playerid);
PlayerInfo[playerid][entrouDEL] = 6;
return 1;
}
else if(IsPlayerInRangeOfPoint(playerid, 1.0, 631.9159,-571.9997,16.3359)) // Dillimore
{
SetPlayerPos(playerid, 246.8718, 62.3202, 1003.6406);
SetPlayerFacingAngle(playerid, 348.9244);
SetPlayerInterior(playerid, 6);
SendClientMessage(playerid, 0x00FFF2AA, "[N.L-Admin] {FFFFFF}Bem Vindo(a) ao {00FFF2}Departamento De Policia {FFFFFF}Dillimore !");
PlayerInfo[playerid][EntrouL] = true;
SetCameraBehindPlayer(playerid);
PlayerInfo[playerid][entrouDEL] = 7;
return 1;
}
else if(IsPlayerInRangeOfPoint(playerid, 1.0, 1219.1647,-1811.9906,16.593) // Agencia ls
{

SetPlayerPos(playerid, 1490.4620,1305.9231,1093.2964);
SetPlayerInterior(playerid, 3);
SendClientMessage(playerid, 0x00FFF2AA, "[N.L-Admin] {FFFFFF}Bem Vindo(a) a {00FFF2}agencia de empregos de{FFFFFF}Los Santos !");
SetPlayerFacingAngle(playerid, 348.9244);
PlayerInfo[playerid][EntrouL] = true;
SetCameraBehindPlayer(playerid);
PlayerInfo[playerid][EntrouAgencia] = 1;
return 1;
}
else if(IsPlayerInRangeOfPoint(playerid, 1.0, 1219.1647,-1811.9906,16.593) // Agencia sf
{

SetPlayerPos(playerid, 1490.4620,1305.9231,1093.2964);
SetPlayerInterior(playerid, 3);
SendClientMessage(playerid, 0x00FFF2AA, "[N.L-Admin] {FFFFFF}Bem Vindo(a) a {00FFF2}agencia de empregos de{FFFFFF}Los Santos !");
SetPlayerFacingAngle(playerid, 348.9244);
PlayerInfo[playerid][EntrouL] = true;
SetCameraBehindPlayer(playerid);
PlayerInfo[playerid][EntrouAgencia] = 2;
return 1;
}


AQUI SГO AS SAIDAS



else if(PlayerInfo[playerid][EntrouL] == true) // Saнdas
{
if(IsPlayerInRangeOfPoint(playerid, 1.0, 246.8718, 62.3202, 1003.6406)) // Delegacias
{
if(PlayerInfo[playerid][entrouDEL] == 1) // Los Santos
{
SetPlayerPos(playerid, 1549.2688,-1675.6494,14.8906);
SetPlayerFacingAngle(playerid, 359.8679);
SetPlayerInterior(playerid, 0);
}
else if(PlayerInfo[playerid][entrouDEL] == 2) // San Fierro
{
SetPlayerPos(playerid, -1606.0313, 717.9035, 12.0699);
SetPlayerFacingAngle(playerid, 359.8679);
SetPlayerInterior(playerid, 0);
}
else if(PlayerInfo[playerid][entrouDEL] == 3) // Las Venturas
{
SetPlayerPos(playerid, 2289.8953,2427.9226,10.8203);
SetPlayerFacingAngle(playerid, 359.8679);
SetPlayerInterior(playerid, 0);
}
else if(PlayerInfo[playerid][entrouDEL] == 4) // Angel Pine
{
SetPlayerPos(playerid, -2164.1086,-2388.4053,30.6250);
SetPlayerFacingAngle(playerid, 359.8679);
SetPlayerInterior(playerid, 0);
}
else if(PlayerInfo[playerid][entrouDEL] == 5) // Fort Carson
{
SetPlayerPos(playerid, -215.2102,980.9094,19.4932);
SetPlayerFacingAngle(playerid, 359.8679);
SetPlayerInterior(playerid, 0);
}
else if(PlayerInfo[playerid][entrouDEL] == 6) // El quebrados
{
SetPlayerPos(playerid, -1394.4302,2637.4004,55.9107);
SetPlayerFacingAngle(playerid, 359.8679);
SetPlayerInterior(playerid, 0);
}
else if(PlayerInfo[playerid][entrouDEL] == 7) // Dillimore
{
SetPlayerPos(playerid, 631.9159,-571.9997,16.3359);
SetPlayerFacingAngle(playerid, 359.8679);
SetPlayerInterior(playerid, 0);
}
else if(IsPlayerInRangeOfPoint(playerid, 1.0, 1494.4591,1303.7748,1093.2891)) // Agencia
{
if(PlayerInfo[playerid][EntrouAgencia] == 1) // Los Santos
{
SetPlayerPos(playerid, 1220.8401,-1815.4767,16.593;
SetPlayerFacingAngle(playerid, 359.8679);
SetPlayerInterior(playerid, 0);
}

}
}

}

Todas delegacias funcionam, mas quando crio a agencia, o player entra normal, sу que a saida, nгo funciona, a unica coisa q esta funcionando sгo as entradas e saidas da delegacia, a entrada da agencia funciona , e a saida nгo, oq pode ser? jб fiz de tudo.
Reply
#2

Alguem ?
Reply
#3

tente assim
PHP Code:
// ======================================== Entradas Do Servidor ================================== //
if(IsPlayerInRangeOfPoint(playerid1.01555.0127,-1675.6544,16.1953)) // Delegacia LS
{
SetPlayerPos(playerid,246.7995,65.9249,1003.6406);
SetPlayerInterior(playerid,6);
SendClientMessage(playerid0x00FFF2AA"[N.L-Admin] {FFFFFF}Bem Vindo(a) ao Principal {00FFF2}Departamento De Policia {FFFFFF}Los Santos !");
SetPlayerFacingAngle(playerid348.9244);
PlayerInfo[playerid][EntrouL] = true;
SetCameraBehindPlayer(playerid);
PlayerInfo[playerid][entrouDEL] = 1;
return 
1;
}
else if(
IsPlayerInRangeOfPoint(playerid1.0, -1605.4912711.424213.8672)) // Delegacia SF
{
SetPlayerPos(playerid246.871862.32021003.6406);
SetPlayerFacingAngle(playerid348.9244);
SetPlayerInterior(playerid6);
SendClientMessage(playerid0x00FFF2AA"[N.L-Admin] {FFFFFF}Bem Vindo(a) ao Principal {00FFF2}Departamento De Policia {FFFFFF}San Fierro !");
PlayerInfo[playerid][EntrouL] = true;
SetCameraBehindPlayer(playerid);
PlayerInfo[playerid][entrouDEL] = 2;
return 
1;
}
else if(
IsPlayerInRangeOfPoint(playerid1.02290.1243,2430.7190,10.8203)) // Delegacia LV
{
SetPlayerPos(playerid246.8164,65.2984,1003.6406);
SetPlayerFacingAngle(playerid348.9244);
SetPlayerInterior(playerid6);
SendClientMessage(playerid0x00FFF2AA"[N.L-Admin] {FFFFFF}Bem Vindo(a) ao Principal {00FFF2}Departamento De Policia {FFFFFF}Las Venturas !");
PlayerInfo[playerid][EntrouL] = true;
SetCameraBehindPlayer(playerid);
PlayerInfo[playerid][entrouDEL] = 3;
return 
1;
}
else if(
IsPlayerInRangeOfPoint(playerid1.0, -2162.4524,-2386.0876,30.6250)) // Angel Pine
{
SetPlayerPos(playerid246.871862.32021003.6406);
SetPlayerFacingAngle(playerid348.9244);
SetPlayerInterior(playerid6);
SendClientMessage(playerid0x00FFF2AA"[N.L-Admin] {FFFFFF}Bem Vindo(a) ao {00FFF2}Departamento De Policia {FFFFFF}Angel Pine !");
PlayerInfo[playerid][EntrouL] = true;
SetCameraBehindPlayer(playerid);
PlayerInfo[playerid][entrouDEL] = 4;
return 
1;
}
else if(
IsPlayerInRangeOfPoint(playerid1.0, -217.2057,979.1824,19.5006)) // Fort Carson
{
SetPlayerPos(playerid246.871862.32021003.6406);
SetPlayerFacingAngle(playerid348.9244);
SetPlayerInterior(playerid6);
SendClientMessage(playerid0x00FFF2AA"[N.L-Admin] {FFFFFF}Bem Vindo(a) ao {00FFF2}Departamento De Policia {FFFFFF}Fort Carson !");
PlayerInfo[playerid][EntrouL] = true;
SetCameraBehindPlayer(playerid);
PlayerInfo[playerid][entrouDEL] = 5;
return 
1;
}
else if(
IsPlayerInRangeOfPoint(playerid1.0, -1389.9792,2637.6277,55.9844)) // El Quebrados
{
SetPlayerPos(playerid246.871862.32021003.6406);
SetPlayerFacingAngle(playerid348.9244);
SetPlayerInterior(playerid6);
SendClientMessage(playerid0x00FFF2AA"[N.L-Admin] {FFFFFF}Bem Vindo(a) ao {00FFF2}Departamento De Policia {FFFFFF}El Quebrados !");
PlayerInfo[playerid][EntrouL] = true;
SetCameraBehindPlayer(playerid);
PlayerInfo[playerid][entrouDEL] = 6;
return 
1;
}
else if(
IsPlayerInRangeOfPoint(playerid1.0631.9159,-571.9997,16.3359)) // Dillimore
{
SetPlayerPos(playerid246.871862.32021003.6406);
SetPlayerFacingAngle(playerid348.9244);
SetPlayerInterior(playerid6);
SendClientMessage(playerid0x00FFF2AA"[N.L-Admin] {FFFFFF}Bem Vindo(a) ao {00FFF2}Departamento De Policia {FFFFFF}Dillimore !");
PlayerInfo[playerid][EntrouL] = true;
SetCameraBehindPlayer(playerid);
PlayerInfo[playerid][entrouDEL] = 7;
return 
1;
}
else if(
IsPlayerInRangeOfPoint(playerid1.01219.1647,-1811.9906,16.593// Agencia ls
{
SetPlayerPos(playerid1490.4620,1305.9231,1093.2964);
SetPlayerInterior(playerid3);
SendClientMessage(playerid0x00FFF2AA"[N.L-Admin] {FFFFFF}Bem Vindo(a) a {00FFF2}agencia de empregos de{FFFFFF}Los Santos !");
SetPlayerFacingAngle(playerid348.9244);
PlayerInfo[playerid][EntrouL] = true;
SetCameraBehindPlayer(playerid);
PlayerInfo[playerid][EntrouAgencia] = 1;
return 
1;
}
else if(
IsPlayerInRangeOfPoint(playerid1.01219.1647,-1811.9906,16.593// Agencia sf
{
SetPlayerPos(playerid1490.4620,1305.9231,1093.2964);
SetPlayerInterior(playerid3);
SendClientMessage(playerid0x00FFF2AA"[N.L-Admin] {FFFFFF}Bem Vindo(a) a {00FFF2}agencia de empregos de{FFFFFF}Los Santos !");
SetPlayerFacingAngle(playerid348.9244);
PlayerInfo[playerid][EntrouL] = true;
SetCameraBehindPlayer(playerid);
PlayerInfo[playerid][EntrouAgencia] = 2;
return 
1;
}
AQUI SГO AS SAIDAS
else if(PlayerInfo[playerid][EntrouL] == true// Saнdas
{
if(
IsPlayerInRangeOfPoint(playerid1.0246.871862.32021003.6406)) // Delegacias
{
if(
PlayerInfo[playerid][entrouDEL] == 1// Los Santos
{
SetPlayerPos(playerid1549.2688,-1675.6494,14.8906);
SetPlayerFacingAngle(playerid359.8679);
SetPlayerInterior(playerid0);
return 
true;
}
else if(
PlayerInfo[playerid][entrouDEL] == 2// San Fierro
{
SetPlayerPos(playerid, -1606.0313717.903512.0699);
SetPlayerFacingAngle(playerid359.8679);
SetPlayerInterior(playerid0);
return 
true;
}
else if(
PlayerInfo[playerid][entrouDEL] == 3// Las Venturas
{
SetPlayerPos(playerid2289.8953,2427.9226,10.8203);
SetPlayerFacingAngle(playerid359.8679);
SetPlayerInterior(playerid0);
return 
true;
}
else if(
PlayerInfo[playerid][entrouDEL] == 4// Angel Pine
{
SetPlayerPos(playerid, -2164.1086,-2388.4053,30.6250);
SetPlayerFacingAngle(playerid359.8679);
SetPlayerInterior(playerid0);
return 
true;
}
else if(
PlayerInfo[playerid][entrouDEL] == 5// Fort Carson
{
SetPlayerPos(playerid, -215.2102,980.9094,19.4932);
SetPlayerFacingAngle(playerid359.8679);
SetPlayerInterior(playerid0);
return 
true;
}
else if(
PlayerInfo[playerid][entrouDEL] == 6// El quebrados
{
SetPlayerPos(playerid, -1394.4302,2637.4004,55.9107);
SetPlayerFacingAngle(playerid359.8679);
SetPlayerInterior(playerid0);
return 
true;
}
else if(
PlayerInfo[playerid][entrouDEL] == 7// Dillimore
{
SetPlayerPos(playerid631.9159,-571.9997,16.3359);
SetPlayerFacingAngle(playerid359.8679);
SetPlayerInterior(playerid0);
return 
true;
}
else if(
IsPlayerInRangeOfPoint(playerid1.01494.4591,1303.7748,1093.2891)) // Agencia
{
if(
PlayerInfo[playerid][EntrouAgencia] == 1// Los Santos
{
SetPlayerPos(playerid1220.8401,-1815.4767,16.593;
SetPlayerFacingAngle(playerid359.8679);
SetPlayerInterior(playerid0);
return 
true;
}
}
}

Reply
#4

Deu alguns erros mais consegue resolver muito obrigado, irei testar o cуdigo e ver se funcionou
Reply
#5

Os erros ainda continua, Todas delegacia consigo entrar e sair, menos a agencia, a Agencia eu sу entro, pois nгo consigo sair.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)