15.07.2015, 01:40
PHP код:
if( IsTrailerAttachedToVehicle( GetPlayerVehicleID( playerid )) )
{
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);
}
}
}