OnPlayerPickUpPickup alternative - 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: OnPlayerPickUpPickup alternative (
/showthread.php?tid=629109)
OnPlayerPickUpPickup alternative -
Manwelb6 - 20.02.2017
Hello, I am writing a script that creates a pickup at an interior of a particular building, and whenever a player picks up said pickup, it should display a dialog with a list.
I want to do it in such a way that if the player picks up the pickup, it displays the dialog and until the player picks up the pickup again, the dialog does not pop up.
I am having a problem with pickup types. None of the pickups do what I want.
I tried using type 2, but when the player picks up a pickup of type 2, it disappears and does not reappear until the player is within its range.
I also tried using type 1, but that is triggering every one second or two, making it very frustrating for the user navigating through the dialog.
I have tried using timers and IsPlayerInRangeOfPoint but I couldn't get both to work properly.
Re: OnPlayerPickUpPickup alternative -
nGen.SoNNy - 21.02.2017
Create a simple pickup with no callback for it and use streamer and: CreateDynamicSpehere and use the callbacks OnPlayerEnter/LeaveDynamicArea
Re: OnPlayerPickUpPickup alternative -
Manwelb6 - 21.02.2017
Quote:
Originally Posted by nGen.SoNNy
Create a simple pickup with no callback for it and use streamer and: CreateDynamicSpehere and use the callbacks OnPlayerEnter/LeaveDynamicArea
|
Thanks for your reply. I did some research on the Streamer plugin. I will try it and get back to you.
Re: OnPlayerPickUpPickup alternative -
Manwelb6 - 21.02.2017
Quote:
Originally Posted by nGen.SoNNy
Create a simple pickup with no callback for it and use streamer and: CreateDynamicSpehere and use the callbacks OnPlayerEnter/LeaveDynamicArea
|
I managed to do it, thanks for your help! It's way better now, such a wonderful plugin!