[Tutorial]how to make pickups[Tutorial]
#1

above ur script under #include <a_samp>
type
pawn Code:
new mypickup;
this will define a path to ur pickup to make it all easyer.

pawn Code:
mypickup = CreatePickup(type, model,x, y, z, viritual world leave at -1; // My pickup
example:
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.
pawn Code:
{
    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;    
}

EXTRA!
model : http://weedarr.wikidot.com/pickups
spawn type : https://sampwiki.blast.hk/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)
x=192.4047
y=1931.3345
z=17.6406
There we go!


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


Messages In This Thread
[Tutorial]how to make pickups[Tutorial] - by yvoms - 17.12.2010, 20:48
Re: [Tutorial]how to make pickups[Tutorial] - by admantis - 18.12.2010, 00:29
Re: [Tutorial]how to make pickups[Tutorial] - by yvoms - 18.12.2010, 20:02
Re: [Tutorial]how to make pickups[Tutorial] - by rs.pect - 18.12.2010, 20:04
Re: [Tutorial]how to make pickups[Tutorial] - by olabv - 18.12.2010, 20:43
Re: [Tutorial]how to make pickups[Tutorial] - by Mean - 18.12.2010, 22:21
Re: [Tutorial]how to make pickups[Tutorial] - by yvoms - 22.12.2010, 18:51
Re: [Tutorial]how to make pickups[Tutorial] - by yvoms - 09.06.2011, 21:36
Respuesta: Re: [Tutorial]how to make pickups[Tutorial] - by admantis - 09.06.2011, 23:45
Re: [Tutorial]how to make pickups[Tutorial] - by yvoms - 02.03.2012, 22:38

Forum Jump:


Users browsing this thread: 4 Guest(s)