27.11.2011, 13:30
Well add a variable for example
and make a command that saves the skin
Then under onplayerspawn add
pawn Код:
new skinclass[MAX_PLAYERS];
pawn Код:
CMD:saveskin(playerid,params[])
{
new skinid;
if(sscanf(params,"d",skinid)) return SendClientMessage(playerid,-1,"USAGE: /saveskin [skinid]");
if(skinid < 0) return SendClientMessage(playerid,-1,"ERROR: UNKNOWN SKIN ID");
if(skinid > 299) return SendClientMessage(playerid,-1,"ERROR: UNKNOWN SKIN ID");
skinclass[playerid] = skinid;
SetPlayerSkin(playerid,skinid);
return 1;
}
pawn Код:
SetPlayerSkin(playerid,skinclass[playerid]);