SA-MP Forums Archive
Skin help - 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: Skin help (/showthread.php?tid=515383)



Skin help - jimis - 25.05.2014

Hi guys, i am using y_dini save system on my server , could someone tell me how to save player skin on disconnect, and when he connect again then he get the same skin on spawn.
Thanks a lot,
Jimis


Re: Skin help - NaClchemistryK - 25.05.2014

under on playerdisconnect:
get the player's skin.
save it inside a var
then save it in the player acc

under onplayerconnect
fetch the saved skin from the saving system
set the players skin to the saved skinid

howto finished.


Re: Skin help - jimis - 25.05.2014

Quote:
Originally Posted by NaClchemistryK
Посмотреть сообщение
under on playerdisconnect:
get the player's skin.
save it inside a var
then save it in the player acc

under onplayerconnect
fetch the saved skin from the saving system
set the players skin to the saved skinid

howto finished.
I am not so good on that thats why i post this on samp, i want someone to make those litle lines for me, could you?
Thanks for your time


Re: Skin help - NaClchemistryK - 25.05.2014

pawn Код:
//under onplayerdisconnect...
new skinny = GetPlayerSkin(playerid);
PlayerInfo[playerid][skin] == skinny; //add skin in your saving system.

//under onplayerspawn (first check if it is the player's first spawn.)
SetPlayerSkin(playerid,PlayrerInfo[playerid][skin]);



Re: Skin help - jimis - 25.05.2014

Quote:
Originally Posted by NaClchemistryK
Посмотреть сообщение
pawn Код:
//under onplayerdisconnect...
new skinny = GetPlayerSkin(playerid);
PlayerInfo[playerid][skin] == skinny; //add skin in your saving system.

//under onplayerspawn (first check if it is the player's first spawn.)
SetPlayerSkin(playerid,PlayrerInfo[playerid][skin]);
man as i said i have no idea, so ,how i make a file for save skin and how i force game to open file and read


Re: Skin help - Josh_Main - 26.05.2014

Look up "samp pawn basics tutorial" on ******* and it will help show the basics of scripting.