Update TextDrawPreviewModel
#1

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

Anyone ? :P
Reply
#3

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
Reply
#4

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)