SergiuOfficial
13-06-17, 09:42
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
Code:
#include <a_samp>
new ls;
Now Under : public OnGameModeInit()
write or copy this :
Code:
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 :
Code:
public OnGameModeInit()
{
ls = CreatePickup(1239, 1, 704.4722, -442.9513, 16.3359, -1);
return 1;
}
After doing this Move to :
Code:
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 :
Code:
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
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
Code:
#include <a_samp>
new ls;
Now Under : public OnGameModeInit()
write or copy this :
Code:
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 :
Code:
public OnGameModeInit()
{
ls = CreatePickup(1239, 1, 704.4722, -442.9513, 16.3359, -1);
return 1;
}
After doing this Move to :
Code:
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 :
Code:
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