13.10.2011, 12:55
It's because you changed the "INFERNUS" variable from the pickup id to the vehicle id.
This should work:
Edit: Ninja'd
This should work:
pawn Код:
new Infernus_Pickup, Infernus;
Infernus_Pickup = AddStaticPickup(1240, 2, 2114.8801, -2426.1147, 13.5469, 0);
if(pickupid == Infernus_Pickup)
{
if(GetVehicleModel(Infernus)) DestroyVehicle(Infernus);
new Float:Pos[4];
GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
GetPlayerFacingAngle(playerid, Pos[3]);
Infernus = CreateVehicle(411, Pos[0], Pos[1], Pos[2], Pos[3], -1, -1, 60000);
PutPlayerInVehicle(playerid, Infernus, 0);
}