View Full Version : [Tutorial]how to make pickups[Tutorial]

17/12/2010, 08:48 PM
above ur script under #include <a_samp>
type new mypickup;
this will define a path to ur pickup to make it all easyer.

mypickup = CreatePickup(type, model,x, y, z, viritual world leave at -1; // My pickup
mypickup = CreatePickup(1274, 2, 2291.7900, -1438.1653, 21.3438, -1);

than find "public OnPlayerPickUpPickup"
Put this in there and change it to w/e u want.

if(pickupid == mypickup) // Check that the pickup ID of the pickup they picked up is mypickup
// It is
SendClientMessage(playerid, 0xFFFFFFFF, "You received $100!"); // Message the player
GivePlayerMoney(playerid, 100); // Give the player the money
return 1;

model : http://weedarr.wikidot.com/pickups
spawn type : http://wiki.sa-mp.com/wiki/PickupTypes

How to find the x,y,z :
go in some server or in the samp debugg and go to the place u want to have the pickup.
while there type /save (name) and close it than find ur savedpositions.txt mostly like founded in ur Gta San Andreas User Files in the folder of Sa-Mp
open it and copy the line with has //(urname u put when u /save it ingame)
Example: (0,192.4047,1931.3345,17.6406,89.4637,0,0,0,0,0,0) ; // (urname)
There we go!

Sorry for my bad english but i am dutch i will post a video soon tough ask for help if needed

18/12/2010, 12:29 AM
Nice tutorial but this goes in 'Tutorials' section not here
Also you can make the thread look prettier, PAWN tags and fonts, and fix your grammar to make it look better.

18/12/2010, 08:02 PM
Yh easy to be sayd hard to be done :)
and if a moderator/admin can please move this thread to tutorials would be great thnx :D

18/12/2010, 08:04 PM
mypickup = CreatePickup(type, model,x, y, z, viritual world leave at -1; // My pickup

Should be.

mypickup = CreatePickup(model,type,x, y, z, viritual world leave at -1; // My pickup

18/12/2010, 08:43 PM
good work :D very useful :)

18/12/2010, 10:21 PM
This can be found on wiki, and totally wrong section.

22/12/2010, 06:51 PM
ur Mean.

09/06/2011, 09:36 PM
are bumps allowed [yes/no]

09/06/2011, 11:45 PM
are bumps allowed [yes/no]

Bump a 6 month old thread with a useless statement? No.

02/03/2012, 10:38 PM
@admantis u sir gently suck cock.
//not flaming or offending,
Just hate it when people respond like that.

02/03/2012, 11:19 PM
So, this thread is, 15 months old, and ur still arguing..