11.04.2018, 17:08
tente assim
PHP Code:
// ======================================== 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);
return true;
}
else if(PlayerInfo[playerid][entrouDEL] == 2) // San Fierro
{
SetPlayerPos(playerid, -1606.0313, 717.9035, 12.0699);
SetPlayerFacingAngle(playerid, 359.8679);
SetPlayerInterior(playerid, 0);
return true;
}
else if(PlayerInfo[playerid][entrouDEL] == 3) // Las Venturas
{
SetPlayerPos(playerid, 2289.8953,2427.9226,10.8203);
SetPlayerFacingAngle(playerid, 359.8679);
SetPlayerInterior(playerid, 0);
return true;
}
else if(PlayerInfo[playerid][entrouDEL] == 4) // Angel Pine
{
SetPlayerPos(playerid, -2164.1086,-2388.4053,30.6250);
SetPlayerFacingAngle(playerid, 359.8679);
SetPlayerInterior(playerid, 0);
return true;
}
else if(PlayerInfo[playerid][entrouDEL] == 5) // Fort Carson
{
SetPlayerPos(playerid, -215.2102,980.9094,19.4932);
SetPlayerFacingAngle(playerid, 359.8679);
SetPlayerInterior(playerid, 0);
return true;
}
else if(PlayerInfo[playerid][entrouDEL] == 6) // El quebrados
{
SetPlayerPos(playerid, -1394.4302,2637.4004,55.9107);
SetPlayerFacingAngle(playerid, 359.8679);
SetPlayerInterior(playerid, 0);
return true;
}
else if(PlayerInfo[playerid][entrouDEL] == 7) // Dillimore
{
SetPlayerPos(playerid, 631.9159,-571.9997,16.3359);
SetPlayerFacingAngle(playerid, 359.8679);
SetPlayerInterior(playerid, 0);
return true;
}
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);
return true;
}
}
}
}