[Pedido] Ajuda
#1

Gente como faзo para minhas pickups nгo darem comflito??

Estгo sempre dando conflito e uma executando a funзгo da outra..

pawn Код:
//==============================================================================
new PickupGrana;

public OnPlayerDeath(playerid, killerid, reason)
{
    // -- Dropando Pickup --
    new Float:x,Float:y,Float:z;
    GetPlayerPos(playerid,x,y,z);
    PickupGrana = CreatePickup(1212,2,x,y,z,-1);
   
    return 1;
}
//==============================================================================
public OnPlayerPickUpPickup(playerid, pickupid)
{
    if(pickupid == PickupGrana)
    {
        GivePlayerMoney(playerid,1000);
        DestroyPickup(PickupGrana);
        return 1;
    }
    return 1;
}
//==============================================================================
pawn Код:
// Interiores

new EntraAmmu1Fora; //Pickup
new SaidaAmmu1Fora; //Pickup

EntraAmmu1Fora = CreatePickup(1318,1,-1990.7518,885.4659,45.6437,-1);
SaidaAmmu1Fora = CreatePickup(1318,1,286.1448,-41.6659,1001.5156,-1);

public OnPlayerPickUpPickup(playerid, pickupid)
{
    if(pickupid == EntraAmmu1Fora)
    {
        SetPlayerPos(playerid,288.4526,-39.1972,1001.5156); //Dentro
        SetPlayerInterior(playerid,1);
        return 1;
    }
    if(pickupid == SaidaAmmu1Fora)
    {
        SetPlayerPos(playerid,-1995.1780,885.9145,45.4453); //Fora
        SetPlayerInterior(playerid,0);
        return 1;
    }
    return 1;
}
Reply


Messages In This Thread
Ajuda - by Zuiudгo - 26.09.2012, 15:11
Re: Ajuda - by Zuiudгo - 26.09.2012, 16:35
Re: Ajuda - by Q.I - 26.09.2012, 16:43
Re: Ajuda - by Zuiudгo - 26.09.2012, 19:17
Re: Ajuda - by Bruno Alves - 26.09.2012, 19:57
Re: Ajuda - by Zuiudгo - 26.09.2012, 20:00
Re: Ajuda - by Q.I - 26.09.2012, 20:01
Re: Ajuda - by Zuiudгo - 26.09.2012, 20:08
Re: Ajuda - by Q.I - 26.09.2012, 20:10
Re: Ajuda - by Ley - 26.09.2012, 21:11

Forum Jump:


Users browsing this thread: 1 Guest(s)