28.12.2010, 22:07
i'll give you an example
You can find pickup types here https://sampwiki.blast.hk/wiki/PickupTypes
and object ids here https://sampwiki.blast.hk/wiki/Model_ID
You can find pickup types here https://sampwiki.blast.hk/wiki/PickupTypes
and object ids here https://sampwiki.blast.hk/wiki/Model_ID
pawn Код:
//top of the script
new pickupname;
pickupname = CreatePickup(objectid, typeofpickup,pickupx, pickupy, pickupz, -1);
public OnPlayerPickUpPickup(playerid,pickupid)
{
if(pickupid == pickupname)
{
//add your ShowPlayerDialog here
}
return 1;
}

