stock UpdateTextDraw(Index, bool:Show = true)
{
if(!(0 <= Index < sizeof Project)) return;
TextDrawDestroy(Project[Index][iTextdraw]);
Project[Index][iTextdraw] = Text:INVALID_TEXT_DRAW;
Project[Index][iTextdraw] = TextDrawCreate(Project[Index][iPositionX],Project[Index][iPositionY],rusText(Project[Index][iText]));
TextDrawLetterSize (Project[Index][iTextdraw], Project[Index][iLetterX], Project[Index][iLetterY]);
if(Project[Index][iUsebox] || Project[Index][iFont] >= 4)
TextDrawTextSize (Project[Index][iTextdraw], Project[Index][iTextX], Project[Index][iTextY]);
TextDrawAlignment (Project[Index][iTextdraw], Project[Index][iAlignment] ? Project[Index][iAlignment] : 1);
TextDrawColor (Project[Index][iTextdraw], Project[Index][iColor]);
TextDrawUseBox (Project[Index][iTextdraw], Project[Index][iUsebox]);
TextDrawBoxColor (Project[Index][iTextdraw], Project[Index][iBoxcolor]);
TextDrawSetShadow (Project[Index][iTextdraw], Project[Index][iShadow]);
TextDrawSetOutline (Project[Index][iTextdraw], Project[Index][iOutline]);
TextDrawBackgroundColor (Project[Index][iTextdraw], Project[Index][iBackgroundcolor]);
TextDrawFont (Project[Index][iTextdraw], Project[Index][iFont]);
TextDrawSetProportional (Project[Index][iTextdraw], Project[Index][iProportion]);
///////////////ВОТ
if(Project[Index][iPreviewModel] > -1)
{
TextDrawSetPreviewModel(Project[Index][iTextdraw], Project[Index][iPreviewModel]);
TextDrawSetPreviewRot(Project[Index][iTextdraw],Project[Index][iPMRotX], Project[Index][iPMRotY], Project[Index][iPMRotZ], Project[Index][iPMZoom]);
}
////////////////////
if(Show) TextDrawShowForPlayer(ProjectEditor, Project[Index][iTextdraw]);
}
А можешь в паблик выложить FS? :3 Или помочь самому сделать с Preview Model?
|
А можешь в паблик выложить FS? :3 Или помочь самому сделать с Preview Model?
|