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(playerid, 417.500000, 71.555557, "LD_SPAC:white");
PlayerTextDrawLetterSize(playerid, Info10[playerid], 0.000000, 0.000000);
PlayerTextDrawTextSize(playerid, Info10[playerid], 63.750000, 91.259262);
PlayerTextDrawAlignment(playerid, Info10[playerid], 1);
PlayerTextDrawColor(playerid, Info10[playerid], -1);
PlayerTextDrawUseBox(playerid, Info10[playerid], true);
PlayerTextDrawBoxColor(playerid, Info10[playerid], 0);
PlayerTextDrawSetShadow(playerid, Info10[playerid], 0);
PlayerTextDrawSetOutline(playerid, Info10[playerid], 0);
PlayerTextDrawFont(playerid, Info10[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)