[Ajuda] AttachObjectToVehicle
#3

Vocк pode pegar as coordenadas do banco da frente usando a funзгo GetVehicleModelInfo

pawn Код:
CMD:bancodafrente(playerid){

    new
        string[45],
        Float:frontPos[3];


    GetVehicleModelInfo(GetVehicleModel(GetPlayerVehicleID(playerid)), VEHICLE_MODEL_INFO_FRONTSEAT, frontPos[0], frontPos[1], frontPos[2]);

    format(string, sizeof string, "FrontX:%f   FrontY:%f   FrontZ:%f", frontPos[0], frontPos[1], frontPos[2]);
    SendClientMessage(playerid, -1, string);
   
    print(string);
   
    return 1;
}
OBS: Nгo testei, mais deve dar certo.
Reply


Messages In This Thread
AttachObjectToVehicle - by RDM - 12.01.2015, 14:02
Re: AttachObjectToVehicle - by JonathanFeitosa - 12.01.2015, 14:16
Re: AttachObjectToVehicle - by ForT - 12.01.2015, 14:32
Re: AttachObjectToVehicle - by RDM - 12.01.2015, 15:44

Forum Jump:


Users browsing this thread: 1 Guest(s)