15.07.2015, 01:50
Faz assim entгo...
@Edit
Cуdigo att.
PHP код:
if( !IsTrailerAttachedToVehicle( GetPlayerVehicleID( playerid )) )
{
SendClientMessage( playerid, COLOR_ERRO, "[ x ] Seu caminhгo nгo estб com carga." );
return 1;
}
new tid = GetVehicleTrailer( GetPlayerVehicleID( playerid );
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);
}
}
}
Cуdigo att.