Need Help With a Pickup issue ..Pls..
#6

Read this:
https://sampwiki.blast.hk/wiki/PickupTypes

And it works with this:
https://sampwiki.blast.hk/wiki/CreatePickup

This code will help you.

pawn Code:
new pickup; //Define our Pickup name/ID

public OnGameModeInit()
{
    pickup = CreatePickup(1247, 2, 2096.569091, 1286.821655, 10.820312 -1); //Create our Pickup called 'pickup'
    return 1;
}

public OnPlayerPickUpPickup(playerid, pickupid)
{
    if(pickupid == pickup) //If they have picked up our 'pickup' Pickup.
    {
        //Your code here - Put what you want to happen when they pick up your pickup here.
    }
    return 1; //They picked up a pickup.
}
Reply


Messages In This Thread
Need Help With a Pickup issue ..Pls.. - by JJohnson1 - 21.09.2012, 12:49
Re: Need Help With a Pickup issue ..Pls.. - by Babul - 21.09.2012, 13:57
Re: Need Help With a Pickup issue ..Pls.. - by JJohnson1 - 21.09.2012, 20:54
Re: Need Help With a Pickup issue ..Pls.. - by Red_Dragon. - 21.09.2012, 23:10
Re: Need Help With a Pickup issue ..Pls.. - by JJohnson1 - 22.09.2012, 00:14
Re: Need Help With a Pickup issue ..Pls.. - by clarencecuzz - 22.09.2012, 01:27
Re: Need Help With a Pickup issue ..Pls.. - by JJohnson1 - 22.09.2012, 15:06
Re: Need Help With a Pickup issue ..Pls.. - by Babul - 22.09.2012, 15:32
Re: Need Help With a Pickup issue ..Pls.. - by JJohnson1 - 22.09.2012, 15:52
Re: Need Help With a Pickup issue ..Pls.. - by XtremeR - 22.09.2012, 15:53

Forum Jump:


Users browsing this thread: 3 Guest(s)