destruction pickup
#1

hello, how can I do that once used the pickup is destroyed? and perhaps after a certain period of time return?
so now I have, and they are fixed they never go away

Код:
new pickup1
Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
    if(pickupid == pickup1)
    {
        GivePlayerWeapon(playerid, 38, 30);
        GameTextForPlayer(playerid, "Minigun riceived", 3000, 6);
    }
return 1;
}
Код:
pickup1 = CreatePickup(1247, 23, 353.0605,2510.9663,16.5435,0);
how can I change it to disappear once used?
Tanks
Reply
#2

Change the pickup type

Available Pickup Types
0
The pickup does not display.

1
Not pickupable, exists all the time. (Suitable for completely scripted pickups using OnPlayerPickUpPickup)

2
Pickupable, respawns after some time.

3
Pickupable, respawns after death

4
Disappears shortly after created (perhaps for weapon drops?)

5
Disappears shortly after created (perhaps for weapon drops?)

8
Pickupable, but has no effect. Disappears automatically.

11
Blows up a few seconds after being created (bombs?)

12
Blows up a few seconds after being created.

13
Slowly decends to the ground.

14
Pickupable, but only when in a vehicle.

15
Pickupable, respawns after death

19
Pickupable, but has no effect (information icons?)

22
Pickupable, respawns after death.
Reply
#3

I tried already with codes but I could not make them disappear
Reply
#4

well, it works for me :l
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)