22.09.2012, 01:27
Read this:
https://sampwiki.blast.hk/wiki/PickupTypes
And it works with this:
https://sampwiki.blast.hk/wiki/CreatePickup
This code will help you.
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.
}