Pickup
#1

How not to destroy the pickup after getting it? It should be still there.

pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
    if(pickupid == MyPickup)
    {
        GivePlayerWeapon(playerid, 10, 20);
        return 1;
    }
    return 1;
}
Reply
#2

You don't want the pickup to be removed when you walk over it? Change the pickup type to 1, which makes it so it does not disappear (unless destroyed, of course)
Reply
#3

DestroyPickup will destroy permanently
Reply
#4

Quote:
Originally Posted by MrSurfur1
Посмотреть сообщение
How not to destroy the pickup after getting it? It should be still there.

pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
    if(pickupid == MyPickup)
    {
        GivePlayerWeapon(playerid, 10, 20);
        return 1;
    }
    return 1;
}
For MyPickup the CreatePickup You need to set it to a different type so that it dosent go away. Check this and click on it and on that you will see The Pickup Spawn Type. Thats what you need to change. https://sampwiki.blast.hk/wiki/CreatePickup Click on "The Pickup Spawn Type" and it will re-direct you to the spawn types.
Reply
#5

Ok Thanks!
Reply
#6

I have another question, let me ask in this thread instead of making a new thread because it's relevant to it.

How to make the pickup visible to a specific team? I got the same code up there.
Reply
#7

Pretty sure you can't make a player see a pickup, while others can't. The pickup is made for everyone, so you can't.

Correct me if I'm wrong.
Reply
#8

Oh ok thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)