21.08.2010, 01:50
https://sampwiki.blast.hk/wiki/PickupTypes
https://sampwiki.blast.hk/wiki/CreatePickup
If you want the pickup to disappear when a player picks it up (if that's what you mean, I don't fully understand what your trying to say), destroy it on OnPlayerPickUpPickup then recreate it after a while.
https://sampwiki.blast.hk/wiki/CreatePickup
Quote:
Note: While you will get a OnPlayerPickUpPickup triggered when a player picks up a pickup, keep in mind that several players can pick up same pickup, or that a player can pick up a pickup without the pickup being removed on all clients, if you want to reliably detect weapon pickups, you should use weapon type 1, and manually give weapons and destroy them when they are picked up. Don't forget to handle cases where several players pick up same pickup id aswell. |