SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 15/10/2019, 04:23 PM   #1
JoseWellingtonOfc
Little Clucker
 
Join Date: Aug 2019
Posts: 7
Reputation: 0
Default Salvar A Skin Do Player!

Olá, Eu Sou Novo Por Aqui E Estou Criando Um Servidor De RolePlay! Eu Coloquei Um Sistema De Comprar Skins... Mas Estou Tendo Um Problema. Quando Eu Saio Do Servidor E Entro Novamente, A Skin Não Fica Salva No Player! Alguém Pode Me Ajudar? Tem Como Fazer Algum Sistema De Salvamento De Skin? Porfavor Me Ajudem!!
JoseWellingtonOfc is offline   Reply With Quote
Old 15/10/2019, 05:28 PM   #2
NWDMadara
Gangsta
 
NWDMadara's Avatar
 
Join Date: Mar 2018
Posts: 501
Reputation: 16
Default Re: Salvar A Skin Do Player!

https://forum.sa-mp.com/showthread.php?t=320022
https://forum.sa-mp.com/showthread.php?t=350855
NWDMadara is online now   Reply With Quote
Old 15/10/2019, 05:52 PM   #3
oRaphael
Huge Clucker
 
oRaphael's Avatar
 
Join Date: Jul 2019
Location: Goiânia, Goias.
Posts: 201
Reputation: 2
Default Re: Salvar A Skin Do Player!

Salva a skin getando ela.
__________________
Fundador, Hyze RPG.
oRaphael is offline   Reply With Quote
Old 15/10/2019, 07:48 PM   #4
GGsamp
Big Clucker
 
GGsamp's Avatar
 
Join Date: Oct 2018
Location: Salvador - BA
Posts: 67
Reputation: 7
Default Re: Salvar A Skin Do Player!

qual sistema de salvamento?
GGsamp is offline   Reply With Quote
Old 19/10/2019, 11:11 PM   #5
Luiiiz
Huge Clucker
 
Join Date: Nov 2015
Location: Casa
Posts: 241
Reputation: 2
Default Re: Salvar A Skin Do Player!

Fiz em DOF2.
OnPlayerDisconnect:
PHP Code:
DOF2_SetInt(file"Skin"GetPlayerSkin(playerid)); 
Função chamada depois do jogador efetuar o login e spawnar:
PHP Code:
SetPlayerSkin(playeridDOF2_GetInt(file"Skin")); 
Obs: lembre-se de formatar de onde será setado e extraído "Skin":
PHP Code:
new file[50], pname[MAX_PLAYER_NAME];
GetPlayerName(playeridpnameMAX_PLAYER_NAME);
format(filesizeof(file), "Contas/%s.ini"pname); // Altere o "Contas" pela pasta onde é salvada suas contas. 
Luiiiz is offline   Reply With Quote
Old 20/10/2019, 12:15 AM   #6
GGsamp
Big Clucker
 
GGsamp's Avatar
 
Join Date: Oct 2018
Location: Salvador - BA
Posts: 67
Reputation: 7
Default Re: Salvar A Skin Do Player!

Onplayerspawn

PHP Code:
SetPlayerSkin(playeridPlayerDados[playerid][pSkin]); 
GGsamp is offline   Reply With Quote
Old 21/10/2019, 03:33 AM   #7
MrToddyYT
Big Clucker
 
Join Date: May 2018
Location: Sp - Brazil
Posts: 112
Reputation: 5
Default Re: Salvar A Skin Do Player!

Aqui tem vários salvamentos em DINI:

https://forum.sa-mp.com/showthread.php?t=143657
__________________
MrToddyYT is offline   Reply With Quote
Old 22/10/2019, 03:02 AM   #8
BrunoSayden177
Big Clucker
 
Join Date: Jun 2018
Location: Alfredo Vasconcelos - MG
Posts: 152
Reputation: 0
Default Re: Salvar A Skin Do Player!

Quote:
Originally Posted by MrToddyYT View Post
Aqui tem vários salvamentos em DINI:

https://forum.sa-mp.com/showthread.php?t=143657
Usar DINI em 2019 é tenso hein
__________________
Iniciando em Pawn!
BrunoSayden177 is offline   Reply With Quote
Old 22/10/2019, 07:07 PM   #9
MrToddyYT
Big Clucker
 
Join Date: May 2018
Location: Sp - Brazil
Posts: 112
Reputation: 5
Default Re: Salvar A Skin Do Player!

Quote:
Originally Posted by BrunoSayden177 View Post
Usar DINI em 2019 é tenso hein
saok´psakspaskaslk
__________________
MrToddyYT 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 skin l3eksz Português/Portuguese 2 10/08/2019 04:06 PM
[Ajuda] Salvar skin do player Dof2 LuizWachowicz Português/Portuguese 3 23/09/2015 09:10 PM
[Ajuda] Salvar Skin do Player depois de comprar na loja de Skins Emanuel17 Português/Portuguese 3 14/03/2013 10:29 AM
[Ajuda] Salvar Skin do Player Emanuel17 Português/Portuguese 3 11/03/2013 06:52 PM
[Ajuda] Salvar Skin Player [Red]Maninho Português/Portuguese 18 19/05/2012 05:47 PM


All times are GMT. The time now is 06:34 PM.


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