SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 17/12/2010, 08:48 PM   #1
yvoms
Huge Clucker
 
yvoms's Avatar
 
Join Date: Nov 2009
Location: Las Venturas
Posts: 454
Reputation: 26
Lightbulb [Tutorial]how to make pickups[Tutorial]

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 : 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)
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
yvoms is offline   Reply With Quote
Old 18/12/2010, 12:29 AM   #2
admantis
High-roller
 
Join Date: Sep 2009
Posts: 2,524
Reputation: 449
Default Re: [Tutorial]how to make pickups[Tutorial]

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.
admantis is offline   Reply With Quote
Old 18/12/2010, 08:02 PM   #3
yvoms
Huge Clucker
 
yvoms's Avatar
 
Join Date: Nov 2009
Location: Las Venturas
Posts: 454
Reputation: 26
Default Re: [Tutorial]how to make pickups[Tutorial]

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
__________________

yvoms is offline   Reply With Quote
Old 18/12/2010, 08:04 PM   #4
rs.pect
Big Clucker
 
rs.pect's Avatar
 
Join Date: Nov 2010
Posts: 84
Reputation: 3
Default Re: [Tutorial]how to make pickups[Tutorial]

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

Should be.

pawn Code:
mypickup = CreatePickup(model,type,x, y, z, viritual world leave at -1; // My pickup
__________________
rs.pect is offline   Reply With Quote
Old 18/12/2010, 08:43 PM   #5
olabv
Big Clucker
 
Join Date: Jan 2009
Location: #define HOME "Pawn"
Posts: 109
Reputation: 0
Default Re: [Tutorial]how to make pickups[Tutorial]

good work very useful
__________________
Code:
Gamemodes:                        Filterscripts:

- FuryDM 1.5
olabv is offline   Reply With Quote
Old 18/12/2010, 10:21 PM   #6
Mean
High-roller
 
Join Date: Jul 2010
Location: 14th annual lemon party
Posts: 2,726
Reputation: 229
Default Re: [Tutorial]how to make pickups[Tutorial]

This can be found on wiki, and totally wrong section.
__________________
I'm pretty much the creator of the PUB: macro used in many scripts today, therefore I'm a legitimate genius.

Ground breaking stuff
Quote:
Originally Posted by ******
I've met Mean on a few occasions in real life, a true genius and a 400 pound all-muscle gorilla alpha male. He has had a great influence on my life.
Quote:
Originally Posted by Kalcor
I don't know where I'd be today without Mean. He has helped me through some tough times in my life. He always brings a smile to my face. Such a positive lad!
Mean is offline   Reply With Quote
Old 22/12/2010, 06:51 PM   #7
yvoms
Huge Clucker
 
yvoms's Avatar
 
Join Date: Nov 2009
Location: Las Venturas
Posts: 454
Reputation: 26
Default Re: [Tutorial]how to make pickups[Tutorial]

ur Mean.
__________________

yvoms is offline   Reply With Quote
Old 09/06/2011, 09:36 PM   #8
yvoms
Huge Clucker
 
yvoms's Avatar
 
Join Date: Nov 2009
Location: Las Venturas
Posts: 454
Reputation: 26
Default Re: [Tutorial]how to make pickups[Tutorial]

are bumps allowed [yes/no]
__________________

yvoms is offline   Reply With Quote
Old 09/06/2011, 11:45 PM   #9
admantis
High-roller
 
Join Date: Sep 2009
Posts: 2,524
Reputation: 449
Default Respuesta: Re: [Tutorial]how to make pickups[Tutorial]

Quote:
Originally Posted by yvoms View Post
are bumps allowed [yes/no]
Bump a 6 month old thread with a useless statement? No.
admantis is offline   Reply With Quote
Old 02/03/2012, 10:38 PM   #10
yvoms
Huge Clucker
 
yvoms's Avatar
 
Join Date: Nov 2009
Location: Las Venturas
Posts: 454
Reputation: 26
Default Re: [Tutorial]how to make pickups[Tutorial]

@admantis u sir gently suck cock.
//not flaming or offending,
Just hate it when people respond like that.
__________________

yvoms is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT. The time now is 08:47 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.