Skin help
#1

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

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.
Reply
#3

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

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]);
Reply
#5

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

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


Forum Jump:


Users browsing this thread: 3 Guest(s)