PHP код:
CMD:skin(playerid, params[])
{
new skin;
if(sscanf(params, "i", skin)) return SendClientMessage(playerid, -1, "{FFFF00}Usage: /skin <ID> 0-299");
if(skin > 299 || skin < 0) return SendClientMessage(playerid, -1, "{FF0000}Invalid {FF0000}ID. {FFFF00}Available Skin IDs are 1 to 299");
GameTextForPlayer(playerid,"~g~Skin ~g~Changed",2000,3);
SetPlayerSkin(playerid, skin);
return 1;
}
How to make every time player use /skin command. it automatically save/load after player leave and join the server.