Posts: 52
Threads: 7
Joined: May 2013
Reputation:
0
I want to create pickups for business what pickup type to use for it? I want the pickup to not disappear.
Pickup type 1 doesn't work it triggers OnPlayerPickUpPickup every few seconds which is not what I want, I want OnPlayerPickUpPickup to be called only once.
Posts: 11,827
Threads: 33
Joined: Dec 2011
Reputation:
0
Type 23 and yes, I know - it's not documented.
Posts: 52
Threads: 7
Joined: May 2013
Reputation:
0
Same as type 1, keeps getting called.
I'm displaying a textdraw when standing on the pickup, whenever I hide the textdraw by pressing a button the textdraw appears again (while standing on pickup) because OnPlayerPickUpPickup keeps getting called.
I've seen in other servers it works there, the pickup doesn't disappear, also after hiding textdraw, the textdraw doesn't appear again.
Posts: 11,827
Threads: 33
Joined: Dec 2011
Reputation:
0
Well, it's obvious that will call OnPlayerPickUpPickup if you stand on it.
There are few ways I could think of. The best I guess would be a dynamic area (sphere around pickup) and on pickup, set it to true for that player. If it's true, don't re-show the textdraw and set it back to false when the player leaves the area.
I didn't quite understand if you want to show or hide the pickup but you can toggle a pickup if you use streamer plugin.
Posts: 52
Threads: 7
Joined: May 2013
Reputation:
0
I'm using the streamer plugin, I want the pickup to show always.
I'll try the sphere suggestion.
What you mean by toggle?
Posts: 11,827
Threads: 33
Joined: Dec 2011
Reputation:
0
When I was referring to the dynamic area, I forgot to say that a variable (per-player array) should be set to true/false. Sorry about the confusion, I forgot to write about it.
About the toggling, I meant the pickup. It can be toggled to be shown/hidden to a player but you said you want it to be always shown to the players.
Posts: 52
Threads: 7
Joined: May 2013
Reputation:
0
05.06.2015, 20:17
(
Последний раз редактировалось Nubik; 09.11.2016 в 05:26.
)
Using sphere works!
Thank you.