Quote:
Originally Posted by shittt
Ta errado , e assim:
PHP код:
public OnPlayerPickUpPickup(playerid, pickupid) {
if(pickupid == Ammu) {
if(IsPlayerInRangeOfPoint(playerid, 4.0, -1500.4038,969.8564,7.1875)) {
SetPlayerPos(playerid, 286.148987 ,-40.644398,1001.569946);// coordenada interior
SetPlayerInterior(playerid, 1); //id interior
}
}
if(pickupid == Ammusaida) {
if(IsPlayerInRangeOfPoint(playerid, 4.0, -1500.4038,969.8564,7.1875)) {
SetPlayerPos(playerid, -1500.4038,969.8564,7.1875); //coord rua
SetPlayerInterior(playerid, 0);// id rua
}
}
return 1;
}
|
ele nao entra no interior quando pasa por cima do Pick-up