[Ajuda] OnPlayerPickUpPickup
#1

Uma Duvida ,Esta correto ?!

Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == Ammu) {
if(IsPlayerInRangeOfPoint(playerid, 4.0, -1500.4038,969.8564,7.1875)) //entrada
SetPlayerPos(playerid,	286.148987 ,-40.644398,1001.569946);// coordenada interior
SetPlayerInterior(playerid, 1); //id interior
return 1;
}
if(pickupid == Ammusaida) {
if(IsPlayerInRangeOfPoint(playerid, 4.0, -1500.4038,969.8564,7.1875))//coord. dentro int.
SetPlayerPos(playerid, -1500.4038,969.8564,7.1875); //coord rua
SetPlayerInterior(playerid, 0);// id rua
return 1;
}
	return 1;
}
Reply
#2

Ta errado , e assim:


PHP код:
public OnPlayerPickUpPickup(playeridpickupid) {
    if(
pickupid == Ammu) {
        if(
IsPlayerInRangeOfPoint(playerid4.0, -1500.4038,969.8564,7.1875)) {
            
SetPlayerPos(playerid,    286.148987 ,-40.644398,1001.569946);// coordenada interior
            
SetPlayerInterior(playerid1); //id interior
        
}
    }
    if(
pickupid == Ammusaida) {
        if(
IsPlayerInRangeOfPoint(playerid4.0, -1500.4038,969.8564,7.1875)) {
            
SetPlayerPos(playerid, -1500.4038,969.8564,7.1875); //coord rua
            
SetPlayerInterior(playerid0);// id rua
        
}
    }
    return 
1;

Reply
#3

Quote:
Originally Posted by shittt
Посмотреть сообщение
Ta errado , e assim:


PHP код:
public OnPlayerPickUpPickup(playeridpickupid) {
    if(
pickupid == Ammu) {
        if(
IsPlayerInRangeOfPoint(playerid4.0, -1500.4038,969.8564,7.1875)) {
            
SetPlayerPos(playerid,    286.148987 ,-40.644398,1001.569946);// coordenada interior
            
SetPlayerInterior(playerid1); //id interior
        
}
    }
    if(
pickupid == Ammusaida) {
        if(
IsPlayerInRangeOfPoint(playerid4.0, -1500.4038,969.8564,7.1875)) {
            
SetPlayerPos(playerid, -1500.4038,969.8564,7.1875); //coord rua
            
SetPlayerInterior(playerid0);// id rua
        
}
    }
    return 
1;

ele nao entra no interior quando pasa por cima do Pick-up
Reply
#4

ERRO Meu ...

PHP код:
public OnPlayerPickUpPickup(playeridpickupid) {
    if(
pickupid == Ammu) {
        
SetPlayerPos(playerid,    286.148987 ,-40.644398,1001.569946);// coordenada interior
         
SetPlayerInterior(playerid1); //id interior
    
}
    if(
pickupid == Ammusaida) {
        
SetPlayerPos(playerid, -1500.4038,969.8564,7.1875); //coord rua
        
SetPlayerInterior(playerid0);// id rua
    
}
    return 
1;

Reply
#5

Quote:
Originally Posted by shittt
Посмотреть сообщение
ERRO Meu ...

PHP код:
public OnPlayerPickUpPickup(playeridpickupid) {
    if(
pickupid == Ammu) {
        
SetPlayerPos(playerid,    286.148987 ,-40.644398,1001.569946);// coordenada interior
         
SetPlayerInterior(playerid1); //id interior
    
}
    if(
pickupid == Ammusaida) {
        
SetPlayerPos(playerid, -1500.4038,969.8564,7.1875); //coord rua
        
SetPlayerInterior(playerid0);// id rua
    
}
    return 
1;

Nao vai ele nao entra pro interior и como se nao tivese nada ali LOOL
Reply
#6

Quote:
Originally Posted by lKoDlFuLLaNNo
Посмотреть сообщение
Nao vai ele nao entra pro interior и como se nao tivese nada ali LOOL
--' , Cara vai aprender mais , primeiro Voce cria a pickup depois ela estara disponivel para ser visualizada no mapa , Quando o player for chegar perto A callback Chama essa funзгo ...
Reply
#7

Altere o interior antes de alterar as coordenadas.

Quote:

Tip: When setting a player's position to an interior, their interior must be set.

Reply
#8

Quote:
Originally Posted by zPain
Посмотреть сообщение
Altere o interior antes de alterar as coordenadas.
que '-'?!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)