Background problem - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Background problem (
/showthread.php?tid=526960)
Textdraw Background problem -
Dusan01 - 20.07.2014
hu guys i have this:
Код:
PlayerText:CreateModelPreviewTextDraw(playerid, modelindex, Float:Xpos, Float:Ypos, Float:width, Float:height4)
{
new PlayerText:txtPlayerSprite = CreatePlayerTextDraw(playerid, Xpos, Ypos, ""); // it has to be set with SetText later
PlayerTextDrawFont(playerid, txtPlayerSprite, TEXT_DRAW_FONT_MODEL_PREVIEW);
PlayerTextDrawSetPreviewVehCol(playerid ,txtPlayerSprite, 181, 181);
PlayerTextDrawTextSize(playerid, txtPlayerSprite, width, height4); // Text size is the Width:Height
PlayerTextDrawSetPreviewModel(playerid, txtPlayerSprite, modelindex);
PlayerTextDrawSetPreviewRot(playerid,txtPlayerSprite, -16.0, 0.0, -55.0);
PlayerTextDrawShow(playerid,txtPlayerSprite);
return txtPlayerSprite;
}
and:
Код:
CreateModelPreviewTextDraw(playerid, model, 562.500000, 369.937500, 50.0, 50.0);
how can i now disable background?
Respuesta: Background problem -
Xabi - 20.07.2014
pawn Код:
textDraw = CreateModelPreviewTextDraw(playerid, model, 562.500000, 369.937500, 50.0, 50.0);
PlayerTextDrawHide(playerid, textDraw);
Re: Respuesta: Background problem -
Dusan01 - 20.07.2014
Quote:
Originally Posted by Xabi
pawn Код:
textDraw = CreateModelPreviewTextDraw(playerid, model, 562.500000, 369.937500, 50.0, 50.0); PlayerTextDrawHide(playerid, textDraw);
|
i mean background of that textdraw
Respuesta: Background problem -
Xabi - 20.07.2014
Try adding these two lines:
pawn Код:
TextDrawUseBox(txtPlayerSprite, 1);
TextDrawBoxColor(txtPlayerSprite, 0x00000000);
Re: Respuesta: Background problem -
Dusan01 - 20.07.2014
Quote:
Originally Posted by Xabi
Try adding these two lines:
pawn Код:
TextDrawUseBox(txtPlayerSprite, 1); TextDrawBoxColor(txtPlayerSprite, 0x00000000);
|
Zhat didnt work for me, still i have black background