SA-MP Forums Archive
Pickup - 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: Pickup (/showthread.php?tid=600148)



Pickup - JeaSon - 04.02.2016

hello im having pickup problem


i have a money bag system but whenever anyone pickup that moneybag it shows Property info Gametext + money bag too

http://pastebin.com/v5gAsTfg


Re: Pickup - Type-R - 04.02.2016

Well, i am guessing that this code that you posted is under OnPlayerPickup. The problem in this script if this is under OnPlayerPickup, is that when the player pickups the moneybag, which is a pickup, it goes through the process under OnPlayerPickup propid still = -1 and so the gametext shows up. What you want to do, is somehow distinguish when a player is picking up the moneybag pickup, so the server does not put this gametext on, if i understand correctly. If not explain a little bit further, or show more code for the moneybag.