Pickup Type Problem
#1

Hi guys,


In the property system for my gamemode, I use pickups which you can walk into, which aren't meant to be pickup-able. (Like the entrances to buildings in Grand Larceny)

Apparently, both types 1 and 23 do what I want, yet neither of them work on my server.

Both types, after testing them, are able to be picked up, you do not simple walk through them and they stay there like they're supposed to. OnPlayerPickUpPickup is called correctly for both types. They also do not reappear once picked up.

Grand Larceny uses type 23 to achieve this, and like I said, I have tested both this and type 1, neither work in my gamemode.

The only similar problem I could find was here, though it was not solved: http://forum.sa-mp.com/index.php?topic=132402.0

I briefly talked with Kye on IRC about this, yet he had no idea why such a thing would happen, as it works as expected in Grand Larceny.

This led me to think that it may be a case (such as OnRconCommand in 0.2X) where it only works in filterscripts (Grand Larceny's property system is in the gl_property filterscript) as I'm using it in a gamemode, however it would be very weird if only certain pickup types behaved differently depending on this.

Hopefully somebody can provide a solution to this problem, as it's one of the last things before this gamemode is ready for my server.
Reply
#2

I read you whole post, but I can't understand what's the problem are you talking about.
Probably, you should use DestroyPickup and then CreatePickup again to solve the problem.
btw, I'm using Incognito's streamer and my own FS for enter\exits, and it's working perfectly.
Reply
#3

Quote:
Originally Posted by CrαcK
I read you whole post, but I can't understand what's the problem are you talking about.
Probably, you should use DestroyPickup and then CreatePickup again to solve the problem.
btw, I'm using Incognito's streamer and my own FS for enter\exits, and it's working perfectly.
Well, I want pickups which you can walk through and they don't disappear.
Pickup types 1 and 23 are meant to do exactly that, but neither of them work on my server - instead both are able to be picked up and they don't respawn. That's the problem.

I don't want to have to destroy it and recreate it every time somebody enters one, it just complicates things considering it should normally work.
Reply
#4

Then try using streamer. Because it does that automatically. I am using type 23
Reply
#5

Quote:
Originally Posted by CrαcK
Then try using streamer. Because it does that automatically. I am using type 23
Hmm, odd.

I used Incognito's Streamer Plugin, and surprisingly, it worked.

That's very weird considering it still uses the default CreatePickup.


Anyway, thanks for the help and streamer suggestion, you've saved my gamemode.
Reply
#6

Nice to hear that
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)