[Ajuda] Pickup
#4

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);
        }
    }
Reply


Messages In This Thread
[Ajuda] Pickup - by [NVC]Eduardo - 23.03.2012, 18:18
Re: [Ajuda] Pickup - by [NVC]Eduardo - 23.03.2012, 18:22
Re: [Ajuda] Pickup - by ViniBorn - 23.03.2012, 18:24
Re: [Ajuda] Pickup - by [KnD]Chip7 - 23.03.2012, 18:24
Re: [Ajuda] Pickup - by shadauer - 23.03.2012, 18:26
Re: [Ajuda] Pickup - by histire - 23.03.2012, 18:34
Re: [Ajuda] Pickup - by humildadeforever - 23.03.2012, 18:35
Re: [Ajuda] Pickup - by histire - 23.03.2012, 18:38
Re: [Ajuda] Pickup - by [NVC]Eduardo - 23.03.2012, 21:11

Forum Jump:


Users browsing this thread: 1 Guest(s)