[Tutorial] [TUT]How to make Pickups.
#1


Hello! My name is Ehab Isaac. I REALLY THANK God! Because now I know how to make pickups And i'm very happy !! Here is a Tutorial how to make a pickup =)

First of all Go to Pawno!
Open a new project

Add :

new ls; // You need that "ls" to definite the pickup name.

Under #include <a_samp>

Like this

Код:
 #include <a_samp>

new ls;
Now Under : public OnGameModeInit()
write or copy this :

Код:
ls = CreatePickup(model, type, Float:X, Float:Y, Float:Z, Virtualworld);
// you can notice ls = ( so you can name it whatever you want, but be sure u named the new NAMEANYTHING; )

For Example : ls = CreatePickup(1239, 1, 704.4722, -442.9513, 16.3359, -1);
Model, Type, X, Y, Z, Virtual world.

Similar Work :

Код:
public OnGameModeInit()
{
	ls = CreatePickup(1239, 1, 704.4722, -442.9513, 16.3359, -1);
	return 1;
}
After doing this Move to :
Код:
public OnPlayerPickUpPickup(playerid, pickupid)
Write this under public OnPlayerPickUpPickup(playerid, pickupid) :

if(pickupid == ls) SetPlayerPos(playerid,X,Y,Z); // SetPlayerPos means to Teleport a player when he go through the pickup. You can put SetPlayerHealth(playerid, Health Ammount);

// As you see up there " if(pickupid == ls) <--- ls. it's a very important.


Now Let me show you what model, type, X, Y, Z and VirtualWorld means :


1) model : The model of the pickup.

2) type : The pickup spawn type.

3) Float:X : The X coordinate to create the pickup at.

4) Float:Y : The Y coordinate to create the pickup at.

5) Float:Z : The Z coordinate to create the pickup at.

6) virtualworld : The virtual world ID of the pickup. Use -1 to make the pickup show in all worlds. * I always use -1. -1 = Appears in every world.



ALSO Here is some Models for the Pickup you want to make :

Код:
1210 - Briefcase
1212 - Money
1239 - Information
1240 - Heart
1241 - Adrenaline pill
1242 - Armor
1247 - Bribe
1248 - Gta 3 logo
1252 - Grey bomb
1253 - Photo Op
1254 - rampage (single skull)
1313 - two player rampage (skulls)
1272 - blue house
1273 - green house
1274 - dollar
1275 - blue t-shirt
1276 - tiki 
1277 - save disk
1279 - drug bundle
1313 - 2 skulls icon
1314 - 2 player
1316 - Corona (textures missing)
1317 - Checkpoint (textures missing)
1318 - White arrow (pointing down)
1559 - Interior enter/exit diamond
1582 - Pizza Box
2894 - Madd Dogg's rhyme book
Here is also a good and helpful FS i made for you to make the thing easier.

Download from here :


http://www.solidfiles.com/d/b1d3/

I Wish you understood

- Ehab Isaac
Reply


Messages In This Thread
[TUT]How to make Pickups. - by Ehab_Isaac101 - 16.06.2010, 20:03
Re: [TUT]How to make Pickups. - by v0nz - 16.06.2010, 20:07
Re: [TUT]How to make Pickups. - by Zh3r0 - 16.06.2010, 20:07
Re: [TUT]How to make Pickups. - by Ehab_Isaac101 - 16.06.2010, 20:08
Re: [TUT]How to make Pickups. - by Ehab_Isaac101 - 16.06.2010, 20:09
Re: [TUT]How to make Pickups. - by Zh3r0 - 16.06.2010, 20:10
Re: [TUT]How to make Pickups. - by Ehab_Isaac101 - 16.06.2010, 20:12
Re: [TUT]How to make Pickups. - by Aleron - 16.06.2010, 20:13
Re: [TUT]How to make Pickups. - by Ehab_Isaac101 - 16.06.2010, 20:16
Re: [TUT]How to make Pickups. - by Ehab_Isaac101 - 17.06.2010, 00:17
Re: [TUT]How to make Pickups. - by Ehab_Isaac101 - 17.06.2010, 12:27
Re: [TUT]How to make Pickups. - by Zh3r0 - 17.06.2010, 12:46
Re: [TUT]How to make Pickups. - by ViruZZzZ_ChiLLL - 17.06.2010, 13:41
Re: [TUT]How to make Pickups. - by omfggus - 17.06.2010, 13:46
Re: [TUT]How to make Pickups. - by Ehab_Isaac101 - 17.06.2010, 14:20
Re: [TUT]How to make Pickups. - by Ehab_Isaac101 - 17.06.2010, 14:20
Re: [TUT]How to make Pickups. - by pryor94 - 15.08.2010, 16:28
Re: [TUT]How to make Pickups. - by Ehab1911 - 19.11.2010, 03:08
Re: [TUT]How to make Pickups. - by Leeroy. - 19.11.2010, 03:10
Re: [TUT]How to make Pickups. - by olabv - 14.12.2010, 22:13
Re: [TUT]How to make Pickups. - by Chris_Mcgrifthd - 25.12.2010, 10:53
Re: [TUT]How to make Pickups. - by Mean - 25.12.2010, 16:09
Re: [TUT]How to make Pickups. - by Fool - 30.12.2010, 11:37
Re: [TUT]How to make Pickups. - by Marty_Alex - 02.01.2011, 10:14
Re: [TUT]How to make Pickups. - by HyperZ - 02.01.2011, 12:17
Re: [TUT]How to make Pickups. - by oNe_87 - 15.06.2011, 07:30
Re: [TUT]How to make Pickups. - by Ehab1911 - 15.06.2011, 07:32
Re: [TUT]How to make Pickups. - by Horrible - 27.06.2011, 09:00
Re: [TUT]How to make Pickups. - by Wesley221 - 27.06.2011, 09:15
Re: [TUT]How to make Pickups. - by RamzyR - 06.08.2016, 22:55
Re: [TUT]How to make Pickups. - by WhiteGhost - 06.08.2016, 23:00
Re: [TUT]How to make Pickups. - by BlackbirdXd - 12.02.2017, 19:42
Re: [TUT]How to make Pickups. - by AvicennaRabama - 16.03.2017, 12:03
Re: [TUT]How to make Pickups. - by Toroi - 16.03.2017, 12:19

Forum Jump:


Users browsing this thread: 1 Guest(s)