23.01.2013, 19:04
Quote:
It returns the position of the part from the center of the vehicle.
|
https://sampwiki.blast.hk/wiki/Vehicle_information_types
Here I am doing the same but I give it to instead of IsPlayerInRangeOfPoint Attach3DTextLabelToVehicle
pawn Код:
COMMAND:testing(playerid, params[])
{
new vehicleid = GetPlayerVehicleID(playerid), Float:pos[3];
GetVehicleModelInfo(GetVehicleModel(vehicleid), VEHICLE_MODEL_INFO_PETROLCAP, pos[0], pos[1], pos[2]);
new Text3D:texto = Create3DTextLabel("PETROLCAP", -1, 0.0, 0.0, 0.0, 50.0, 0, 1);
Attach3DTextLabelToVehicle(texto, vehicleid, pos[0], pos[1], pos[2]);
return 1;
}