13.10.2011, 13:03
@Jason
It's work,but i made two pickups and when i enter in one he spawn me NRG and INFERNUS..i do this:
It's work,but i made two pickups and when i enter in one he spawn me NRG and INFERNUS..i do this:
PHP код:
new NRG, NRG1;
new INFERNUS, INFERNUS1;
PHP код:
NRG1 = AddStaticPickup(1240,2,2118.9846,-2425.7520,13.5469,0);
INFERNUS1 = AddStaticPickup(1240,2,2127.5208,-2430.4951,13.5469,0);
PHP код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == NRG1)
{
GetPlayerPos(playerid, X,Y,Z);
NRG = CreateVehicle(522, X,Y,Z, 0.0, 0, 0, 60000);
PutPlayerInVehicle(playerid, NRG, 0);
}
if(pickupid == INFERNUS1)
{
GetPlayerPos(playerid, X,Y,Z);
INFERNUS = CreateVehicle(411, X,Y,Z, 0.0, 0, 0, 60000);
PutPlayerInVehicle(playerid, INFERNUS, 0);
}
return 1;
}