09.12.2012, 03:42
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.
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.
