SA-MP Forums Archive
Update TextDrawPreviewModel - 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: Update TextDrawPreviewModel (/showthread.php?tid=549416)



Update TextDrawPreviewModel - s0ZNIz - 06.12.2014

i got problem with update TextdrawPreviewmodel
im trying to do Textdraw of the player skin. and i want everytime player will change his skin the textdraw will update himself.

i tried in OnServerUpdate and OnPlayerUpdate
PHP код:
UpdatePC(playerid); 
the stock:
PHP код:
stock UpdatePC(playerid)
{
    new 
playerskin GetPlayerSkin(playerid);
    
TextDrawSetPreviewModel(PC[0], playerskin2);
    return 
1;

it's updating only the first skin then nothing


Re: Update TextDrawPreviewModel - s0ZNIz - 06.12.2014

Anyone ? :P


Re : Update TextDrawPreviewModel - MariemAyedi1997 - 06.12.2014

Quote:

else if(SkinSaving[playerid] == 0)
{
PlayerInfo[playerid][eSkin] = skinid;
SkinSaving[playerid] = 1;
SendClientMessage(playerid,COLOR_GREY,"You have saved your skin, Every time you spawn your skin will be %d",skinid);
}
return 1;
}

I think this is what you need


Re: Update TextDrawPreviewModel - M4D - 06.12.2014

just use TextDrawShowForPlayer after TextDrawSetPreviewModel
it will be show updated model id for show


Re: Update TextDrawPreviewModel - s0ZNIz - 07.12.2014

Quote:
Originally Posted by M4D
Посмотреть сообщение
just use TextDrawShowForPlayer after TextDrawSetPreviewModel
it will be show updated model id for show
Working , but the textdraw flashing ..