You should really learn the basics first. Seems like you have no idea about scripting. But as you asked: https://sampwiki.blast.hk/wiki/CreatePickup to create the pickup
And then you either check the coordinates of the pickup when they enter the command or you set a variable under OnPlayerPickUpPickup. Remember that you have to unset it if the player moves away from the pickup. (use a timer for this instead of OnPlayerUpdate as this is called way to frequently for such a task.