How to remove a pickup if a player picks it up? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: How to remove a pickup if a player picks it up? (
/showthread.php?tid=504260)
How to remove a pickup if a player picks it up? -
rangerxxll - 03.04.2014
I know how to create pickups and such. But I want the pickup to be removed for ALL players once a player picks it up. I don't want to use destroypickup, as I'm using pickup type 2 which makes it respawn after some time.
How can I do this? Thank you.
Re: How to remove a pickup if a player picks it up? -
Bingo - 03.04.2014
DestroyPickup is ffirst method.
Second is this:- As you said you want that when the player picks up, It must be destroyed for all players not only for one.
But here i come up with this ( 3 - Pickupable, respawns after death)
Re: How to remove a pickup if a player picks it up? -
rangerxxll - 03.04.2014
I've tried pickup type 3 and it still only despawns for the player that picks it up. Is destroypickup the only option?
Re: How to remove a pickup if a player picks it up? -
forgottenkings - 03.04.2014
just destroy it :P
Re: How to remove a pickup if a player picks it up? -
Bingo - 03.04.2014
Quote:
Originally Posted by rangerxxll
I've tried pickup type 3 and it still only despawns for the player that picks it up. Is destroypickup the only option?
|
Yes my dear, Because you said you want it like for ALL players, Only 1 player in server can pickup so basically this is only the method left
.