26/04/2021 12:42
Código:
if(newkeys & 16)
{
if(IsPlayerInRangeOfPoint(playerid, 1555.1400,-1675.6024,16.1953)) //ENTRADA
{
SetPlayerPos(playerid, 246.375991,109.245994,1003.218750);
SetPlayerInterior(playerid, 10);
}
if(IsPlayerInRangeOfPoint(playerid, 246.375991,109.245994,1003.218750)) //SAÍDA
{
SetPlayerPos(playerid, 1555.1400,-1675.6024,16.1953);
SetPlayerInterior(playerid, 0);
}
}