CreatePickup - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: CreatePickup (
/showthread.php?tid=66989)
CreatePickup -
KnooL - 26.02.2009
Hello all,
Can someone give me an full, right example of making more pickups (so you have an id and each id have an function as setplayerpos)
i've seen something like
new policepick;
policepick = CreatePickup(lalala);
OnPlayerPickupPickup();
?
That's the place I dunno it anymore.
Hope you guys can help me out!
Thanks!
Sander
Re: CreatePickup -
Grim_ - 26.02.2009
for your example 'policepick = CreatePickup(lalala);'
you would use this under OnPlayerPickupPickup()
pawn Код:
if(pickupid == policepick)
{
//Whatever you want the pickup to do
}