SA-MP Forums Archive
How to make pickups for crack etc. - 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: How to make pickups for crack etc. (/showthread.php?tid=415295)



How to make pickups for crack etc. - Moneymachine - 12.02.2013

So how can i make pickups like /getcrack to crack house and /getseeds to drughouse and /getmats.To RP server.


AW: How to make pickups for crack etc. - roym899 - 12.02.2013

You should really learn the basics first. Seems like you have no idea about scripting. But as you asked:
https://sampwiki.blast.hk/wiki/CreatePickup to create the pickup
And then you either check the coordinates of the pickup when they enter the command or you set a variable under OnPlayerPickUpPickup. Remember that you have to unset it if the player moves away from the pickup. (use a timer for this instead of OnPlayerUpdate as this is called way to frequently for such a task.


AW: How to make pickups for crack etc. - Moneymachine - 12.02.2013

...Well fuck you.Im newbie scripter,Like you are Or was.