26/04/2021 09:47
aqui
Código:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
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);
}
}
return 1;
}