23.03.2012, 18:24
Eu Tenho com Carro Tb Aqui:
pawn Код:
//topo
new vehiclePickup4, Vehicle4 = 411;//Infernus
//ongamemodeinit
vehiclePickup4 = CreatePickup(1272, 1, -235.6872,4141.0005,42.7278, 0);
public OnPlayerPickUpPickup(playerid, pickupid)
if(pickupid == vehiclePickup)
{
new Float:ppos[4];
GetPlayerPos(playerid, ppos[0], ppos[1], ppos[2]);
GetPlayerFacingAngle(playerid, ppos[3]);
Vehicle = CreateVehicle(462, ppos[0], ppos[1], ppos[2], ppos[3], 0, 0, (1000*1000));
PutPlayerInVehicle(playerid, Vehicle, 0);
}
public OnPlayerUpdate(playerid)
if(IsPlayerInRangeOfPoint(playerid, 1.5, 105.3965,4435.6367,1.0398))
{
if(IsPlayerInAnyVehicle(playerid) && GetPlayerVehicleID(playerid) != Vehicle)
{
DestroyVehicle(GetPlayerVehicleID(playerid));
SetPlayerPos(playerid, 105.3965,4435.6367,1.0398);
}
}