SA-MP Forums

Go Back   SA-MP Forums > Non-English > Languages > Português/Portuguese

Reply
 
Thread Tools Display Modes
Old 22/01/2020, 12:41 PM   #1
MituhBR
Big Clucker
 
Join Date: Jan 2017
Location: Santa Catarina
Posts: 159
Reputation: 4
Default Como salvar a skin do player

Como faço pra setar a skin que o player tinha escolhido com o comando, depois que ele morre e da respawn?

Comando pra setar skin
Code:
CMD:ms(playerid, params[])  return cmd_skin(playerid, params);
CMD:skin(playerid, params[])
{
	new skin;
	if(sscanf(params, "i", skin)) return SendClientMessage(playerid, COLOUR_INFORMACAO, "{00FF00[SdK]: {FFFFFF}Comando inválido, use /skin [ID da skin]");
	if(skin > 299 || skin < 0) return SendClientMessage(playerid, COLOUR_INFORMACAO, "{FF0000}[SdK]:{FF0000} ID de skin inválido");
	SetPlayerSkin(playerid, skin);
return 1;
}
__________________
[Mapas]

Discord: Kaslow#2196
MituhBR is offline   Reply With Quote
Old 22/01/2020, 12:57 PM   #2
ipsLuan
High-roller
 
ipsLuan's Avatar
 
Join Date: Feb 2013
Location: Ilhéus, BA
Posts: 4,511
Reputation: 328
Default Re: Como salvar a skin do player

Salve a skin em uma variável e após o jogador "nascer", sete a skin novamente.
__________________
Brasil New Style
ip.brasilnewstyle.com
ipsLuan is offline   Reply With Quote
Old 22/01/2020, 03:47 PM   #3
GGsamp
Big Clucker
 
GGsamp's Avatar
 
Join Date: Oct 2018
Location: Salvador - BA
Posts: 104
Reputation: 7
Default Re: Como salvar a skin do player

Exemplo:

OnPlayerSpawn
SetPlayerSkin(playerid, pInfo[playerid][pSkin]);

Mais antes salva após ele escolher certa skin.
GGsamp is offline   Reply With Quote
Old 22/01/2020, 07:53 PM   #4
MituhBR
Big Clucker
 
Join Date: Jan 2017
Location: Santa Catarina
Posts: 159
Reputation: 4
Default Re: Como salvar a skin do player

Fiz tudo certinho, valeu os 2 pela ajudinha :v
__________________
[Mapas]

Discord: Kaslow#2196
MituhBR is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Ajuda] Salvar A Skin Do Player! JoseWellingtonOfc Português/Portuguese 8 22/10/2019 06:07 PM
[Ajuda] Como salvar skin custom no 03dl murilo2929 Português/Portuguese 10 01/11/2018 07:05 PM
[Ajuda] Salvar skin do player Dof2 LuizWachowicz Português/Portuguese 3 23/09/2015 08:10 PM
[Ajuda] Como salvar skin direto na conta (: ! LucasPlays Português/Portuguese 4 15/03/2014 07:52 PM
[Ajuda] Salvar Skin do Player Emanuel17 Português/Portuguese 3 11/03/2013 05:52 PM


All times are GMT. The time now is 03:42 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.