Jump to content
  • 0

[AJUTOR]Skin


Invis47

Question

Salut , am facut un stats pe textdraw , dar nu imi apare skin-ul adica cum fac sa imi apare ca si modelid ca stiu ca este o metoda "bobeasca" care ar fii sa faci 300 sau cate skin-uri sunt in samp de textdraw-uri si sa faci pentru fiecare if(getplayerskin == 0) si ShowPlayerTextDraw(playerid , skin0) si tot asa , dar ma gandesc ca exista sa fac sa imi arate skin-ul ca si model adica ca intr-o imagine , am facut deja locatia unde sa arate etc , dar am pus la modelid 250 si apare skin de civil , asa ca nu stiu cum sa pun daca player-ul are skin 1 sa arate skin , skin 2 sa arate skin 2, nu in sens de if cum am spus mai sus , am incercat si varianta cu new skintd = GetPlayerSkin(playerid); si apoi sa pun in loc de modelid sa pun skintd , dar nu a mers si arata skin 0, ajutor urgent va rog!

Link to comment
Share on other sites

13 answers to this question

Recommended Posts

  • 0

salut, folosesti http://wiki.sa-mp.com/wiki/TextDrawSetPreviewModel

TextDrawSetPreviewModel(textdraw, 1); //Display model 1 (CJ Skin)

in loc de 1 vei fosi  functia getplayerskin playerid

ia textdrawurile ori le creezi cu playertextdraw ori vei folosi um vector [max_players]

 

    __  ____      __           
   /  |/  (_)____/ /____  _____
  / /|_/ / / ___/ __/ _ \/ ___/
 / /  / / (__  ) /_/  __/ /    
/_/  /_/_/____/\__/\___/_/     
SERVICII SCRIPTING DE CALITATE
Pagina     Scripting     pawn
Link to comment
Share on other sites

  • 0

Vreau sa fac comanda sa nu fie de tip global acest td , vreau ca player-ul cand scrie /stats sa ii arate skin-ul pe care il are pe el adica are skin 294 sa ii arate skin 294 si asa ... Am facut Ce mi-ai dat acolo , am trecut la [playerid] si ce a mai trebuit sa retusez ca sa fac td-ul de player.

Link to comment
Share on other sites

  • 0

Off, ieri mare scripter, azi pe la suport :|

 

Te folosesti de PlayerTextDrawSetPreviewModel 

http://wiki.sa-mp.com/wiki/PlayerTextDrawSetPreviewModel

 

Ex: 

[code]

PlayerTextDrawSetPreviewModel(playerid, StatsTD[playerid], GetPlayerSkin(playerid)); // Aici poti sa pui si de ex: PlayerInfo[playerid][pSkin] sau cum ai tu.

PlayerTextDrawShow(playerid, StatsTD[playerid]); 

[/code]

Link to comment
Share on other sites

  • 0

Uite codul

Stats[playerid][3] = CreatePlayerTextDraw(playerid, 185.351364, 164.333328, "_");
    PlayerTextDrawFont(playerid, Stats[playerid][3], TEXT_DRAW_FONT_MODEL_PREVIEW);
    PlayerTextDrawUseBox(playerid, Stats[playerid][3], 1);
    PlayerTextDrawBoxColor(playerid, Stats[playerid][3], 0x000000FF);
    PlayerTextDrawTextSize(playerid, Stats[playerid][3], 40.0, 40.0);
    PlayerTextDrawSetPreviewModel(playerid, Stats[playerid][3], GetPlayerSkin(playerid)); 

 

!!Este pus la function OnPlayerConnect, l-am pus langa toata td-urile.

Link to comment
Share on other sites

  • 0

incearca sa le pui la OnPlayerRequestClass

doar

PlayerTextDrawSetPreviewModel(playerid, Stats[playerid][3], GetPlayerSkin(playerid));

PlayerTextDrawShow(playerid, Stats[playerid][3]);

Edited by SherKan
Citat
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.