02.01.2010, 04:00
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.
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.