OnPlayerPickupPickup
#3

pawn Код:
new Picked[MAX_PLAYERS];
public OnPlayerPickUpPickup(playerid, pickupid)
{
    if(pickupid == tiki)
    {
        if(!Picked[playerid])
        {
                PlayerInfo[playerid][pExp]++;
                Picked[playerid] ++;
        }
    }
    return 1;
}
// or you can do this
public OnPlayerPickUpPickup(playerid, pickupid)
{
    if(pickupid == tiki)
    {
        PlayerInfo[playerid][pExp]++;
        DestroyPickup(tiki);
    }
    return 1;
}
Reply


Messages In This Thread
OnPlayerPickupPickup - by VikThor - 16.12.2014, 17:31
Re: OnPlayerPickupPickup - by Divergent - 16.12.2014, 17:34
Re: OnPlayerPickupPickup - by dominik523 - 16.12.2014, 17:36
Re: OnPlayerPickupPickup - by VikThor - 16.12.2014, 18:01
Re: OnPlayerPickupPickup - by Divergent - 16.12.2014, 18:03
Re: OnPlayerPickupPickup - by VikThor - 16.12.2014, 18:06
Re: OnPlayerPickupPickup - by VikThor - 16.12.2014, 18:17
Re: OnPlayerPickupPickup - by M4D - 16.12.2014, 18:21
Re: OnPlayerPickupPickup - by dominik523 - 16.12.2014, 18:21
Re: OnPlayerPickupPickup - by VikThor - 16.12.2014, 18:22

Forum Jump:


Users browsing this thread: 2 Guest(s)