Little Textdraw Help
#1

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.
Reply
#2

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)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)