SA-MP Forums Archive
Little Textdraw Help - 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: Little Textdraw Help (/showthread.php?tid=645133)



Little Textdraw Help - silverms - 20.11.2017

hey so I'm creating a textdraw that have an skin model id here is the code
PHP код:
Info10[playerid] = CreatePlayerTextDraw(playerid417.50000071.555557"LD_SPAC:white");
    
PlayerTextDrawLetterSize(playeridInfo10[playerid], 0.0000000.000000);
    
PlayerTextDrawTextSize(playeridInfo10[playerid], 63.75000091.259262);
    
PlayerTextDrawAlignment(playeridInfo10[playerid], 1);
    
PlayerTextDrawColor(playeridInfo10[playerid], -1);
    
PlayerTextDrawUseBox(playeridInfo10[playerid], true);
    
PlayerTextDrawBoxColor(playeridInfo10[playerid], 0);
    
PlayerTextDrawSetShadow(playeridInfo10[playerid], 0);
    
PlayerTextDrawSetOutline(playeridInfo10[playerid], 0);
    
PlayerTextDrawFont(playeridInfo10[playerid], 5); 
but how could I change the skin model id even when I'm in game and how can I make it rotate, I'm using ipleomax textdraw editor.


Re: Little Textdraw Help - pollo97 - 21.11.2017

I had the same issue and I solved with this:
Код:
CMD:tmodel(playerid,params[])
{
     new modelid;
     sscanf(params,"d",modelid));
     PlayerTextDrawSetPreviewModel(playerid,Info10[playerid], modelid);
     PlayerTextDrawShow(playerid,Info10[playerid]);
     return 1;
}

CMD:trot(playerid,params[])
{
     new Float:rx,Float:ry,Float:rz,Float:zoom;
     sscanf(params,"ffff",rx,ry,rz,zoom));
     PlayerTextDrawSetPreviewRot(playerid,Info10[playerid], rx,ry,rz,zoom);
     PlayerTextDrawShow(playerid,Info10[playerid]);
     return 1;
}
(Temporary command)