09.08.2008, 20:41
Hey, I dunno about you, but I was really p*ssed off with the pickup bug SA:MP has. With it, pickup id's were not the same for all players, and that sucks. Today, I have thought of a script to work it around and I'm willing to share. This is an include, but since it's really small, I'll just post the code on pastebin and won't upload the file. So, let's go.
First, make a new include named pickupfix.inc in your includes folder.
Secondly, paste the code from the link in it: http://pastebin.com/f37dd849f
Then add this on top of your script:
And then, add
On OnPlayerPickupPickup callback like this:
Now that you have done it, there will be no more pickupid messups! Isn't that great?
I made this myself, but I use some Andre's functions, so I gave him credits. Thank you for reading, and goodbye!
First, make a new include named pickupfix.inc in your includes folder.
Secondly, paste the code from the link in it: http://pastebin.com/f37dd849f
Then add this on top of your script:
pawn Code:
#include <pickupfix>
pawn Code:
PICKUP_FIX
pawn Code:
public OnPlayerPickUpPickup(playerid, pickupid)
{
FIX_PICKUPS
I made this myself, but I use some Andre's functions, so I gave him credits. Thank you for reading, and goodbye!