15.07.2015, 01:28
Aproveitando o topico, como eu verifico se o trailer esta atrelado ao caminhao?
Assim nгo funcionou..
PHP код:
if(IsTrailerAttachedToVehicle(vehicleid))
{
new tid = GetVehicleTrailer(vehicleid);
if(GetVehicleModel(tid) > 0)
{
format(TrailerNome, 50, "~y~%s", VehicleName[GetVehicleModel(tid)-400]);
PlayerTextDrawSetString(playerid, Velo[16], TrailerNome);
PlayerTextDrawShow(playerid, Velo[16]);
if(GetPVarInt(playerid, "mostrar_trailer") == 0)
{
PlayerTextDrawSetPreviewModel(playerid, Velo[11], GetVehicleModel(tid));
PlayerTextDrawSetPreviewVehCol(playerid, Velo[11], AVehicleData[tid][Color1], AVehicleData[tid][Color2]);
PlayerTextDrawShow(playerid, Velo[11]);
SetPVarInt(playerid, "mostrar_trailer", 1);
}
}
}