25.06.2012, 08:39
Quote:
That should work. I'm not sure what the problem is. Do you get any warnings?
|
(https://sampwiki.blast.hk/wiki/CreatePickup)
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.
And i destroyed and recreated pickup after onplayerpickuppickup.