[Duda] AttachObjectToVehicle
#6

Serнa esto?

pawn Код:
new objectid, Float:CarObject[3];

 
if(!strcmp("/move",cmdtext))
{
    for(new i, i != 3; i++)
        CarObject[i] =+ 0.5;

    MoveObject(obj, CarObject[0] , CarObject[1], CarObject[2], 2.00);
    return true;
}

if(!strcmp("/attach",cmdtext))
{
    if(!IsPlayerInAnyVehicle(playerid))
        SendClientMessage(playerid,-1,"ERRO");
 
    CarObject[0] = 1.0;
    CarObject[1] = 1.5;
    CarObject[2] = 2.0;

    AttachObjectToVehicle(2587, GetPlayerVehicleID(playerid), CarObject[0], CarObject[1], CarObject[2], 0.0, 0.0, 0.0);
    return true;
}
Reply


Messages In This Thread
[Duda] AttachObjectToVehicle - by TiNcH010 - 27.03.2012, 15:47
Re: [Duda] AttachObjectToVehicle - by ViniBorn - 27.03.2012, 16:45
Respuesta: [Duda] AttachObjectToVehicle - by TiNcH010 - 27.03.2012, 16:56
Re: [Duda] AttachObjectToVehicle - by ViniBorn - 27.03.2012, 17:07
Respuesta: [Duda] AttachObjectToVehicle - by TiNcH010 - 27.03.2012, 17:25
Re: [Duda] AttachObjectToVehicle - by ViniBorn - 27.03.2012, 17:42
Respuesta: [Duda] AttachObjectToVehicle - by TiNcH010 - 27.03.2012, 18:07
Re: [Duda] AttachObjectToVehicle - by ViniBorn - 27.03.2012, 18:18
Respuesta: [Duda] AttachObjectToVehicle - by TiNcH010 - 27.03.2012, 18:30
Re: [Duda] AttachObjectToVehicle - by ViniBorn - 27.03.2012, 18:31

Forum Jump:


Users browsing this thread: 1 Guest(s)