Pick-Up Check
#1

Did I do this correctly?

new cash;
new pickup; // Create a variable to store the pickup ID in

public OnGameModeInit()
{
cash = CreatePickup(1212, 2, 0.0, 0.0, 9.0);
pickup = CreatePickup(1242, 3, 1503.3359, 1432.3585, 10.1191, -1);
// Create an armor pickup and store the ID in 'pickup'

// Later..
DestroyPickup(pickup); // Example of using the pickup ID


Also,check this please

public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == cash) GivePlayerMoney(playerid,10000);
return 1;
}

I got no errors.But,what I want is when player die the armor and cash both pop up.That what I was trying to get.
So,if ya tested this and tried it and no money or armor pop-up.Please fix this for me.
Reply


Messages In This Thread
Pick-Up Check - by nicholas1 - 09.12.2012, 03:42
Re: Pick-Up Check - by Guest9328472398472 - 09.12.2012, 04:19
Re: Pick-Up Check - by RajatPawar - 09.12.2012, 04:20
Re: Pick-Up Check - by Guest9328472398472 - 09.12.2012, 04:23
Re: Pick-Up Check - by nicholas1 - 09.12.2012, 04:24
Re: Pick-Up Check - by Guest9328472398472 - 09.12.2012, 04:28

Forum Jump:


Users browsing this thread: 3 Guest(s)