How to do a one-time pickup ??
#1

How to do a one-time pickup , and when i collect it with impact??

In short,

One-time pickup

With effect

How to do it?


sory my bad english
Reply
#2

Example:
pawn Код:
new MyPickup;

public OnGameModeInit()
{
    MyPickup = CreatePickup(1550, 1, 100.0, 200.0, 300.0);
    return 1;
}

public OnPlayerPickUpPickup(playerid, pickupid)
{
    if(pickupid == MyPickup)
    {
        //Do something here..
        DestroyPickup(MyPickup);
        MyPickup = -1;
    }
    return 1;
}
Create a pickup with 'type' 1, which allows for all scripted actions only. Refer to this: https://sampwiki.blast.hk/wiki/PickupTypes

Then, you can just destroy it once it is picked up.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)