SA-MP Forums Archive
[Ajuda] Pickup - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Pickup (/showthread.php?tid=328096)



[Ajuda] Pickup - [NVC]Eduardo - 23.03.2012

Queria um pickup que quando passar ganhava um infernus ID ( 411 )
+rep


Re: [Ajuda] Pickup - [NVC]Eduardo - 23.03.2012

Sem e ganhar o veiculo.


Re: [Ajuda] Pickup - ViniBorn - 23.03.2012

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



Re: [Ajuda] Pickup - [KnD]Chip7 - 23.03.2012

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



Re: [Ajuda] Pickup - shadauer - 23.03.2012

Ae Eduardo, Ta Fazendo Algo Do Tipo Corridas Do MTA Manolo ?


Re: [Ajuda] Pickup - histire - 23.03.2012

mais ele nem pergunto pra tigo Chip


Re: [Ajuda] Pickup - humildadeforever - 23.03.2012

Quote:
Originally Posted by [KnD]Chip7
Посмотреть сообщение
Te Intereзa?
Que grosseria '-', ele perguntou pro Eduardo... E o certo й interessa*


Re: [Ajuda] Pickup - histire - 23.03.2012

cara nem vo dar continuidade nessa briga por que tu logo logo tah banido, pelos flood que tu fas nos topicos e zuaзao =]


Re: [Ajuda] Pickup - [NVC]Eduardo - 23.03.2012

Quote:
Originally Posted by shadauer
Посмотреть сообщение
Ae Eduardo, Ta Fazendo Algo Do Tipo Corridas Do MTA Manolo ?
Mais ou menos.