Coffin object with money pickup after killed
#1

Hello guys, I need help to make coffin object with money after player gets killed. And if someone picked the coffin he/she will get additional cash maybe around 2000.

Thanks looking forward to any help.
Reply
#2

pawn Код:
new MoneyPickup;
public OnPlayerDeath(playerid,killerid,reason)
{
      MoneyPickup = CreatePickup(model, type, Float:X, Float:Y, Float:Z, Virtualworld);
      return 1;
}

public OnPlayerPickUpPickup(playerid, pickupid)
{
   if(pickupid == MoneyPickup)
   {
      GivePlayerMoney(playerid,any amount of cash you want);
   }
   return 1;
}
https://sampwiki.blast.hk/wiki/OnPlayerPickUpPickup
https://sampwiki.blast.hk/wiki/Pickup_IDs
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)