25/06/2023 19:43
(25/06/2023 19:36)xbruno1000x Escreveu: Esse problema ocorre no PC também? Como está o código do mapa e da entrada/saída?
Pelo que estou vendo sim, o código de entrada está simples.
Código:
CMD:ingresarysalir(playerid)
{
//HOSPITAL ENTRADA
if(IsPlayerInRangeOfPoint(playerid,2.0, 1172.0829,-1323.5533,15.4034))
{
SetPlayerPos(playerid, 1176.3602,-1326.3590,-44.2836);
SetCameraBehindPlayer(playerid);
LoadObjects(playerid);
}
//POLICIA DE PATRULLA ENTRADA
if(IsPlayerInRangeOfPoint(playerid,2.0, 1555.4982,-1676.1260,16.1953))
{
SetPlayerPos(playerid, 246.783996,63.900199,1003.640625);
SetPlayerInterior(playerid, 6);
SetCameraBehindPlayer(playerid);
LoadObjects(playerid);
}
//MERCADO NEGRO ENTRADA
if(IsPlayerInRangeOfPoint(playerid,2.0, 2447.828125, -1962.687133, 13.546875))
{
SetPlayerPos(playerid, 1990.3617,1116.2991,1122.5159);
SetCameraBehindPlayer(playerid);
LoadObjects(playerid);
}
//HOSPITAL SAIDA
if(IsPlayerInRangeOfPoint(playerid,2.0,1176.3602,-1326.3590,-44.2836))
{
SetPlayerPos(playerid, 1172.0829,-1323.5533,15.4034);
SetPlayerInterior(playerid, 0);
SetCameraBehindPlayer(playerid);
LoadObjects(playerid);
return 1;
}
//POLICIA DE PATRULLA SAIDA
if(IsPlayerInRangeOfPoint(playerid,2.0,246.783996,63.900199,1003.640625))
{
SetPlayerPos(playerid, 1555.4982,-1676.1260,16.1953);
SetPlayerInterior(playerid, 0);
SetCameraBehindPlayer(playerid);
LoadObjects(playerid);
return 1;
}
//MERCADO NEGRO SAIDA
if(IsPlayerInRangeOfPoint(playerid,2.0,1990.3617,1116.2991,1122.5159))
{
SetPlayerPos(playerid, 2447.828125, -1962.687133, 13.546875);
SetPlayerInterior(playerid, 0);
SetCameraBehindPlayer(playerid);
LoadObjects(playerid);
return 1;
}
return 1;
}