Save player skin
#4

Save the skin into a variable, and load it each time the player spawns.

pawn Код:
new pSkin[MAX_PLAYERS];

public ChangeSkin(playerid,skin)//just an example, add the code where you have your changing things
{
pSkin[playerid] = skin;
SetPlayerSkin(playerid,skin);
}

public OnPlayerSpawn(playerid)
{
SetPlayerSkin(playerid,pSkin[playerid]);
}
I highly recommend you use enums, if you don't know what these are, search. I've seen some tutorials covering this, so check those out.
Reply


Messages In This Thread
Save player skin - by JimmyNeonHD - 21.03.2013, 20:57
Re: Save player skin - by NessaHD - 21.03.2013, 20:59
Re: Save player skin - by JimmyNeonHD - 21.03.2013, 21:01
Re: Save player skin - by Jstylezzz - 21.03.2013, 21:16

Forum Jump:


Users browsing this thread: 3 Guest(s)