19.04.2012, 13:53
Quote:
new Skin = GetPVarInt(playerid,"Skin");
Skin++; if(0 > Skin || Skin >= 300) Skin = 0; SetPVarInt(playerid, "Skin", Skin); SetPlayerSkin(playerid, GetPVarInt(playerid,"Skin")); |
pawn Код:
public SaveStats()
{
dUserSetINT(PlayerName(i)).("Skin", GetPVarInt(i, "Skin"));
}
pawn Код:
public OnPlayerDisconnect()
{
dUserSetINT(PlayerName(playerid)).("Skin",GetPlayerSkin(playerid));
}
Here is my code I want to add in now:
pawn Код:
SetPlayerSkin(playerid,GetPVarInt(playerid,"Skin"));