23.03.2012, 18:24
pawn Код:
//Topo
new PickUpInfernus;
// OnGameModeInit
PickUpInfernus = CreatePickup(1239, 1, X, Y, Z, VW); // Ajuste
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == PickUpInfernus)
{
new Float:VBPos[3],CarID;
GetPlayerPos(playerid,VBPos[0],VBPos[1],VBPos[2]);
CarID = CreateVehicle(411, VBPos[0],VBPos[1],VBPos[2], 0.0,0, 0,-1);
PutPlayerInVehicle(playerid, CarID , 0);
}
return 1;
}